2020-09-10 14:40:24 +08:00
|
|
|
#! /usr/bin/env perl
|
2021-03-11 21:27:36 +08:00
|
|
|
# Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved.
|
2020-09-10 14:40:24 +08:00
|
|
|
#
|
|
|
|
# Licensed under the Apache License 2.0 (the "License"). You may not use
|
|
|
|
# this file except in compliance with the License. You can obtain a copy
|
|
|
|
# in the file LICENSE in the source distribution or at
|
|
|
|
# https://www.openssl.org/source/license.html
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
|
2021-06-22 14:04:12 +08:00
|
|
|
use File::Spec::Functions;
|
2020-09-10 14:40:24 +08:00
|
|
|
use OpenSSL::Test::Simple;
|
2021-03-09 08:57:05 +08:00
|
|
|
use OpenSSL::Test qw/:DEFAULT srctop_dir data_dir/;
|
2020-09-10 14:40:24 +08:00
|
|
|
|
|
|
|
setup("test_ossl_store");
|
|
|
|
|
|
|
|
plan tests => 1;
|
|
|
|
|
2021-03-09 08:57:05 +08:00
|
|
|
ok(run(test(["ossl_store_test", "-dir", srctop_dir("test"),
|
2021-06-22 14:04:12 +08:00
|
|
|
"-in", "testrsa.pem", "-sm2", canonpath("certs/sm2-root.crt"),
|
2020-11-18 20:07:43 +08:00
|
|
|
"-data", data_dir()])));
|