]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
80-test_ssl_new.t: make dependencies on CTLOG_FILE and TEST_CERTS_DIR explicit
authorDavid von Oheimb <dev@ddvo.net>
Thu, 11 Aug 2022 15:46:11 +0000 (17:46 +0200)
committerDr. David von Oheimb <dev@ddvo.net>
Fri, 16 Sep 2022 08:07:15 +0000 (10:07 +0200)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/18918)

test/recipes/80-test_ssl_new.t

index 609f36da03253a9d2905fad5700190a135abecb9..1783916b9b4d0c1f177baee588985e7302152590 100644 (file)
@@ -6,6 +6,10 @@
 # in the file LICENSE in the source distribution or at
 # https://www.openssl.org/source/license.html
 
+# For manually running these tests, set specific environment variables like this:
+# CTLOG_FILE=test/ct/log_list.cnf
+# TEST_CERTS_DIR=test/certs
+# For details on the environment variables needed, see test/README.ssltest.md
 
 use strict;
 use warnings;
@@ -173,13 +177,14 @@ sub test_conf {
       skip "No tests available; skipping tests", 1 if $skip;
       skip "Stale sources; skipping tests", 1 if !$run_test;
 
+      my $msg = "running CTLOG_FILE=test/ct/log_list.cnf". # $ENV{CTLOG_FILE}.
+          " TEST_CERTS_DIR=test/certs". # $ENV{TEST_CERTS_DIR}.
+          " test/ssl_test test/ssl-tests/$conf $provider";
       if ($provider eq "fips") {
           ok(run(test(["ssl_test", $output_file, $provider,
-                       srctop_file("test", "fips-and-base.cnf")])),
-             "running ssl_test $conf");
+                       srctop_file("test", "fips-and-base.cnf")])), $msg);
       } else {
-          ok(run(test(["ssl_test", $output_file, $provider])),
-             "running ssl_test $conf");
+          ok(run(test(["ssl_test", $output_file, $provider])), $msg);
       }
     }
 }