3 #SVN2SVN_TEST_OPTS=--verbose --debug
6 DEFAULT_TEST_TARGET ?= test
9 SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH))
11 T = $(sort $(wildcard t[0-9][0-9][0-9][0-9]-*.sh))
13 all: $(DEFAULT_TEST_TARGET)
15 test: pre-clean $(TEST_LINT)
16 $(MAKE) aggregate-results-and-cleanup
19 @echo "*** $@ ***"; '$(SHELL_PATH_SQ)' $@ $(SVN2SVN_TEST_OPTS)
27 test-lint: test-lint-duplicates test-lint-executable
30 @dups=`echo $(T) | tr ' ' '\n' | sed 's/-.*//' | sort | uniq -d` && \
31 test -z "$$dups" || { \
32 echo >&2 "duplicate test numbers:" $$dups; exit 1; }
35 @bad=`for i in $(T); do test -x "$$i" || echo $$i; done` && \
36 test -z "$$bad" || { \
37 echo >&2 "non-executable tests:" $$bad; exit 1; }
39 aggregate-results-and-cleanup: $(T)
40 $(MAKE) aggregate-results
44 for f in test-results/t*-*.counts; do \
46 done | '$(SHELL_PATH_SQ)' ./aggregate-results.sh
48 .PHONY: pre-clean $(T) aggregate-results clean