]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: simplify the Makefiles
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 20 Mar 2020 17:31:10 +0000 (18:31 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 28 Mar 2020 10:51:29 +0000 (11:51 +0100)
has-overflow was a temporary hack that was removed in
844da987ef8b8c98f837d3328eeb3ed481f43835 (Oct. 2016). All the makefiles
can be the same, and all the targets can be handled identically.

test/TEST-01-BASIC/Makefile
test/TEST-13-NSPAWN-SMOKE/Makefile [changed from file to symlink]
test/test-functions

index 45e9bfc67cd50f3290bb1e9475a59c819f4d4549..79fe9688b816cf7658de39eea5783d17cef78442 100644 (file)
@@ -1,9 +1,6 @@
 BUILD_DIR=$(shell ../../tools/find-build-dir.sh)
 
-all setup run:
+all setup run clean clean-again:
        @basedir=../.. TEST_BASE_DIR=../ BUILD_DIR=$(BUILD_DIR) ./test.sh --$@
 
-clean clean-again:
-       @basedir=../.. TEST_BASE_DIR=../ BUILD_DIR=$(BUILD_DIR) ./test.sh --clean
-
 .PHONY: all setup run clean clean-again
deleted file mode 100644 (file)
index e5e3350211bdfe821ab61a17555dbcea0a4ffc7d..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1,10 +0,0 @@
-BUILD_DIR=$(shell ../../tools/find-build-dir.sh)
-
-all setup run:
-       @basedir=../.. TEST_BASE_DIR=../ BUILD_DIR=$(BUILD_DIR) ./test.sh --$@
-
-clean clean-again:
-       @basedir=../.. TEST_BASE_DIR=../ ./test.sh --clean
-       @rm -f has-overflow
-
-.PHONY: all setup run clean clean-again
new file mode 120000 (symlink)
index 0000000000000000000000000000000000000000..e9f93b1104cd21161bfe11fb1b3b534ce2ae82b5
--- /dev/null
@@ -0,0 +1 @@
+../TEST-01-BASIC/Makefile
\ No newline at end of file
index 64afa8e3f1d2d35a5f242a1b0f282ac6cdff3dec..d1595fcd605ba048c0fd3dfb6aaa1fd302e85d94 100644 (file)
@@ -2039,7 +2039,7 @@ do_test() {
                 test_setup
                 test_setup_cleanup
                 ;;
-            --clean)
+            --clean|--clean-again)
                 echo "TEST CLEANUP: $TEST_DESCRIPTION"
                 test_cleanup
                 ;;