75-test_quicapi.t 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #! /usr/bin/env perl
  2. # Copyright 2022 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. use OpenSSL::Test::Utils;
  9. use OpenSSL::Test qw/:DEFAULT srctop_file srctop_dir bldtop_dir/;
  10. BEGIN {
  11. setup("test_quicapi");
  12. }
  13. use lib srctop_dir('Configurations');
  14. use lib bldtop_dir('.');
  15. my $no_fips = disabled('fips') || ($ENV{NO_FIPS} // 0);
  16. plan skip_all => "QUIC protocol is not supported by this OpenSSL build"
  17. if disabled('quic');
  18. plan tests =>
  19. ($no_fips ? 0 : 1) # quicapitest with fips
  20. + 1; # quicapitest with default provider
  21. ok(run(test(["quicapitest", "default",
  22. srctop_file("test", "default.cnf")])),
  23. "running quicapitest");
  24. unless ($no_fips) {
  25. ok(run(test(["quicapitest", "fips",
  26. srctop_file("test", "fips-and-base.cnf")])),
  27. "running quicapitest");
  28. }