runtests: runtests-python runtests-cmdline
runtests-python: all t/tmp
- TMPDIR="$(test_tmp)" $(PYTHON) wvtest.py t/t*.py lib/*/t/t*.py
+ TMPDIR="$(test_tmp)" $(PYTHON) wvtest.py t/t*.py lib/*/t/t*.py 2>&1 \
+ | tee -a t/tmp/test-log/$$$$.log
cmdline_tests := \
+ t/test-index.sh \
+ t/test-split-join.sh \
t/test-fuse.sh \
t/test-drecurse.sh \
t/test-cat-file.sh \
# For parallel runs.
tmp-target-run-test%: all t/tmp
- TMPDIR="$(test_tmp)" t/test$*
+ TMPDIR="$(test_tmp)" t/test$* 2>&1 | tee -a t/tmp/test-log/$$$$.log
-runtests-cmdline: $(subst t/test-,tmp-target-run-test-,$(cmdline_tests))
+runtests-cmdline: $(subst t/test,tmp-target-run-test,$(cmdline_tests))
stupid:
PATH=/bin:/usr/bin $(MAKE) test
test: all
- ./wvtestrun $(MAKE) PYTHON=$(PYTHON) runtests-python runtests-cmdline
+ if test -e t/tmp/test-log; then rm -r t/tmp/test-log; fi
+ mkdir -p t/tmp/test-log
+ ./wvtest watch --no-counts \
+ $(MAKE) PYTHON=$(PYTHON) runtests-python runtests-cmdline
+ ./wvtest report t/tmp/test-log/*.log
check: test