Blame test/recipes/90-test_sslapi.t

Packit c4476c
#! /usr/bin/env perl
Packit c4476c
# Copyright 2016-2019 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::Utils;
Packit c4476c
use OpenSSL::Test qw/:DEFAULT srctop_file srctop_dir/;
Packit c4476c
use File::Temp qw(tempfile);
Packit c4476c
Packit c4476c
setup("test_sslapi");
Packit c4476c
Packit c4476c
plan skip_all => "No TLS/SSL protocols are supported by this OpenSSL build"
Packit c4476c
    if alldisabled(grep { $_ ne "ssl3" } available_protocols("tls"));
Packit c4476c
Packit c4476c
plan tests => 1;
Packit c4476c
Packit c4476c
(undef, my $tmpfilename) = tempfile();
Packit c4476c
Packit c4476c
ok(run(test(["sslapitest", srctop_dir("test", "certs"),
Packit c4476c
             srctop_file("test", "recipes", "90-test_sslapi_data",
Packit c4476c
                         "passwd.txt"), $tmpfilename])),
Packit c4476c
             "running sslapitest");
Packit c4476c
Packit c4476c
unlink $tmpfilename;