]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
tests: ensure test suite does not apply global config
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Fri, 20 Dec 2019 19:37:32 +0000 (20:37 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Fri, 20 Dec 2019 21:06:03 +0000 (22:06 +0100)
When running the test suite we do not apply the global
gnutls configration as it may change options that are
tested.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
NEWS
tests/cert-tests/Makefile.am
tests/slow/Makefile.am
tests/suite/Makefile.am
tests/windows/Makefile.am

diff --git a/NEWS b/NEWS
index 15e268f2f6532dfd7bf15254e5fc545b21fe0cb7..2e168050078aa8ceeaf7a899b51560718b5b4679 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -21,7 +21,8 @@ See the end for copying conditions.
    TLS 1.3 in setups where GOST ciphersuites are enabled on GnuTLS-based servers.
 
 ** libgnutls: The min-verification-profile from system configuration applies
-   for all certificate verifications, not only under TLS.
+   for all certificate verifications, not only under TLS. The configuration can
+   be overriden using the GNUTLS_SYSTEM_PRIORITY_FILE environment variable.
 
 ** certtool: Added the --verify-profile option to set a certificate
    verification profile. Use '--verify-profile low' for certificate verification
index 862557b5a30f31ce73884aeb8ea5fc052cc150cd..76765889c64b81423f0c5d7d00b3b3874c904f0d 100644 (file)
@@ -149,6 +149,7 @@ TESTS_ENVIRONMENT = EXEEXT=$(EXEEXT) \
        ac_cv_sizeof_time_t="$(ac_cv_sizeof_time_t)" \
        ASAN_OPTIONS="detect_leaks=0:exitcode=6" \
        GNUTLS_TEST_SUITE_RUN=1                 \
+       GNUTLS_SYSTEM_PRIORITY_FILE=$(srcdir)/../system.prio \
        srcdir="$(srcdir)"
 
 if ENABLE_FIPS140
index b4c43c6aa325d12fdd461c3a2799ffdf5b6433cb..9418985d97796d30507e32ea39ee6a6f80f41b86 100644 (file)
@@ -67,6 +67,7 @@ TESTS_ENVIRONMENT = EXEEXT=$(EXEEXT) \
        LSAN_OPTIONS=suppressions=gnutls-asan.supp              \
        GNUTLS_TEST_SUITE_RUN=1                                 \
        OPENSSL_ia32cap=0x00000000                              \
+       GNUTLS_SYSTEM_PRIORITY_FILE=$(srcdir)/../system.prio    \
        top_builddir="$(top_builddir)"                          \
        srcdir="$(srcdir)"
 
index 21966ac8982c4aed4c07e2964bb4f03390011f68..fd8fac79198c50f747b9cda206b9c0c8042c186b 100644 (file)
@@ -103,6 +103,7 @@ TESTS_ENVIRONMENT = EXEEXT=$(EXEEXT) \
        srcdir="$(srcdir)"              \
        ASAN_OPTIONS="detect_leaks=0"   \
        GNUTLS_TEST_SUITE_RUN=1         \
+       GNUTLS_SYSTEM_PRIORITY_FILE=$(srcdir)/../system.prio \
        OPENSSL_ia32cap=0x00000000
 
 if ENABLE_NON_SUITEB_CURVES
index 5a810437727763e81346533575ba893605a39bdd..1d238d23f2eb7b329e097f082353663c9e31ba10 100644 (file)
@@ -68,8 +68,9 @@ TESTS = $(ctests) $(dist_check_SCRIPTS)
 
 TESTS_ENVIRONMENT =                                            \
        WINEDLLOVERRIDES="crypt32=n,ncrypt=n"                   \
-       LC_ALL="C"                                              \
+       LC_ALL="C"                              \
        GNUTLS_TEST_SUITE_RUN=1                 \
-       EXEEXT=$(EXEEXT)                                        \
-       top_builddir="$(top_builddir)"                          \
+       EXEEXT=$(EXEEXT)                        \
+       GNUTLS_SYSTEM_PRIORITY_FILE=$(srcdir)/../system.prio \
+       top_builddir="$(top_builddir)"          \
        srcdir="$(srcdir)"