1*66bae5e7Schristos#! /usr/bin/env perl 2*66bae5e7Schristos# Copyright 2015-2021 The OpenSSL Project Authors. All Rights Reserved. 3*66bae5e7Schristos# 4*66bae5e7Schristos# Licensed under the Apache License 2.0 (the "License"). You may not use 5*66bae5e7Schristos# this file except in compliance with the License. You can obtain a copy 6*66bae5e7Schristos# in the file LICENSE in the source distribution or at 7*66bae5e7Schristos# https://www.openssl.org/source/license.html 8*66bae5e7Schristos 9*66bae5e7Schristos 10*66bae5e7Schristosuse OpenSSL::Test; 11*66bae5e7Schristosuse OpenSSL::Test::Utils; 12*66bae5e7Schristosuse OpenSSL::Test qw/:DEFAULT data_file bldtop_dir srctop_dir cmdstr/; 13*66bae5e7Schristos 14*66bae5e7Schristossetup("test_external_gost_engine"); 15*66bae5e7Schristos 16*66bae5e7Schristosplan skip_all => "No external tests in this configuration" 17*66bae5e7Schristos if disabled("external-tests"); 18*66bae5e7Schristosplan skip_all => "GOST engine tests not available on Windows or VMS" 19*66bae5e7Schristos if $^O =~ /^(VMS|MSWin32)$/; 20*66bae5e7Schristosplan skip_all => "GOST engine tests only available in a shared build" 21*66bae5e7Schristos if disabled("shared"); 22*66bae5e7Schristosplan skip_all => "GOST engine tests not supported in out of tree builds" 23*66bae5e7Schristos if bldtop_dir() ne srctop_dir(); 24*66bae5e7Schristos 25*66bae5e7Schristosplan tests => 1; 26*66bae5e7Schristos 27*66bae5e7Schristosok(run(cmd(["sh", data_file("gost_engine.sh")])), 28*66bae5e7Schristos "running GOST engine tests"); 29