chiark / gitweb /
tests: Provide `recheck' to rerun fast tests
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 20 Oct 2019 13:54:24 +0000 (14:54 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 24 Oct 2019 18:16:16 +0000 (19:16 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Makefile.in

index 6560746..394ffda 100644 (file)
@@ -133,9 +133,19 @@ endif
 
 TESTDIRS=stest mtest
 
-check: eax-aes-test.confirm eax-serpent-test.confirm \
+FAST_CHECKS= eax-aes-test.confirm eax-serpent-test.confirm \
        eax-serpentbe-test.confirm check-ipaddrset \
-       msgcode-test.confirm $(addprefix check-,$(TESTDIRS))
+       $(addprefix check-,$(TESTDIRS))
+
+CHECKS += $(FAST_CHECKS)
+CHECKS += msgcode-test.confirm
+
+check: $(CHECKS)
+
+recheck:
+       rm -f $(FAST_CHECKS)
+       rm -rf $(addsuffix /d-*, $(TESTDIRS))
+       $(MAKE) check
 
 version.c: Makefile
        echo "#include \"secnet.h\"" >$@.new