summaryrefslogtreecommitdiffstats
path: root/test/recipes/80-test_ocsp.t
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2020-02-14 08:37:32 +0100
committerRichard Levitte <levitte@openssl.org>2020-02-18 09:45:53 +0100
commitacf3360cadd959819307192d66269ab648d48a98 (patch)
tree91f146944ceff68be2ded8592dcaf47a0f1ba5de /test/recipes/80-test_ocsp.t
parent4b3327e70e1e97550a65a5d4aa26e017770e2214 (diff)
TEST: Modify test/recipes/80-test_ocsp.t to leave artifacts behind
Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/11080)
Diffstat (limited to 'test/recipes/80-test_ocsp.t')
-rw-r--r--test/recipes/80-test_ocsp.t7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/recipes/80-test_ocsp.t b/test/recipes/80-test_ocsp.t
index 5ca069801b..74ef7e3662 100644
--- a/test/recipes/80-test_ocsp.t
+++ b/test/recipes/80-test_ocsp.t
@@ -12,6 +12,7 @@ use warnings;
use POSIX;
use File::Spec::Functions qw/devnull catfile/;
+use File::Basename;
use File::Copy;
use OpenSSL::Test qw/:DEFAULT with pipe srctop_dir data_file/;
use OpenSSL::Test::Utils;
@@ -34,18 +35,18 @@ sub test_ocsp {
$untrusted = $CAfile;
}
my $expected_exit = shift;
+ my $outputfile = basename($inputfile, '.ors') . '.dat';
run(app(["openssl", "base64", "-d",
"-in", catfile($ocspdir,$inputfile),
- "-out", "ocsp-resp-fff.dat"]));
+ "-out", $outputfile]));
with({ exit_checker => sub { return shift == $expected_exit; } },
- sub { ok(run(app(["openssl", "ocsp", "-respin", "ocsp-resp-fff.dat",
+ sub { ok(run(app(["openssl", "ocsp", "-respin", $outputfile,
"-partial_chain", @check_time,
"-CAfile", catfile($ocspdir, $CAfile),
"-verify_other", catfile($ocspdir, $untrusted),
"-no-CApath"])),
$title); });
- unlink "ocsp-resp-fff.dat";
}
plan tests => 11;