diff options
author | Justus Winter <[email protected]> | 2017-08-07 09:15:56 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2017-08-07 09:15:56 +0000 |
commit | b0112dbca91e720a4ff622ad0e88d99eba56203a (patch) | |
tree | 8db8dd66592bb1cb96329e982ca4c08a77cf8dd0 /tests/gpgscm | |
parent | Fix spelling. (diff) | |
download | gnupg-b0112dbca91e720a4ff622ad0e88d99eba56203a.tar.gz gnupg-b0112dbca91e720a4ff622ad0e88d99eba56203a.zip |
tests: Do not run all tests unless in maintainer mode.
* configure.ac: Leak the maintainer mode flag into 'config.h'.
* tests/gpgscm/ffi.c: Pass it into the scheme environment.
* tests/openpgp/all-tests.scm: Only run tests against non-default
configurations (keyring, extended-key-format) in maintainer mode.
--
Werner is concerned that the tests do take up too much time and asked
me to reduce the runtime of the tests for normal users.
Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'tests/gpgscm')
-rw-r--r-- | tests/gpgscm/ffi.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/gpgscm/ffi.c b/tests/gpgscm/ffi.c index 4c03ba674..4c2148a26 100644 --- a/tests/gpgscm/ffi.c +++ b/tests/gpgscm/ffi.c @@ -1442,6 +1442,14 @@ ffi_init (scheme *sc, const char *argv0, const char *scriptname, #endif ); + ffi_define (sc, "*maintainer-mode*", +#if MAINTAINER_MODE + sc->T +#else + sc->F +#endif + ); + ffi_define (sc, "*stdin*", sc->vptr->mk_port_from_file (sc, stdin, port_input)); |