1*e7be843bSPierre Pronchery#! /usr/bin/env perl 2*e7be843bSPierre Pronchery# Copyright 2022-2023 The OpenSSL Project Authors. All Rights Reserved. 3*e7be843bSPierre Pronchery# 4*e7be843bSPierre Pronchery# Licensed under the Apache License 2.0 (the "License"). You may not use 5*e7be843bSPierre Pronchery# this file except in compliance with the License. You can obtain a copy 6*e7be843bSPierre Pronchery# in the file LICENSE in the source distribution or at 7*e7be843bSPierre Pronchery# https://www.openssl.org/source/license.html 8*e7be843bSPierre Pronchery 9*e7be843bSPierre Pronchery 10*e7be843bSPierre Proncheryuse OpenSSL::Test::Utils; 11*e7be843bSPierre Proncheryuse OpenSSL::Test qw/:DEFAULT srctop_dir bldtop_dir/; 12*e7be843bSPierre Pronchery 13*e7be843bSPierre ProncheryBEGIN { 14*e7be843bSPierre Proncherysetup("test_quicfaults"); 15*e7be843bSPierre Pronchery} 16*e7be843bSPierre Pronchery 17*e7be843bSPierre Proncheryuse lib srctop_dir('Configurations'); 18*e7be843bSPierre Proncheryuse lib bldtop_dir('.'); 19*e7be843bSPierre Pronchery 20*e7be843bSPierre Proncheryplan skip_all => "QUIC protocol is not supported by this OpenSSL build" 21*e7be843bSPierre Pronchery if disabled('quic'); 22*e7be843bSPierre Pronchery 23*e7be843bSPierre Proncheryplan skip_all => "These tests are not supported in a fuzz build" 24*e7be843bSPierre Pronchery if config('options') =~ /-DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION|enable-fuzz-afl/; 25*e7be843bSPierre Pronchery 26*e7be843bSPierre Proncheryplan tests => 2; 27*e7be843bSPierre Pronchery 28*e7be843bSPierre Proncheryok(run(test(["quicfaultstest", srctop_dir("test", "certs")])), 29*e7be843bSPierre Pronchery "running quicfaultstest"); 30*e7be843bSPierre Pronchery 31*e7be843bSPierre Proncheryok(run(test(["quic_newcid_test", srctop_dir("test", "certs")])), 32*e7be843bSPierre Pronchery "running quic_newcid_test"); 33