]>
Commit | Line | Data |
---|---|---|
ed835673 | 1 | #! /usr/bin/env perl |
da1c088f | 2 | # Copyright 2022-2023 The OpenSSL Project Authors. All Rights Reserved. |
ed835673 HL |
3 | # |
4 | # Licensed under the Apache License 2.0 (the "License"). You may not use | |
5 | # this file except in compliance with the License. You can obtain a copy | |
6 | # in the file LICENSE in the source distribution or at | |
7 | # https://www.openssl.org/source/license.html | |
8 | ||
c73821c4 | 9 | use OpenSSL::Test qw/:DEFAULT srctop_file result_dir data_file/; |
ed835673 | 10 | use OpenSSL::Test::Utils; |
c73821c4 HL |
11 | use File::Temp qw(tempfile); |
12 | use File::Path 2.00 qw(rmtree); | |
ed835673 HL |
13 | |
14 | setup("test_quic_multistream"); | |
15 | ||
16 | plan skip_all => "QUIC protocol is not supported by this OpenSSL build" | |
17 | if disabled('quic'); | |
18 | ||
c73821c4 HL |
19 | plan tests => 2; |
20 | ||
d1fe5738 | 21 | if (!disabled('qlog') && $ENV{OSSL_RUN_CI_TESTS} == "1") { |
c73821c4 HL |
22 | my $qlog_output = result_dir("qlog-output"); |
23 | print "# Writing qlog output to $qlog_output\n"; | |
24 | rmtree($qlog_output, { safe => 1 }); | |
25 | mkdir($qlog_output); | |
26 | $ENV{QLOGDIR} = $qlog_output; | |
27 | } | |
28 | ||
29 | $ENV{OSSL_QFILTER} = "* -quic:unknown_event quic:another_unknown_event"; | |
ed835673 HL |
30 | |
31 | ok(run(test(["quic_multistream_test", | |
32 | srctop_file("test", "certs", "servercert.pem"), | |
33 | srctop_file("test", "certs", "serverkey.pem")]))); | |
c73821c4 HL |
34 | |
35 | SKIP: { | |
36 | skip "no qlog", 1 if disabled('qlog'); | |
08108835 | 37 | skip "not running CI tests", 1 unless $ENV{OSSL_RUN_CI_TESTS}; |
c73821c4 HL |
38 | |
39 | subtest "check qlog output" => sub { | |
40 | plan tests => 1; | |
41 | ||
42 | ok(run(cmd(["python3", data_file("verify-qlog.py")])), | |
43 | "running qlog verification script"); | |
44 | }; | |
45 | } |