Blame test/recipes/95-test_external_pyca.t
|
Packit |
c4476c |
#! /usr/bin/env perl
|
|
Packit |
c4476c |
# Copyright 2015-2016 The OpenSSL Project Authors. All Rights Reserved.
|
|
Packit |
c4476c |
#
|
|
Packit |
c4476c |
# Licensed under the OpenSSL license (the "License"). You may not use
|
|
Packit |
c4476c |
# this file except in compliance with the License. You can obtain a copy
|
|
Packit |
c4476c |
# in the file LICENSE in the source distribution or at
|
|
Packit |
c4476c |
# https://www.openssl.org/source/license.html
|
|
Packit |
c4476c |
|
|
Packit |
c4476c |
|
|
Packit |
c4476c |
use OpenSSL::Test;
|
|
Packit |
c4476c |
use OpenSSL::Test::Utils;
|
|
Packit |
c4476c |
use OpenSSL::Test qw/:DEFAULT bldtop_file data_file srctop_file cmdstr/;
|
|
Packit |
c4476c |
|
|
Packit |
c4476c |
setup("test_external");
|
|
Packit |
c4476c |
|
|
Packit |
c4476c |
plan skip_all => "No external tests in this configuration"
|
|
Packit |
c4476c |
if disabled("external-tests");
|
|
Packit |
c4476c |
plan skip_all => "PYCA tests not available on Windows or VMS"
|
|
Packit |
c4476c |
if $^O =~ /^(VMS|MSWin32)$/;
|
|
Packit |
c4476c |
plan skip_all => "PYCA Cryptography not available"
|
|
Packit |
c4476c |
if ! -f srctop_file("pyca-cryptography", "setup.py");
|
|
Packit |
c4476c |
plan skip_all => "PYCA tests only available in a shared build"
|
|
Packit |
c4476c |
if disabled("shared");
|
|
Packit |
c4476c |
|
|
Packit |
c4476c |
plan tests => 1;
|
|
Packit |
c4476c |
|
|
Packit |
c4476c |
ok(run(cmd(["sh", data_file("cryptography.sh")])),
|
|
Packit |
c4476c |
"running Python Cryptography tests");
|