[glib-networking/mcatanzaro/tls1.2: 5/10] Run connection tests under TLS 1.2... but not yet



commit cf95c91bb4947c1bed1b03c626840db7f1ab3798
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sat Aug 17 16:59:56 2019 -0500

    Run connection tests under TLS 1.2... but not yet
    
    This adds a FIXME to uncomment when I have TLS 1.2 tests working.

 tls/tests/meson.build | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/tls/tests/meson.build b/tls/tests/meson.build
index 4cf289d..f181a6c 100644
--- a/tls/tests/meson.build
+++ b/tls/tests/meson.build
@@ -74,16 +74,16 @@ foreach backend: backends
       'GIO_MODULE_DIR=' + join_paths(meson.build_root(), 'tls', backend)
     ]
 
-    if backend == 'gnutls'
-      test_envs += [
-        'G_TLS_GNUTLS_PRIORITY=NORMAL:%COMPAT:-VERS-TLS1.3'
-      ]
-    endif
-
-    # OpenSSL tests are disabled until we fix https://gitlab.gnome.org/GNOME/glib-networking/issues/54
+    # FIXME: OpenSSL tests are disabled until we fix https://gitlab.gnome.org/GNOME/glib-networking/issues/54
     if backend != 'openssl'
       test(program_name, exe, env: test_envs)
     endif
+
+    if backend == 'gnutls' and program[0] == 'connection' or program[0] == 'dtls-connection'
+      # Run the tests again, this time with TLS 1.3 disabled.
+      # FIXME: TLS 1.2 tests are disabled until we fix
+      #test(program_name + '-tls1.2', exe, env: test_envs + 
['G_TLS_GNUTLS_PRIORITY=NORMAL:%COMPAT:!VERS-TLS1.3'])
+    endif
   endforeach
 endforeach
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]