2016-10-10 19:24:00 +08:00
|
|
|
#! /usr/bin/env perl
|
|
|
|
# Copyright 2015-2016 The OpenSSL Project Authors. All Rights Reserved.
|
|
|
|
#
|
2018-12-06 20:05:25 +08:00
|
|
|
# Licensed under the Apache License 2.0 (the "License"). You may not use
|
2016-10-10 19:24:00 +08:00
|
|
|
# this file except in compliance with the License. You can obtain a copy
|
|
|
|
# in the file LICENSE in the source distribution or at
|
|
|
|
# https://www.openssl.org/source/license.html
|
|
|
|
|
|
|
|
|
|
|
|
use OpenSSL::Test;
|
|
|
|
use OpenSSL::Test::Utils;
|
2016-11-10 00:25:35 +08:00
|
|
|
use OpenSSL::Test qw/:DEFAULT bldtop_file srctop_file cmdstr/;
|
2016-10-10 19:24:00 +08:00
|
|
|
|
2017-03-11 03:42:12 +08:00
|
|
|
setup("test_external_boringssl");
|
2016-10-10 19:24:00 +08:00
|
|
|
|
2016-11-10 00:25:35 +08:00
|
|
|
plan skip_all => "No external tests in this configuration"
|
|
|
|
if disabled("external-tests");
|
2017-03-11 03:42:12 +08:00
|
|
|
plan skip_all => "BoringSSL runner not detected"
|
|
|
|
if !$ENV{BORING_RUNNER_DIR};
|
2016-10-10 19:24:00 +08:00
|
|
|
|
|
|
|
plan tests => 1;
|
|
|
|
|
|
|
|
indir $ENV{BORING_RUNNER_DIR} => sub {
|
2017-04-12 21:53:09 +08:00
|
|
|
ok(run(cmd(["go", "test", "-shim-path",
|
|
|
|
bldtop_file("test", "ossl_shim", "ossl_shim"),
|
|
|
|
"-shim-config",
|
|
|
|
srctop_file("test", "ossl_shim", "ossl_config.json"),
|
|
|
|
"-pipe", "-allow-unimplemented"]), prefix => "go test: "),
|
2017-03-11 03:42:12 +08:00
|
|
|
"running BoringSSL tests");
|
2016-10-10 19:24:00 +08:00
|
|
|
}, create => 0, cleanup => 0;
|