test suite: run-all: Understand `:' specially Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
test suite: run-all: Move setting of TESTSCRIPTS NFC Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
test suite: run-all: Honour DGIT_TESTS_TMPDIR If this variable is set, tests/tmp will be made a symlink to a real subdirectory under $DGIT_TESTS_TMPDIR. The real subdirectory will be removed and recreated as tests/tmp would otherwise be. I set it to /run/user/`id -u`/dgit-tests-tmp Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
test suite: run-all: Without --progressive, rm and recreate tests/tmp This arranges to rerun tests/setup/ scripts, which wouldn't otherwise happen; that is IMO a bug. While we are here, introduce $tmpdir. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
test suite: Support run-all -p, DGIT_TESTS_PROGRESSIVE Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
test suite: run-all: Minor refactoring etc. * Makefile: Move the DGIT_TEST_RETRY_COUNT if/else into the rule. This removes a small amount of duplication. * run-all: Document the option to pass explicitly list of scripts. * run-all: Add an option parser, which currently supports no options. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
test suite: Use nproc(1) rather than Sys::CPU. This is more portable and does not depend on libsys-cpu-perl being installed. Closes:888496. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
test suite: stunt gnupg: Much better logging of race errors Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
test suite: tests/run-all: Use a bit more cpu Make allowance for tests that do a bit of downloading or whatever. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Test suite: run-all: Ensure tests/tmp/ exists ca007b4d "Test suite: run-all: record output" introduced a regression: if tests/tmp/ does not exist on entry, tests/run-all fails. So create it first. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Test suite: run-all: record output Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Test suite: run-all should use make -k Otherwise one failure causes the tests to be abandoned, which is not usually desirable.
Test suite: Use make for parallel execution
tests: run-all: allow arg(s) to override test list
autopkgtests: tests/run-all: convenience script for running the tests outside adt-run