From 72d1888e134fffab13a659a9b1537087d40ae25d Mon Sep 17 00:00:00 2001 From: Ronald Cron Date: Tue, 16 Jul 2024 10:19:44 +0200 Subject: [PATCH] Adapt run-test-suites.pl Signed-off-by: Ronald Cron --- tests/scripts/run-test-suites.pl | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tests/scripts/run-test-suites.pl b/tests/scripts/run-test-suites.pl index e0ee3f515c..408deaf13b 100755 --- a/tests/scripts/run-test-suites.pl +++ b/tests/scripts/run-test-suites.pl @@ -59,8 +59,15 @@ my $skip_re = ')(\z|\.)' ); # in case test suites are linked dynamically -$ENV{'LD_LIBRARY_PATH'} = '../library'; -$ENV{'DYLD_LIBRARY_PATH'} = '../library'; +if (-d '../../tf-psa-crypto') { + $ENV{'LD_LIBRARY_PATH'} = '../../library'; + $ENV{'DYLD_LIBRARY_PATH'} = '../../library'; +} +else +{ + $ENV{'LD_LIBRARY_PATH'} = '../library'; + $ENV{'DYLD_LIBRARY_PATH'} = '../library'; +} my $prefix = $^O eq "MSWin32" ? '' : './';