summaryrefslogtreecommitdiffstats
path: root/test/recipes/70-test_quic_multistream.t
diff options
context:
space:
mode:
authorHugo Landau <hlandau@openssl.org>2024-02-12 11:29:14 +0000
committerHugo Landau <hlandau@openssl.org>2024-03-21 17:57:50 +0000
commitf2db70962cacc2602bc614d51e0610085c99e999 (patch)
treec32cacb4da8cf154470315553dfcb17ec938f77b /test/recipes/70-test_quic_multistream.t
parentdc9bc6c8e1bd329ead703417a2235ab3e97557ec (diff)
Experimental support for uploading qlog artifacts
Reviewed-by: Neil Horman <nhorman@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Tim Hudson <tjh@openssl.org> (Merged from https://github.com/openssl/openssl/pull/23551)
Diffstat (limited to 'test/recipes/70-test_quic_multistream.t')
-rw-r--r--test/recipes/70-test_quic_multistream.t22
1 files changed, 19 insertions, 3 deletions
diff --git a/test/recipes/70-test_quic_multistream.t b/test/recipes/70-test_quic_multistream.t
index 4427209a84..7257ca0938 100644
--- a/test/recipes/70-test_quic_multistream.t
+++ b/test/recipes/70-test_quic_multistream.t
@@ -9,17 +9,18 @@
use OpenSSL::Test qw/:DEFAULT srctop_file result_dir data_file/;
use OpenSSL::Test::Utils;
use File::Temp qw(tempfile);
-use File::Path 2.00 qw(rmtree);
+use File::Path 2.00 qw(rmtree mkpath);
setup("test_quic_multistream");
plan skip_all => "QUIC protocol is not supported by this OpenSSL build"
if disabled('quic');
-plan tests => 2;
+plan tests => 3;
+my $qlog_output;
if (!disabled('qlog') && $ENV{OSSL_RUN_CI_TESTS} == "1") {
- my $qlog_output = result_dir("qlog-output");
+ $qlog_output = result_dir("qlog-output");
print "# Writing qlog output to $qlog_output\n";
rmtree($qlog_output, { safe => 1 });
mkdir($qlog_output);
@@ -43,3 +44,18 @@ SKIP: {
"running qlog verification script");
};
}
+
+SKIP: {
+ skip "no qlog", 1 if disabled('qlog');
+ skip "not running CI tests", 1 unless $ENV{OSSL_RUN_CI_TESTS};
+ skip "not running artifacts upload", 1 unless $ENV{OSSL_CI_ARTIFACTS_PATH};
+
+ subtest "copy qlog artifacts to upload directory" => sub {
+ plan tests => 1;
+
+ my $artifacts_path = $ENV{OSSL_CI_ARTIFACTS_PATH};
+ mkpath("${artifacts_path}/quic_multistream_test");
+ ok(run(cmd(["mv", "--", $qlog_output,
+ "${artifacts_path}/quic_multistream_test/"])));
+ };
+}