tests: Make it possible to run all tests using our infrastructure.
authorJustus Winter <justus@g10code.com>
Mon, 20 Mar 2017 09:30:08 +0000 (10:30 +0100)
committerJustus Winter <justus@g10code.com>
Thu, 11 May 2017 16:12:37 +0000 (18:12 +0200)
commitf4365790daa1d1400c7f0fe73ac9a6d25f0c6d0a
tree67fadb83cbe030e2a402cd7c356228f38bd19ae0
parent78d6a25a2db22ad2ae30d57ca980c0400cfef726
tests: Make it possible to run all tests using our infrastructure.

* Makefile.am (TESTS_ENVIRONMENT): New variable.
(check-all): New phony target to run all tests.
* tests/gpgme/gpgme-defs.scm (have-gpgme?): New function that tests
whether the GPGME test suite is available instead of exiting the
process.
* tests/gpgscm/init.scm (export): New macro.
* tests/gpgscm/tests.scm (run-tests): New function.
(load-tests): Likewise.
* tests/gpgme/run-tests.scm: Simplify and move the parsing of the list
of tests to 'all-tests.scm'.
* tests/gpgsm/run-tests.scm: Likewise.
* tests/migrations/run-tests.scm: Likewise.
* tests/openpgp/run-tests.scm: Likewise.
* tests/gpgme/Makefile.am: To select the tests to run, use the
variable 'TESTS'.  This harmonizes the interface with the automake
test suite.
* tests/gpgsm/Makefile.am: Likewise.
* tests/migrations/Makefile.am: Likewise.
* tests/openpgp/Makefile.am: Likewise.
* tests/openpgp/README: Likewise.
* agent/all-tests.scm: New file.
* common/all-tests.scm: Likewise.
* g10/all-tests.scm: Likewise.
* g13/all-tests.scm: Likewise.
* tests/gpgme/all-tests.scm: Likewise.
* tests/gpgsm/all-tests.scm: Likewise.
* tests/migrations/all-tests.scm: Likewise.
* tests/openpgp/all-tests.scm: Likewise.
* tests/run-tests.scm: Likewise.
--

This change allows us to run all tests in parallel and write one XML
report capturing the results of every test.  It also lays the
foundation to parametrize test suites.

Signed-off-by: Justus Winter <justus@g10code.com>
27 files changed:
Makefile.am
agent/Makefile.am
agent/all-tests.scm [new file with mode: 0644]
common/Makefile.am
common/all-tests.scm [new file with mode: 0644]
g10/Makefile.am
g10/all-tests.scm [new file with mode: 0644]
g13/Makefile.am
g13/all-tests.scm [new file with mode: 0644]
tests/Makefile.am
tests/gpgme/Makefile.am
tests/gpgme/all-tests.scm [new file with mode: 0644]
tests/gpgme/gpgme-defs.scm
tests/gpgme/run-tests.scm
tests/gpgscm/init.scm
tests/gpgscm/tests.scm
tests/gpgsm/Makefile.am
tests/gpgsm/all-tests.scm [new file with mode: 0644]
tests/gpgsm/run-tests.scm
tests/migrations/Makefile.am
tests/migrations/all-tests.scm [new file with mode: 0644]
tests/migrations/run-tests.scm
tests/openpgp/Makefile.am
tests/openpgp/README
tests/openpgp/all-tests.scm [new file with mode: 0644]
tests/openpgp/run-tests.scm
tests/run-tests.scm [new file with mode: 0644]