diff options
author | Matt Caswell <matt@openssl.org> | 2018-05-31 13:09:39 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2018-06-04 11:59:40 +0100 |
commit | 266291aa8dc203c6791cc94b617323d4b04d7094 (patch) | |
tree | 49a1ef614d117d1f44a292af711b6baf3abc6aff /test | |
parent | 2398404e007a3d94a1be9db1574007b4242f4f9a (diff) | |
download | openssl-new-266291aa8dc203c6791cc94b617323d4b04d7094.tar.gz |
Add test recipes for internal SM2 tests
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6386)
Diffstat (limited to 'test')
-rw-r--r-- | test/recipes/03-test_sm2_crypt_internal.t | 19 | ||||
-rw-r--r-- | test/recipes/03-test_sm2_sign_internal.t | 19 |
2 files changed, 38 insertions, 0 deletions
diff --git a/test/recipes/03-test_sm2_crypt_internal.t b/test/recipes/03-test_sm2_crypt_internal.t new file mode 100644 index 0000000000..e027a080c4 --- /dev/null +++ b/test/recipes/03-test_sm2_crypt_internal.t @@ -0,0 +1,19 @@ +#! /usr/bin/env perl +# Copyright 2017-2018 The OpenSSL Project Authors. All Rights Reserved. +# +# Licensed under the OpenSSL license (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 OpenSSL::Test; # get 'plan' +use OpenSSL::Test::Simple; +use OpenSSL::Test::Utils; + +setup("test_sm2_crypt_internal_sm2"); + +plan skip_all => "This test is unsupported in a shared library build on Windows" + if $^O eq 'MSWin32' && !disabled("shared"); + +simple_test("test_sm2_crypt_internal_sm2", "sm2_crypt_internal_test", "sm2"); diff --git a/test/recipes/03-test_sm2_sign_internal.t b/test/recipes/03-test_sm2_sign_internal.t new file mode 100644 index 0000000000..c3d3d3262f --- /dev/null +++ b/test/recipes/03-test_sm2_sign_internal.t @@ -0,0 +1,19 @@ +#! /usr/bin/env perl +# Copyright 2017-2018 The OpenSSL Project Authors. All Rights Reserved. +# +# Licensed under the OpenSSL license (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 OpenSSL::Test; # get 'plan' +use OpenSSL::Test::Simple; +use OpenSSL::Test::Utils; + +setup("test_sm2_sign_internal"); + +plan skip_all => "This test is unsupported in a shared library build on Windows" + if $^O eq 'MSWin32' && !disabled("shared"); + +simple_test("test_sm2_sign_internal", "sm2_sign_internal_test", "sm2"); |