summaryrefslogtreecommitdiffstats
path: root/test/recipes/80-test_cipherlist.t
diff options
context:
space:
mode:
authorEmilia Kasper <emilia@openssl.org>2016-04-06 16:03:06 +0200
committerEmilia Kasper <emilia@openssl.org>2016-05-11 18:59:46 +0200
commit5a22cf96a0a1c34968c0664f99b7ebb7ccf6ed75 (patch)
tree1f0b8c83b3c685b3aee4e1abfadb14aebc9ccde3 /test/recipes/80-test_cipherlist.t
parent6e3ff63228c7b74c899b3bbc81e7f11db20956de (diff)
Replace cipherlist test
The old cipherlist test in ssltest.c only tests the internal order of the cipher table, which is pretty useless. Replace this test with a test that catches inadvertent changes to the default cipherlist. Fix run_tests.pl to correctly filter tests that have "list" in their name. (Also includes a small drive-by fix in .gitignore.) Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'test/recipes/80-test_cipherlist.t')
-rw-r--r--test/recipes/80-test_cipherlist.t18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/recipes/80-test_cipherlist.t b/test/recipes/80-test_cipherlist.t
new file mode 100644
index 0000000000..af9ac33733
--- /dev/null
+++ b/test/recipes/80-test_cipherlist.t
@@ -0,0 +1,18 @@
+#! /usr/bin/perl
+
+use strict;
+use warnings;
+
+use OpenSSL::Test::Simple;
+use OpenSSL::Test;
+use OpenSSL::Test::Utils qw(alldisabled available_protocols);
+
+setup("test_cipherlist");
+
+my $no_anytls = alldisabled(available_protocols("tls"));
+
+# If we have no protocols, then we also have no supported ciphers.
+plan skip_all => "No SSL/TLS protocol is supported by this OpenSSL build."
+ if $no_anytls;
+
+simple_test("test_cipherlist", "cipherlist_test", "cipherlist");