VirtualBox

source: vbox/trunk/src/libs/openssl-3.0.3/test/recipes/30-test_provider_status.t@ 95218

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

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

檔案大小: 1.3 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
9
10use strict;
11use warnings;
12
13use OpenSSL::Test qw(:DEFAULT data_file bldtop_dir srctop_file srctop_dir bldtop_file);
14use OpenSSL::Test::Utils;
15
16BEGIN {
17setup("test_provider_status");
18}
19
20use lib srctop_dir('Configurations');
21use lib bldtop_dir('.');
22
23my $no_fips = disabled('fips') || ($ENV{NO_FIPS} // 0);
24
25plan tests => 5;
26
27ok(run(test(["provider_status_test", "-provider_name", "null"])),
28 "null provider test");
29
30ok(run(test(["provider_status_test", "-provider_name", "base"])),
31 "base provider test");
32
33ok(run(test(["provider_status_test", "-provider_name", "default"])),
34 "default provider test");
35
36SKIP: {
37 skip "Skipping legacy test", 1
38 if disabled("legacy");
39 ok(run(test(["provider_status_test", "-provider_name", "legacy"])),
40 "legacy provider test");
41}
42
43SKIP: {
44 skip "Skipping fips test", 1
45 if $no_fips;
46 ok(run(test(["provider_status_test", "-config", srctop_file("test","fips.cnf"),
47 "-provider_name", "fips"])),
48 "fips provider test");
49}
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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