]> Kevux Git Server - fll/commitdiff
Update: Testfiles should detect LD_LIBRARY_PATH.
authorKevin Day <thekevinday@gmail.com>
Sat, 25 Dec 2021 22:33:10 +0000 (16:33 -0600)
committerKevin Day <thekevinday@gmail.com>
Sat, 25 Dec 2021 22:33:10 +0000 (16:33 -0600)
If LD_LIBRARY_PATH is already defined, prepend to it.
Otherwise define it.

level_0/f_memory/data/build/testfile
level_0/f_type_array/data/build/testfile

index d43f58f4e3bd6d2279a3f253cae1779694551b16..c9af589e8379bdc20db3b0ddf90f4180c964060a 100644 (file)
@@ -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
index 5098800ddd660882137099b9d38e474406772714..f67d80823cc1db0f9e733089025458eff8df3a09 100644 (file)
@@ -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