openssl/test/recipes/04-test_nodefltctx.t
Matt Caswell 0aa7d7f42b Add a test for no initialisation of the default config file
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20341)
2023-02-22 10:03:14 +11:00

20 lines
647 B
Perl

#! /usr/bin/env perl
# Copyright 2023The OpenSSL Project Authors. All Rights Reserved.
#
# Licensed under the Apache License 2.0 (the "License"). You may not use
# this file except in compliance with the License. You can obtain a copy
# in the file LICENSE in the source distribution or at
# https://www.openssl.org/source/license.html
use strict;
use OpenSSL::Test::Simple;
use OpenSSL::Test qw/:DEFAULT srctop_file/;
use Cwd qw(abs_path);
setup("test_nodefltctx");
# Load the null provider by default into the default libctx
$ENV{OPENSSL_CONF} = abs_path(srctop_file("test", "null.cnf"));
simple_test("test_nodefltctx", "nodefltctxtest");