From b088a237ca2de823f5272a7b542daeb4d676142e Mon Sep 17 00:00:00 2001 From: Matt Fleming Date: Wed, 24 Jul 2013 13:55:35 +0100 Subject: 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 --- com32/lib/syslinux/tests/Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'com32/lib/syslinux') 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" -- cgit v1.2.1