2 # Copyright 2016-2020 The OpenSSL Project Authors. All Rights Reserved.
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
13 use OpenSSL::Test qw/:DEFAULT srctop_file/;
14 use OpenSSL::Test::Utils;
18 my @fuzzers = ('asn1', 'asn1parse', 'bignum', 'bndiv', 'client', 'conf', 'crl', 'server', 'x509');
19 if (!disabled("cmp")) {
22 if (!disabled("cms")) {
25 if (!disabled("ct")) {
28 plan tests => scalar @fuzzers;
30 foreach my $f (@fuzzers) {
31 subtest "Fuzzing $f" => sub {
32 my @dirs = glob(srctop_file('fuzz', 'corpora', $f));
33 push @dirs, glob(srctop_file('fuzz', 'corpora', "$f-*"));
35 plan skip_all => "No corpora for $f-test" unless @dirs;
37 plan tests => scalar @dirs;
40 ok(run(fuzz(["$f-test", $_])));