diff options
author | Jay Burger <jay.burger@fujitsu.com> | 2020-04-10 16:38:42 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-06-24 09:42:01 +0200 |
commit | a1ba8c5b71164665ccb53c9cec384e5eef7d3689 (patch) | |
tree | faa580e931fee25af7c07de02e30e966c606c05a /test/TEST-52-HONORFIRSTSHUTDOWN/Makefile | |
parent | 7bf6babfa22f91a1d9e27f480954caaf605b7f5b (diff) | |
download | systemd-a1ba8c5b71164665ccb53c9cec384e5eef7d3689.tar.gz |
feature to honor first shutdown request to completion
Create unit tests per established norm at position 52
check in_set first before getting unit
Diffstat (limited to 'test/TEST-52-HONORFIRSTSHUTDOWN/Makefile')
-rw-r--r-- | test/TEST-52-HONORFIRSTSHUTDOWN/Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/TEST-52-HONORFIRSTSHUTDOWN/Makefile b/test/TEST-52-HONORFIRSTSHUTDOWN/Makefile new file mode 100644 index 0000000000..a48af97793 --- /dev/null +++ b/test/TEST-52-HONORFIRSTSHUTDOWN/Makefile @@ -0,0 +1,16 @@ +BUILD_DIR=$(shell ../../tools/find-build-dir.sh) + +all setup run clean clean-again: + @basedir=../.. TEST_BASE_DIR=../ BUILD_DIR=$(BUILD_DIR) ./test.sh --$@ + +# finish option is used to run checks that can only be run outside of +# the test execution. Example case, honor first shutdown, proof is obtained +# from the console output as the image shuts down. This does not show up in +# the journal so the output from the do_test is captured in a file in /tmp. +# Without the use of finish the test will still pass because if it fails +# the test will loop and will be terminated via a command timeout. +# This just provides concrete confirmation. +finish: + @basedir=../.. TEST_BASE_DIR=../ BUILD_DIR=$(BUILD_DIR) ./fini.sh --$@ + +.PHONY: all setup run clean clean-again |