Skip GOST engine tests in out of tree builds
authorTomas Mraz <tomas@openssl.org>
Mon, 26 Apr 2021 11:12:28 +0000 (13:12 +0200)
committerTomas Mraz <tomas@openssl.org>
Wed, 28 Apr 2021 07:38:31 +0000 (09:38 +0200)
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15028)

test/recipes/95-test_external_gost_engine.t

index 643e45fc9344fc833938b62da26de30c70970324..37daaf7ecae839374ad4752ccb6a8537aae2c248 100644 (file)
@@ -9,7 +9,7 @@
 
 use OpenSSL::Test;
 use OpenSSL::Test::Utils;
-use OpenSSL::Test qw/:DEFAULT bldtop_file data_file srctop_file cmdstr/;
+use OpenSSL::Test qw/:DEFAULT data_file bldtop_dir srctop_dir cmdstr/;
 
 setup("test_external_gost_engine");
 
@@ -19,6 +19,8 @@ plan skip_all => "GOST engine tests not available on Windows or VMS"
     if $^O =~ /^(VMS|MSWin32)$/;
 plan skip_all => "GOST engine tests only available in a shared build"
     if disabled("shared");
+plan skip_all => "GOST engine tests not supported in out of tree builds"
+    if bldtop_dir() ne srctop_dir();
 
 plan tests => 1;