2 # Copyright 2015-2016 The OpenSSL Project Authors. All Rights Reserved.
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
11 use OpenSSL::Test::Utils;
12 use OpenSSL::Test qw/:DEFAULT bldtop_file srctop_file cmdstr/;
14 setup("test_external");
16 plan skip_all => "No external tests in this configuration"
17 if disabled("external-tests");
19 if (!$ENV{BORING_RUNNER_DIR}) {
20 plan skip_all => "No external tests have been detected";
25 indir $ENV{BORING_RUNNER_DIR} => sub {
26 ok(filter_run(cmd(["go", "test", "-shim-path",
27 bldtop_file("test", "ossl_shim", "ossl_shim"),
29 srctop_file("test", "ossl_shim", "ossl_config.json"),
30 "-pipe", "-allow-unimplemented"])),
31 "running external tests");
32 }, create => 0, cleanup => 0;
34 # Filter the output so that the "ok" printed by go test doesn't confuse
35 # Test::More. Without that it thinks there has been one more test run than was
38 my $cmd = cmdstr(shift);
39 open(PIPE, "-|", $cmd);
41 print STDOUT "go test: ", $_;