openssl/test/recipes/80-test_ct.t
Richard Levitte 1bee9d6b6c Fix ct_test to not assume it's in the source directory
ct_test assumed it's run in the source directory and failed when built
elsewhere.  It still defaults to that, but can be told another story
with the environment variables CT_DIR and CERTS_DIR.

Test recipe updated to match.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Emilia Käsper <emilia@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-03-09 11:35:18 -05:00

10 lines
308 B
Perl

#! /usr/bin/perl
use OpenSSL::Test qw/:DEFAULT srctop_file/;
use OpenSSL::Test::Simple;
setup("test_ct");
$ENV{CTLOG_FILE} = srctop_file("test", "ct", "log_list.conf");
$ENV{CT_DIR} = srctop_file("test", "ct");
$ENV{CERTS_DIR} = srctop_file("test", "certs");
simple_test("test_ct", "ct_test", "ct", "ec");