xref: /freebsd/crypto/openssl/test/recipes/99-test_fuzz_x509.t (revision f81cdf24ba5436367377f7c8e8f51f6df2a75ca7)
1#!/usr/bin/env perl
2# Copyright 2016-2023 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
9use strict;
10use warnings;
11
12use OpenSSL::Test qw/:DEFAULT srctop_file/;
13use OpenSSL::Test::Utils;
14
15my $fuzzer = "x509";
16setup("test_fuzz_${fuzzer}");
17
18plan skip_all => "This test requires ocsp support"
19    if disabled("ocsp");
20
21plan tests => 2; # one more due to below require_ok(...)
22
23require_ok(srctop_file('test','recipes','fuzz.pl'));
24
25fuzz_ok($fuzzer);
26