Fix 80-test_ssl_old.t: only count the ciphers if there are any.
[openssl.git] / test / recipes / 95-test_external_pyca.t
1 #! /usr/bin/env perl
2 # Copyright 2015-2016 The OpenSSL Project Authors. All Rights Reserved.
3 #
4 # Licensed under the OpenSSL license (the "License").  You may not use
5 # this file except in compliance with the License.  You can obtain a copy
6 # in the file LICENSE in the source distribution or at
7 # https://www.openssl.org/source/license.html
8
9
10 use OpenSSL::Test;
11 use OpenSSL::Test::Utils;
12 use OpenSSL::Test qw/:DEFAULT bldtop_file data_file srctop_file cmdstr/;
13
14 setup("test_external");
15
16 plan skip_all => "No external tests in this configuration"
17     if disabled("external-tests");
18
19 plan tests => 1;
20
21 SKIP: {
22     skip "PYCA Cryptography not available", 1
23         if ! -f srctop_file("pyca-cryptography", "setup.py");
24     skip "PYCA tests not available on Windows or VMS", 1
25         if $^O =~ /^(VMS|MSWin32)$/;
26     skip "PYCA tests only available in a shared build", 1
27         if disabled("shared");
28
29     ok(run(cmd(["sh", data_file("cryptography.sh")])),
30         "running Python Cryptography tests");
31 }
32