aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2013-07-24 13:55:35 +0100
committerMatt Fleming <matt.fleming@intel.com>2013-07-24 13:58:24 +0100
commitb088a237ca2de823f5272a7b542daeb4d676142e (patch)
tree74ef8340cf3b79d9811072f2fa0ebe42460d9c4c
parentcc74ad91a55c681634227c26e27f5b10fbe05ded (diff)
downloadsyslinux-b088a237ca2de823f5272a7b542daeb4d676142e.tar.gz
syslinux-b088a237ca2de823f5272a7b542daeb4d676142e.tar.xz
syslinux-b088a237ca2de823f5272a7b542daeb4d676142e.zip
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@intel.com>
-rw-r--r--com32/lib/syslinux/tests/Makefile4
1 files changed, 1 insertions, 3 deletions
diff --git a/com32/lib/syslinux/tests/Makefile b/com32/lib/syslinux/tests/Makefile
index 485a9ce1..701ac01b 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
-clean:
- rm $(tests)
-
banner:
printf " Running library unit tests...\n"