]>
Commit | Line | Data |
---|---|---|
8c6c5077 MC |
1 | #! /usr/bin/env perl |
2 | # Copyright 2015-2016 The OpenSSL Project Authors. All Rights Reserved. | |
3 | # | |
909f1a2e | 4 | # Licensed under the Apache License 2.0 (the "License"). You may not use |
8c6c5077 MC |
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 | |
8 | ||
9 | ||
10 | use OpenSSL::Test; | |
11 | use OpenSSL::Test::Utils; | |
ab29eca6 | 12 | use OpenSSL::Test qw/:DEFAULT bldtop_file srctop_file cmdstr/; |
8c6c5077 | 13 | |
fb68fba0 | 14 | setup("test_external_boringssl"); |
8c6c5077 | 15 | |
ab29eca6 EK |
16 | plan skip_all => "No external tests in this configuration" |
17 | if disabled("external-tests"); | |
fb68fba0 RL |
18 | plan skip_all => "BoringSSL runner not detected" |
19 | if !$ENV{BORING_RUNNER_DIR}; | |
8c6c5077 MC |
20 | |
21 | plan tests => 1; | |
22 | ||
23 | indir $ENV{BORING_RUNNER_DIR} => sub { | |
f75f007c RL |
24 | ok(run(cmd(["go", "test", "-shim-path", |
25 | bldtop_file("test", "ossl_shim", "ossl_shim"), | |
26 | "-shim-config", | |
27 | srctop_file("test", "ossl_shim", "ossl_config.json"), | |
28 | "-pipe", "-allow-unimplemented"]), prefix => "go test: "), | |
fb68fba0 | 29 | "running BoringSSL tests"); |
8c6c5077 | 30 | }, create => 0, cleanup => 0; |