95-test_external_pyca.t 994 B

12345678910111213141516171819202122232425262728
  1. #! /usr/bin/env perl
  2. # Copyright 2015-2021 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 data_file srctop_file cmdstr/;
  11. setup("test_external_pyca");
  12. plan skip_all => "No external tests in this configuration"
  13. if disabled("external-tests");
  14. plan skip_all => "PYCA tests not available on Windows or VMS"
  15. if $^O =~ /^(VMS|MSWin32)$/;
  16. plan skip_all => "PYCA Cryptography not available"
  17. if ! -f srctop_file("pyca-cryptography", "setup.py");
  18. plan skip_all => "PYCA tests only available in a shared build"
  19. if disabled("shared");
  20. plan tests => 1;
  21. ok(run(cmd(["sh", data_file("cryptography.sh")])),
  22. "running Python Cryptography tests");