diff options
author | Werner Koch <wk@gnupg.org> | 2017-08-08 17:28:25 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2017-08-08 17:49:53 +0200 |
commit | fb21aa8b50367e2afa13bad73fc21d6f01a97e18 (patch) | |
tree | a448e1a6ef0523166568858669e0e6bb866670a6 /tests | |
parent | gpgscm: Make the test summary stand out (diff) | |
download | gnupg2-fb21aa8b50367e2afa13bad73fc21d6f01a97e18.tar.xz gnupg2-fb21aa8b50367e2afa13bad73fc21d6f01a97e18.zip |
build: New configure option --enable-all-tests.
* configure.ac: New option --enable-all-tests.
* tests/gpgscm/ffi.c (ffi_init): New gloabl var *run-all-tests*.
* tests/openpgp/all-tests.scm (all-tests): Use that var instead
of *maintainer-mode*.
* Makefile.am (AM_DISTCHECK_CONFIGURE_FLAGS): Add --enable-all-tests.
--
It is better to have a separate option to run all tests than to put
this on top of --enable-maintainer-mode. This way we can also make
sure to run all tests during "make distcheck".
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/gpgscm/ffi.c | 8 | ||||
-rw-r--r-- | tests/openpgp/all-tests.scm | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/tests/gpgscm/ffi.c b/tests/gpgscm/ffi.c index 4c2148a26..dde5b5282 100644 --- a/tests/gpgscm/ffi.c +++ b/tests/gpgscm/ffi.c @@ -1450,6 +1450,14 @@ ffi_init (scheme *sc, const char *argv0, const char *scriptname, #endif ); + ffi_define (sc, "*run-all-tests*", +#if RUN_ALL_TESTS + sc->T +#else + sc->F +#endif + ); + ffi_define (sc, "*stdin*", sc->vptr->mk_port_from_file (sc, stdin, port_input)); diff --git a/tests/openpgp/all-tests.scm b/tests/openpgp/all-tests.scm index e65d52730..d687fe49b 100644 --- a/tests/openpgp/all-tests.scm +++ b/tests/openpgp/all-tests.scm @@ -58,7 +58,7 @@ (path-join "tests" "openpgp" name) (in-srcdir "tests" "openpgp" name))) all-tests)) - (when *maintainer-mode* + (when *run-all-tests* (set! tests (append tests |