mirror of
https://github.com/openssl/openssl.git
synced 2024-12-15 06:01:37 +08:00
473664aafd
Different tests may use unexpectedly different versions of perl, depending on whether they hardcode the path to the perl executable or if they resolve the path from the environment. This fixes it so that the same perl is always used. Fix some trailing whitespace and spelling mistakes as well. CLA: trivial Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/16362)
31 lines
1.2 KiB
Perl
31 lines
1.2 KiB
Perl
#! /usr/bin/env perl
|
|
|
|
use strict;
|
|
use warnings;
|
|
use OpenSSL::Test qw/:DEFAULT data_file/;
|
|
use OpenSSL::Test::Utils;
|
|
|
|
setup("test_includes");
|
|
|
|
plan skip_all => "test_includes doesn't work without posix-io"
|
|
if disabled("posix-io");
|
|
|
|
delete $ENV{OPENSSL_CONF_INCLUDE};
|
|
|
|
plan tests => # The number of tests being performed
|
|
6
|
|
+ ($^O eq "VMS" ? 2 : 0);
|
|
|
|
ok(run(test(["conf_include_test", data_file("includes.cnf")])), "test directory includes");
|
|
ok(run(test(["conf_include_test", data_file("includes-file.cnf")])), "test file includes");
|
|
ok(run(test(["conf_include_test", data_file("includes-eq.cnf")])), "test includes with equal character");
|
|
ok(run(test(["conf_include_test", data_file("includes-eq-ws.cnf")])), "test includes with equal and whitespaces");
|
|
if ($^O eq "VMS") {
|
|
ok(run(test(["conf_include_test", data_file("vms-includes.cnf")])),
|
|
"test directory includes, VMS syntax");
|
|
ok(run(test(["conf_include_test", data_file("vms-includes-file.cnf")])),
|
|
"test file includes, VMS syntax");
|
|
}
|
|
ok(run(test(["conf_include_test", "-f", data_file("includes-broken.cnf")])), "test broken includes");
|
|
ok(run(test(["conf_include_test", "-f", data_file("incdir.cnf")])), "test includedir");
|