mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
tests: Rework environment setup.
* tests/gpgscm/tests.scm (test::scm): Add a setup argument. (test::binary): Likewise. (run-tests-parallel): Remove setup parameter. (run-tests-sequential): Likewise. (make-environment-cache): New function that handles the cache protocol. * tests/gpgme/run-tests.scm: Adapt accordingly. * tests/gpgsm/run-tests.scm: Likewise. * tests/migrations/run-tests.scm: Likewise. * tests/openpgp/run-tests.scm: Likewise. -- This change allows us to have different environments for tests. This is needed to run more GPGME tests, and to increase concurrency while running all tests. Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
ed5575ec55
commit
cca91a3f8f
5 changed files with 58 additions and 48 deletions
|
@ -27,9 +27,9 @@
|
|||
(setenv "objdir" (getcwd) #f)
|
||||
|
||||
(let* ((tests (filter (lambda (arg) (not (string-prefix? arg "--"))) *args*))
|
||||
(setup (make-environment-cache (test::scm #f "setup.scm" "setup.scm")))
|
||||
(runner (if (and (member "--parallel" *args*)
|
||||
(> (length tests) 1))
|
||||
run-tests-parallel
|
||||
run-tests-sequential)))
|
||||
(runner (test::scm "setup.scm" "setup.scm")
|
||||
(map (lambda (t) (test::scm t t)) tests)))
|
||||
(runner (map (lambda (t) (test::scm setup t t)) tests))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue