1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00
freebsd-ports/security/p5-Crypt-SMIME/files/patch-t-03-chained-certs.t
Po-Chuan Hsieh 2b8b5f5927
security/p5-Crypt-SMIME: Fix test
Before:
t/01-smime.t .......... skipped: No package `openssl' found
t/02-smime.more.t ..... skipped: No package `openssl' found
t/03-chained-certs.t .. skipped: No package `openssl' found
t/04-taint.t .......... skipped: No package `openssl' found

After:
t/01-smime.t .......... # Using `/usr/bin/openssl' to generate a keypair
t/01-smime.t .......... ok
t/02-smime.more.t ..... # Using `/usr/bin/openssl' to generate a keypair
t/02-smime.more.t ..... ok
t/03-chained-certs.t .. # Using `/usr/bin/openssl' to generate a keypair
t/03-chained-certs.t .. ok
t/04-taint.t .......... # Using `/usr/bin/openssl' to generate a keypair
t/04-taint.t .......... ok
2021-07-01 04:43:38 +08:00

12 lines
476 B
Perl

--- t/03-chained-certs.t.orig 2018-02-22 09:33:03 UTC
+++ t/03-chained-certs.t
@@ -29,7 +29,7 @@ use Config;
my (%key, %csr, %crt);
do {
my $OPENSSL = do {
- if (defined(my $prefix = ExtUtils::PkgConfig->variable('openssl', 'prefix'))) {
+ if (defined(my $prefix = $ENV{OPENSSLBASE})) {
my $OPENSSL = $prefix . '/bin/openssl' . $Config{exe_ext};
if (-x $OPENSSL) {
diag "Using `$OPENSSL' to generate a keypair";