summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2017-02-07 16:30:31 +0100
committerRichard Levitte <levitte@openssl.org>2017-06-29 11:55:32 +0200
commitd32e10d6fadd39bf01282922a8ed3543173de440 (patch)
tree3eb51da2b8672b58888859e7376f4d6f502112dd /test
parent970f467ac32af4fb5680eb5bc845f35618468bed (diff)
Test that storeutl with a directory path works as expected
Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3542)
Diffstat (limited to 'test')
-rw-r--r--test/recipes/90-test_store.t10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/recipes/90-test_store.t b/test/recipes/90-test_store.t
index 53413b785b..0db70a40e7 100644
--- a/test/recipes/90-test_store.t
+++ b/test/recipes/90-test_store.t
@@ -8,7 +8,7 @@
use File::Spec;
use MIME::Base64;
-use OpenSSL::Test qw(:DEFAULT srctop_file bldtop_file data_file);
+use OpenSSL::Test qw(:DEFAULT srctop_file srctop_dir bldtop_file data_file);
my $test_name = "test_store";
setup($test_name);
@@ -59,7 +59,8 @@ my @generated_files =
my $n = (2 * scalar @noexist_files)
+ (5 * scalar @src_files)
- + (3 * scalar @generated_files);
+ + (3 * scalar @generated_files)
+ + 2;
plan tests => $n;
@@ -92,6 +93,11 @@ indir "store_$$" => sub {
ok(!run(app(["openssl", "storeutl", "-passin", "pass:password",
to_rel_file_uri($_)])));
}
+ {
+ my $dir = srctop_dir("test", "certs");
+ ok(run(app(["openssl", "storeutl", $dir])));
+ ok(run(app(["openssl", "storeutl", to_file_uri($dir, 1)])));
+ }
}
}, create => 1, cleanup => 1;