-python_tests := \
- lib/bup/t/tbloom.py \
- lib/bup/t/tgit.py \
- lib/bup/t/thashsplit.py \
- lib/bup/t/thelpers.py \
- lib/bup/t/tindex.py \
- lib/bup/t/tmetadata.py \
- lib/bup/t/toptions.py \
- lib/bup/t/tshquote.py \
- lib/bup/t/tvfs.py \
- lib/bup/t/tvint.py \
- lib/bup/t/txstat.py
-
-ifeq "2" "$(bup_python_majver)"
- python_tests += \
- lib/bup/t/tclient.py \
- lib/bup/t/tresolve.py
-endif
-
-# The "pwd -P" here may not be appropriate in the long run, but we
-# need it until we settle the relevant drecurse/exclusion questions:
-# https://groups.google.com/forum/#!topic/bup-list/9ke-Mbp10Q0
-runtests-python: all t/tmp
- mkdir -p t/tmp/test-log
+runtests-python: all test/tmp
+ ./pytest
+
+cmdline_tests := \
+ test/ext/test.sh \
+ test/ext/test-argv \
+ test/ext/test-cat-file.sh \
+ test/ext/test-command-without-init-fails.sh \
+ test/ext/test-compression.sh \
+ test/ext/test-drecurse.sh \
+ test/ext/test-fsck.sh \
+ test/ext/test-fuse.sh \
+ test/ext/test-ftp \
+ test/ext/test-help \
+ test/ext/test-web.sh \
+ test/ext/test-gc.sh \
+ test/ext/test-import-duplicity.sh \
+ test/ext/test-import-rdiff-backup.sh \
+ test/ext/test-index.sh \
+ test/ext/test-index-check-device.sh \
+ test/ext/test-index-clear.sh \
+ test/ext/test-list-idx.sh \
+ test/ext/test-ls \
+ test/ext/test-ls-remote \
+ test/ext/test-main.sh \
+ test/ext/test-meta.sh \
+ test/ext/test-on.sh \
+ test/ext/test-packsizelimit \
+ test/ext/test-prune-older \
+ test/ext/test-redundant-saves.sh \
+ test/ext/test-restore-map-owner.sh \
+ test/ext/test-restore-single-file.sh \
+ test/ext/test-rm.sh \
+ test/ext/test-rm-between-index-and-save.sh \
+ test/ext/test-save-creates-no-unrefs.sh \
+ test/ext/test-save-restore \
+ test/ext/test-save-errors \
+ test/ext/test-save-restore-excludes.sh \
+ test/ext/test-save-strip-graft.sh \
+ test/ext/test-save-with-valid-parent.sh \
+ test/ext/test-sparse-files.sh \
+ test/ext/test-split-join.sh \
+ test/ext/test-tz.sh \
+ test/ext/test-xdev.sh
+
+tmp-target-run-test-get-%: all test/tmp