tests: reinstate tests for deprecated but non-removed functionality
authorPauli <paul.dale@oracle.com>
Tue, 3 Mar 2020 01:03:47 +0000 (11:03 +1000)
committerPauli <paul.dale@oracle.com>
Sun, 19 Apr 2020 00:36:35 +0000 (10:36 +1000)
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/11225)

test/recipes/15-test_dsa.t
test/recipes/15-test_ec.t
test/recipes/15-test_rsa.t

index 1495724e486d854392be16edb885600e4d274c13..5bbc54b082c23c633a92d954b4713e72bed22178 100644 (file)
@@ -21,27 +21,17 @@ plan tests => 7;
 
 require_ok(srctop_file('test','recipes','tconversion.pl'));
 
- SKIP: {
-     skip "Skipping initial dsa tests", 2
-         if disabled('deprecated-3.0');
-
-     ok(run(test(["dsatest"])), "running dsatest");
-     ok(run(test(["dsa_no_digest_size_test"])),
-        "running dsa_no_digest_size_test");
-}
-
- SKIP: {
-     skip "Skipping dsa conversion test using 'openssl dsa'", 2
-         if disabled('deprecated-3.0');
-
-     subtest "dsa conversions using 'openssl dsa' -- private key" => sub {
-         tconversion("dsa", srctop_file("test","testdsa.pem"));
-     };
-     subtest "dsa conversions using 'openssl dsa' -- public key" => sub {
-         tconversion("msb", srctop_file("test","testdsapub.pem"), "dsa",
-                     "-pubin", "-pubout");
-     };
-}
+ok(run(test(["dsatest"])), "running dsatest");
+ok(run(test(["dsa_no_digest_size_test"])),
+   "running dsa_no_digest_size_test");
+
+subtest "dsa conversions using 'openssl dsa' -- private key" => sub {
+    tconversion("dsa", srctop_file("test","testdsa.pem"));
+};
+subtest "dsa conversions using 'openssl dsa' -- public key" => sub {
+    tconversion("msb", srctop_file("test","testdsapub.pem"), "dsa",
+                "-pubin", "-pubout");
+};
 
 subtest "dsa conversions using 'openssl pkey' -- private key PKCS#8" => sub {
     tconversion("dsa", srctop_file("test","testdsa.pem"), "pkey");
index 127c1d12d1e7013db932897d95dceb248bbbc6c4..e8f9e2ffdda6662cd477f16fc09e5bea6935f161 100644 (file)
@@ -27,7 +27,7 @@ ok(run(test(["ectest"])), "running ectest");
 # the command line tool in addition to the algorithm.
 SKIP: {
     skip "Skipping EC conversion test", 3
-        if disabled("ec") || disabled('deprecated-3.0');
+        if disabled("ec");
 
     subtest 'EC conversions -- private key' => sub {
         tconversion("ec", srctop_file("test","testec-p256.pem"));
index 2e8afa82138195f8134b18fa99811df2c8596539..f078a6aeb2408e9bebc082a76f93cadfa5c622fa 100644 (file)
@@ -16,9 +16,6 @@ use OpenSSL::Test::Utils;
 
 setup("test_rsa");
 
-#plan skip_all => "RSA command line tool not built"
-#    if disabled("deprecated-3.0");
-
 plan tests => 10;
 
 require_ok(srctop_file('test', 'recipes', 'tconversion.pl'));
@@ -27,11 +24,7 @@ ok(run(test(["rsa_test"])), "running rsatest");
 
 run_rsa_tests("pkey");
 
- SKIP: {
-    skip "Skipping rsa command line tests", 4 if disabled('deprecated-3.0');
-
-    run_rsa_tests("rsa");
-}
+run_rsa_tests("rsa");
 
 sub run_rsa_tests {
     my $cmd = shift;