]> git.ipfire.org Git - thirdparty/openssl.git/blame - test/recipes/30-test_defltfips.t
TEST: Remove the build of fipsmodule.cnf from test recipes
[thirdparty/openssl.git] / test / recipes / 30-test_defltfips.t
CommitLineData
bfa6aaab
MC
1#! /usr/bin/env perl
2# Copyright 2015-2020 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
9
10use strict;
11use warnings;
12
13use OpenSSL::Test qw/:DEFAULT srctop_file srctop_dir bldtop_file bldtop_dir/;
14use OpenSSL::Test::Utils;
15use Cwd qw(abs_path);
16
17BEGIN {
18 setup("test_evp");
19}
20
21use lib srctop_dir('Configurations');
22use lib bldtop_dir('.');
bfa6aaab
MC
23
24my $no_fips = disabled('fips') || ($ENV{NO_FIPS} // 0);
25
26plan tests =>
e25b4db7 27 ($no_fips ? 1 : 2);
bfa6aaab
MC
28
29unless ($no_fips) {
bfa6aaab
MC
30 $ENV{OPENSSL_CONF} = abs_path(srctop_file("test", "fips.cnf"));
31 ok(run(test(["defltfips_test", "fips"])), "running defltfips_test fips");
32}
33
34$ENV{OPENSSL_CONF} = abs_path(srctop_file("test", "default.cnf"));
35ok(run(test(["defltfips_test"])), "running defltfips_test");