[glib-networking/mcatanzaro/rerun-tests: 8/8] Run GnuTLS connection tests with TLS 1.3 disabled



commit c77391f2cdc2621bc6c2464749e530702e7e05b9
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Thu May 23 15:37:24 2019 -0500

    Run GnuTLS connection tests with TLS 1.3 disabled
    
    Some tests have regressed with TLS 1.2, but I didn't notice because we
    are currently not testing it anywhere. Run all the tests with TLS 1.2
    as well as TLS 1.3.
    
    This is currently expected to fail due to #84 and #88.

 tls/tests/meson.build | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/tls/tests/meson.build b/tls/tests/meson.build
index df9dba4..a81467a 100644
--- a/tls/tests/meson.build
+++ b/tls/tests/meson.build
@@ -74,6 +74,13 @@ foreach backend: backends
       if backend != 'openssl'
         test(program_name, exe, env: test_envs)
       endif
+
+      # GnuTLS tests are run twice: once with TLS 1.3, then once again with
+      # TLS 1.2. (Assuming GnuTLS supports TLS 1.3.)
+      if backend == 'gnutls' and program_name.contains('connection')
+        test_envs += ['G_TLS_GNUTLS_PRIORITY=NORMAL:%COMPAT:-VERS-TLS1.3']
+        test(program_name + '-tls1.2', exe, env: test_envs)
+      endif
     endif
   endforeach
 endforeach


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