aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2017-08-07 09:15:56 +0000
committerJustus Winter <[email protected]>2017-08-07 09:15:56 +0000
commitd230224c38dd4b31348f7a1ad24be9e27935dc80 (patch)
tree28f65513cba26032e809f1c09e1b8a8deafba632
parentgpgscm,w32: Fix testing for absolute paths. (diff)
downloadlibgpg-error-d230224c38dd4b31348f7a1ad24be9e27935dc80.tar.gz
libgpg-error-d230224c38dd4b31348f7a1ad24be9e27935dc80.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]>
-rw-r--r--ffi.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ffi.c b/ffi.c
index 4c03ba6..4c2148a 100644
--- a/ffi.c
+++ b/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));