ECDSA with SHA3 verification does not depend on FIPS provider version
[openssl.git] / test / recipes / 75-test_quicapi.t
1 #! /usr/bin/env perl
2 # Copyright 2022-2023 The OpenSSL Project Authors. All Rights Reserved.
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
9
10 use OpenSSL::Test::Utils;
11 use OpenSSL::Test qw/:DEFAULT srctop_file srctop_dir bldtop_dir/;
12
13 BEGIN {
14 setup("test_quicapi");
15 }
16
17 use lib srctop_dir('Configurations');
18 use lib bldtop_dir('.');
19
20 my $no_fips = disabled('fips') || ($ENV{NO_FIPS} // 0);
21
22 plan skip_all => "QUIC protocol is not supported by this OpenSSL build"
23     if disabled('quic');
24
25 plan tests =>
26     ($no_fips ? 0 : 1)          # quicapitest with fips
27     + 1;                        # quicapitest with default provider
28
29 ok(run(test(["quicapitest", "default",
30              srctop_file("test", "default.cnf"),
31              srctop_dir("test", "certs"),
32              srctop_dir("test", "recipes", "75-test_quicapi_data")])),
33              "running quicapitest");
34
35 unless ($no_fips) {
36     ok(run(test(["quicapitest", "fips",
37                  srctop_file("test", "fips-and-base.cnf"),
38                  srctop_dir("test", "certs"),
39                  srctop_dir("test", "recipes", "75-test_quicapi_data")])),
40                  "running quicapitest");
41 }