[glib-networking/mcatanzaro/session-resumption: 6/17] Run connection tests under TLS 1.2... but not yet



commit 4c4142be2fb97e0dbfeaef3d2bf3b7764117427e
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]