1e0c4386eSCy Schubert#! /usr/bin/env perl 2*44096ebdSEnji Cooper# Copyright 2021-2024 The OpenSSL Project Authors. All Rights Reserved. 3e0c4386eSCy Schubert# 4e0c4386eSCy Schubert# Licensed under the Apache License 2.0 (the "License"). You may not use 5e0c4386eSCy Schubert# this file except in compliance with the License. You can obtain a copy 6e0c4386eSCy Schubert# in the file LICENSE in the source distribution or at 7e0c4386eSCy Schubert# https://www.openssl.org/source/license.html 8e0c4386eSCy Schubert 9e0c4386eSCy Schubert 10e0c4386eSCy Schubertuse OpenSSL::Test::Simple; 11e0c4386eSCy Schubertuse OpenSSL::Test qw/:DEFAULT srctop_file srctop_dir bldtop_dir/; 12e0c4386eSCy Schubertuse OpenSSL::Test::Utils; 13e0c4386eSCy Schubert 14e0c4386eSCy SchubertBEGIN { 15e0c4386eSCy Schubertsetup("test_prov_config"); 16e0c4386eSCy Schubert} 17e0c4386eSCy Schubert 18e0c4386eSCy Schubertuse lib srctop_dir('Configurations'); 19e0c4386eSCy Schubertuse lib bldtop_dir('.'); 20e0c4386eSCy Schubert 21e0c4386eSCy Schubertmy $no_fips = disabled('fips') || ($ENV{NO_FIPS} // 0); 22e0c4386eSCy Schubert 23e0c4386eSCy Schubertplan tests => 2; 24e0c4386eSCy Schubert 25e0c4386eSCy Schubertok(run(test(["prov_config_test", srctop_file("test", "default.cnf"), 26*44096ebdSEnji Cooper srctop_file("test", "recursive.cnf"), 27*44096ebdSEnji Cooper srctop_file("test", "pathed.cnf")])), 28e0c4386eSCy Schubert "running prov_config_test default.cnf"); 29e0c4386eSCy Schubert 30e0c4386eSCy SchubertSKIP: { 31e0c4386eSCy Schubert skip "Skipping FIPS test in this build", 1 if $no_fips; 32e0c4386eSCy Schubert 33e0c4386eSCy Schubert ok(run(test(["prov_config_test", srctop_file("test", "fips.cnf"), 34*44096ebdSEnji Cooper srctop_file("test", "recursive.cnf"), 35*44096ebdSEnji Cooper srctop_file("test", "pathed.cnf")])), 36e0c4386eSCy Schubert "running prov_config_test fips.cnf"); 37e0c4386eSCy Schubert} 38