1*e7be843bSPierre Pronchery#! /usr/bin/env perl 2*e7be843bSPierre Pronchery# Copyright 2015-2022 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; 11*e7be843bSPierre Proncheryuse OpenSSL::Test::Utils; 12*e7be843bSPierre Proncheryuse OpenSSL::Test qw/:DEFAULT data_file data_dir bldtop_dir srctop_dir cmdstr/; 13*e7be843bSPierre Proncheryuse Cwd qw(abs_path); 14*e7be843bSPierre Pronchery 15*e7be843bSPierre Proncherysetup("test_external_tlsfuzzer"); 16*e7be843bSPierre Pronchery 17*e7be843bSPierre Proncheryplan skip_all => "No external tests in this configuration" 18*e7be843bSPierre Pronchery if disabled("external-tests"); 19*e7be843bSPierre Proncheryplan skip_all => "TLSFuzzer tests not available on Windows or VMS" 20*e7be843bSPierre Pronchery if $^O =~ /^(VMS|MSWin32)$/; 21*e7be843bSPierre Proncheryplan skip_all => "TLSFuzzer is not properly checked out" 22*e7be843bSPierre Pronchery unless (-d srctop_dir("tlsfuzzer") && -d srctop_dir("tlsfuzzer", "tests")); 23*e7be843bSPierre Pronchery 24*e7be843bSPierre Pronchery$ENV{TESTDATADIR} = abs_path(data_dir()); 25*e7be843bSPierre Proncheryplan tests => 1; 26*e7be843bSPierre Pronchery 27*e7be843bSPierre Proncheryok(run(cmd(["sh", data_file("tls-fuzzer-cert.sh")])), 28*e7be843bSPierre Pronchery "running TLSFuzzer tests"); 29