2 # Copyright 2020-2021 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 data_file bldtop_dir srctop_file srctop_dir bldtop_file);
14 use OpenSSL::Test::Utils;
17 setup("test_provider_status");
20 use lib srctop_dir('Configurations');
21 use lib bldtop_dir('.');
23 my $no_fips = disabled('fips') || ($ENV{NO_FIPS} // 0);
27 ok(run(test(["provider_status_test", "-provider_name", "null"])),
28 "null provider test");
30 ok(run(test(["provider_status_test", "-provider_name", "base"])),
31 "base provider test");
33 ok(run(test(["provider_status_test", "-provider_name", "default"])),
34 "default provider test");
37 skip "Skipping legacy test", 1
38 if disabled("legacy");
39 ok(run(test(["provider_status_test", "-provider_name", "legacy"])),
40 "legacy provider test");
44 skip "Skipping fips test", 1
46 ok(run(test(["provider_status_test", "-config", srctop_file("test","fips.cnf"),
47 "-provider_name", "fips"])),
48 "fips provider test");