2 # Copyright 2016 The OpenSSL Project Authors. All Rights Reserved.
4 # Licensed under the OpenSSL license (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
12 use if $^O ne "VMS", 'File::Glob' => qw/glob/;
13 use OpenSSL::Test qw/:DEFAULT srctop_file/;
17 my @fuzzers = ('asn1', 'asn1parse', 'bignum', 'bndiv', 'cms', 'conf', 'crl', 'ct', 'server', 'x509');
18 plan tests => scalar @fuzzers;
20 foreach my $f (@fuzzers) {
21 subtest "Fuzzing $f" => sub {
22 my @files = glob(srctop_file('fuzz', 'corpora', $f, '*'));
23 push @files, glob(srctop_file('fuzz', 'corpora', "$f-*", '*'));
25 plan skip_all => "No corpora for $f-test" unless @files;
27 plan tests => scalar @files;
30 ok(run(fuzz(["$f-test", $_])));