[glib-networking/mcatanzaro/client-auth-failure] Disable all other tests and run client-auth-failure 20000x



commit e1ecdd5b5cdef630cb32bdaa922f28e64fcc4812
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Mon Apr 1 16:18:11 2019 -0500

    Disable all other tests and run client-auth-failure 20000x
    
    Amazingly the CI passed for the last commit, so time for big guns.

 .gitlab-ci.yml         | 2 +-
 tls/tests/connection.c | 6 +++++-
 tls/tests/meson.build  | 6 +++---
 3 files changed, 9 insertions(+), 5 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1e108a9..73fd45d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -11,7 +11,7 @@ fedora-x86_64:
             -Dwerror=true
             build/
     - ninja -C build/
-    - meson test -v -C build/ --repeat=1000
+    - meson test -v -C build/ --repeat=20000
     - meson install -C build/
   artifacts:
     paths:
diff --git a/tls/tests/connection.c b/tls/tests/connection.c
index e1a9686..1b2d9bd 100644
--- a/tls/tests/connection.c
+++ b/tls/tests/connection.c
@@ -458,7 +458,7 @@ on_client_connection_close_finish (GObject        *object,
 
   g_io_stream_close_finish (G_IO_STREAM (object), res, &error);
 
-  if (test->expected_client_close_error)
+  if (test->expected_client_close_error) // ERROR can be null here during client-auth-failure test!
     g_assert_error (error, test->expected_client_close_error->domain, 
test->expected_client_close_error->code);
   else
     g_assert_no_error (error);
@@ -2266,6 +2266,7 @@ main (int   argc,
   g_setenv ("GIO_USE_TLS", BACKEND, TRUE);
   g_assert (g_ascii_strcasecmp (G_OBJECT_TYPE_NAME (g_tls_backend_get_default ()), "GTlsBackend" BACKEND) == 
0);
 
+#if 0
   g_test_add ("/tls/connection/basic", TestConnection, NULL,
               setup_connection, test_basic_connection, teardown_connection);
   g_test_add ("/tls/connection/verified", TestConnection, NULL,
@@ -2286,8 +2287,10 @@ main (int   argc,
               setup_connection, test_client_auth_connection, teardown_connection);
   g_test_add ("/tls/connection/client-auth-rehandshake", TestConnection, NULL,
               setup_connection, test_client_auth_rehandshake, teardown_connection);
+#endif
   g_test_add ("/tls/connection/client-auth-failure", TestConnection, NULL,
               setup_connection, test_client_auth_failure, teardown_connection);
+#if 0
   g_test_add ("/tls/connection/client-auth-fail-missing-client-private-key", TestConnection, NULL,
               setup_connection, test_client_auth_fail_missing_client_private_key, teardown_connection);
   g_test_add ("/tls/connection/client-auth-request-cert", TestConnection, NULL,
@@ -2334,6 +2337,7 @@ main (int   argc,
               setup_connection, test_alpn_server_only, teardown_connection);
   g_test_add ("/tls/connection/sync-op-during-handshake", TestConnection, NULL,
               setup_connection, test_sync_op_during_handshake, teardown_connection);
+#endif
 
   ret = g_test_run ();
 
diff --git a/tls/tests/meson.build b/tls/tests/meson.build
index fc73a4b..88bd57b 100644
--- a/tls/tests/meson.build
+++ b/tls/tests/meson.build
@@ -22,14 +22,14 @@ envs = [
 ]
 
 test_programs = [
-  ['certificate', [], deps, []],
-  ['file-database', [], deps, []],
+  #['certificate', [], deps, []],
+  #['file-database', [], deps, []],
   ['connection', ['mock-interaction.c'], deps, []],
 # DTLS tests are disabled until we fix https://gitlab.gnome.org/GNOME/glib-networking/issues/49
 #  ['dtls-connection', ['mock-interaction.c'], deps, ['openssl']],
 ]
 
-foreach backend: backends
+foreach backend: ['gnutls']
   foreach program: test_programs
     if not program[3].contains(backend)
       program_name = program[0] + '-' + backend


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