test: skip FIPS config auto loading based tests if feature is disabled

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/21621)
This commit is contained in:
Pauli 2023-08-02 11:36:46 +10:00
parent a9dde74950
commit 9a255aa2bd

View File

@ -21,6 +21,9 @@ BEGIN {
use lib srctop_dir('Configurations');
use lib bldtop_dir('.');
plan skip_all => "Configuration loading is turned off"
if disabled("autoload-config");
my $no_fips = disabled('fips') || ($ENV{NO_FIPS} // 0);
plan tests =>