95-test_external_boringssl.t 1.0 KB

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