tests: Rework environment setup.
authorJustus Winter <justus@g10code.com>
Thu, 9 Mar 2017 12:26:06 +0000 (13:26 +0100)
committerJustus Winter <justus@g10code.com>
Thu, 9 Mar 2017 12:26:06 +0000 (13:26 +0100)
commitcca91a3f8f7e3e36b7149fc93f7b6df11d21eb1d
treea3eb93f9c38c4ce6fbcb767dc5e65b41dbdcac00
parented5575ec550ff16b0b901a23c6aa3eb3d47b0575
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>
tests/gpgme/run-tests.scm
tests/gpgscm/tests.scm
tests/gpgsm/run-tests.scm
tests/migrations/run-tests.scm
tests/openpgp/run-tests.scm