Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
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/%.ok:
ifeq ($(DGIT_TEST_RETRY_COUNT),)
echo >&2 "[$$retry] $* TEST FAILED $$rc"; \
done; exit $$rc
endif
+ @touch $@
#!/bin/bash
set -e
# convenience script for running the tests outside adt-run
-# usage: tests/using-intree tests/run-all [tests/tests/*]
+# usage: tests/using-intree tests/run-all [-p|--progressive] [tests/tests/*]
set -o pipefail
while [ $# != 0 ]; do
case "$1" in
+ --progressive|-p) shift; export DGIT_TESTS_PROGRESSIVE=y;;
--) shift; break ;;
-*) echo >&2 "run-all: unknown option $1"; exit 20 ;;
*) break ;;
mkdir -p tests/tmp
+${DGIT_TESTS_PROGRESSIVE+:} rm -f tests/tmp/*.ok
+
export DGIT_GNUPG_STUNT_ERRLOG=$( tty -s ||: )
(