tests: clean up again after running tests (#10446)
authorLennart Poettering <lennart@poettering.net>
Thu, 18 Oct 2018 18:59:24 +0000 (20:59 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 18 Oct 2018 18:59:24 +0000 (03:59 +0900)
commit40235c3c5eb7067a65f01f608834a76d0851cf19
tree0ee9c692f34518f48cead18457e43e8ec392fff2
parent6d4150cb457a5bfcf60349ebbb67deeaf899ab5a
tests: clean up again after running tests (#10446)

Currently, if I run the full "run-integration-tests.sh" script it will
fail on my machine because it fills up /var/tmp whith just too much
crap until the disk is full.

Let's make sure that "run-integration-tests.sh" cleans up after every
test. For that change the make targets to run from "clean setup run" to
"clean setup run clean" — except that that doesn't work since make is
smart enough to realize that the same target appears twice on the
command line and will only execute it once. Let's fix that by defining
another target "clean-again" which is just like "clean", but allows us
to be added to the same command line a second time. Then, let's build
with "clean setup run clean-again" and all is good.

While we are at it, let's also add .PHONY where appropriate, after all
these all are phony targets.
test/TEST-01-BASIC/Makefile
test/TEST-13-NSPAWN-SMOKE/Makefile
test/run-integration-tests.sh