From: Kevin Day Date: Sat, 25 Dec 2021 22:33:10 +0000 (-0600) Subject: Update: Testfiles should detect LD_LIBRARY_PATH. X-Git-Tag: 0.5.8~159 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=f1e5e7ef2f5f95c3c4e5b0380607a94499debe7b;p=fll Update: Testfiles should detect LD_LIBRARY_PATH. If LD_LIBRARY_PATH is already defined, prepend to it. Otherwise define it. --- diff --git a/level_0/f_memory/data/build/testfile b/level_0/f_memory/data/build/testfile index d43f58f..c9af589 100644 --- a/level_0/f_memory/data/build/testfile +++ b/level_0/f_memory/data/build/testfile @@ -10,7 +10,10 @@ main: build settings build settings-tests - define LD_LIBRARY_PATH build/libraries/shared + if defined environment LD_LIBRARY_PATH + define LD_LIBRARY_PATH build/libraries/shared:define:"LD_LIBRARY_PATH" + else + define LD_LIBRARY_PATH build/libraries/shared if exists build/programs/shared/test-f_memory shell build/programs/shared/test-f_memory diff --git a/level_0/f_type_array/data/build/testfile b/level_0/f_type_array/data/build/testfile index 5098800..f67d808 100644 --- a/level_0/f_type_array/data/build/testfile +++ b/level_0/f_type_array/data/build/testfile @@ -10,6 +10,11 @@ main: build settings build settings-tests + if defined environment LD_LIBRARY_PATH + define LD_LIBRARY_PATH build/libraries/shared:define:"LD_LIBRARY_PATH" + else + define LD_LIBRARY_PATH build/libraries/shared + if exists build/programs/shared/test-f_type_array shell build/programs/shared/test-f_type_array