chiark / gitweb /
test suite: editing a test script overrides DGIT_TESTS_PROGRESSIVE.
[dgit.git] / tests / Makefile
index 44b7458..88bc0a0 100644 (file)
@@ -7,13 +7,9 @@ TESTSCRIPTS ?= $(shell tests/enumerate-tests)
 TESTNAMES := $(notdir $(TESTSCRIPTS))
 
 all: $(foreach t,$(TESTNAMES),tests/tmp/$t.ok)
-       @echo "ALL PASSED"
+       @echo "ALL PASSED$${DGIT_TESTS_PROGRESSIVE+ AT SOME POINT}"
 
-tests/tmp:
-       mkdir -p $@
-
-
-tests/tmp/%.ok: tests/tmp
+tests/tmp/%.ok: tests/tests/%
 ifeq ($(DGIT_TEST_RETRY_COUNT),)
        tests/tests/$* >tests/tmp/$*.log 2>&1
 else
@@ -25,3 +21,4 @@ else
                echo >&2 "[$$retry] $* TEST FAILED $$rc";               \
        done; exit $$rc
 endif
+       @touch $@