[syslinux:firmware] tests: delete test executables after each run

syslinux-bot for Matt Fleming matt.fleming at intel.com
Wed Jul 24 07:24:09 PDT 2013

Commit-ID:  b088a237ca2de823f5272a7b542daeb4d676142e
Gitweb:     http://www.syslinux.org/commit/b088a237ca2de823f5272a7b542daeb4d676142e
Author:     Matt Fleming <matt.fleming at intel.com>
AuthorDate: Wed, 24 Jul 2013 13:55:35 +0100
Committer:  Matt Fleming <matt.fleming at intel.com>
CommitDate: Wed, 24 Jul 2013 13:58:24 +0100

tests: delete test executables after each run

The unit tests are designed to be small and should build very quickly,
so there should be no downside to rebuilding them for every run. The
upside is that we don't litter our build trees with target executables
and we don't need to explicitly list dependencies in Makefiles to ensure
our tests get rebuilt whenever a dependency changes.

Signed-off-by: Matt Fleming <matt.fleming at intel.com>

 com32/lib/syslinux/tests/Makefile | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/com32/lib/syslinux/tests/Makefile b/com32/lib/syslinux/tests/Makefile
index 485a9ce..701ac01 100644
--- a/com32/lib/syslinux/tests/Makefile
+++ b/com32/lib/syslinux/tests/Makefile
@@ -1,13 +1,11 @@
 CFLAGS = -I$(topdir)/tests/unittest/include
 tests = zonelist movebits memscan
+.INTERMEDIATE: $(tests)
 all: banner $(tests)
 	for t in $(tests); \
 		do printf "      [+] $$t passed\n" ; ./$$t ; done
-	rm $(tests)
 	printf "    Running library unit tests...\n"

More information about the Syslinux-commits mailing list