VirtualBox

source: vbox/trunk/src/libs/openssl-3.0.7/test/recipes/30-test_evp_libctx.t@ 97403

最後變更 在這個檔案從97403是 94320,由 vboxsync 提交於 3 年 前

libs/openssl-3.0.1: Export to OSE and fix copyright headers in Makefiles, bugref:10128

檔案大小: 1.4 KB
 
1#! /usr/bin/env perl
2# Copyright 2020-2021 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
9use strict;
10use warnings;
11
12use OpenSSL::Test qw(:DEFAULT bldtop_dir srctop_dir srctop_file bldtop_file);
13use OpenSSL::Test::Utils;
14
15BEGIN {
16 setup("test_evp_libctx");
17}
18
19my $no_legacy = disabled('legacy') || ($ENV{NO_LEGACY} // 0);
20my $no_fips = disabled('fips') || ($ENV{NO_FIPS} // 0);
21
22use lib srctop_dir('Configurations');
23use lib bldtop_dir('.');
24
25# If no fips then run the test with no extra arguments.
26my @test_args = ( );
27
28plan tests => ($no_fips ? 0 : 1) + ($no_legacy ? 0 : 1) + 1;
29
30unless ($no_fips) {
31 @test_args = ("-config", srctop_file("test","fips-and-base.cnf"),
32 "-provider", "fips");
33
34 ok(run(test(["evp_libctx_test", @test_args])), "running fips evp_libctx_test");
35}
36
37ok(run(test(["evp_libctx_test",
38 "-config", srctop_file("test","default.cnf"),])),
39 "running default evp_libctx_test");
40
41unless ($no_legacy) {
42 ok(run(test(["evp_libctx_test",
43 "-config", srctop_file("test","default-and-legacy.cnf"),])),
44 "running default-and-legacy evp_libctx_test");
45}
46
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette