mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-05 12:31:50 +01:00
tests: Use sequential test runner if only one test is given.
* tests/openpgp/run-tests.scm: Use sequential test runner if only one test is given. -- This allows one to set the environment variable TESTFLAGS to '--parallel' and enjoy faster test execution times without interfering with stdio when one works on a single test. Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
63c7bf1a62
commit
0bf16d7026
@ -26,9 +26,10 @@
|
|||||||
;; Set objdir so that the tests can locate built programs.
|
;; Set objdir so that the tests can locate built programs.
|
||||||
(setenv "objdir" (getcwd) #f)
|
(setenv "objdir" (getcwd) #f)
|
||||||
|
|
||||||
(let* ((runner (if (member "--parallel" *args*)
|
(let* ((tests (filter (lambda (arg) (not (string-prefix? arg "--"))) *args*))
|
||||||
|
(runner (if (and (member "--parallel" *args*)
|
||||||
|
(> (length tests) 1))
|
||||||
run-tests-parallel
|
run-tests-parallel
|
||||||
run-tests-sequential))
|
run-tests-sequential)))
|
||||||
(tests (filter (lambda (arg) (not (string-prefix? arg "--"))) *args*)))
|
|
||||||
(runner (test::scm "setup.scm" "setup.scm")
|
(runner (test::scm "setup.scm" "setup.scm")
|
||||||
(map (lambda (t) (test::scm t t)) tests)))
|
(map (lambda (t) (test::scm t t)) tests)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user