From d1278fa1737e2038d909c54dfabf29430a186cb3 Mon Sep 17 00:00:00 2001
From: Florent Pruvost <florent.pruvost@inria.fr>
Date: Thu, 9 Aug 2018 18:27:20 +0200
Subject: [PATCH] add directories of custom install in LD_LIBRARY_PATH for
 running tests

---
 .gitlab-ci-env.sh | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci-env.sh b/.gitlab-ci-env.sh
index 70b677db8..26096fece 100755
--- a/.gitlab-ci-env.sh
+++ b/.gitlab-ci-env.sh
@@ -5,11 +5,20 @@
 # these paths may depend on the runner used, please be careful and add
 # the necessary if blocks depending on the machine
 
+# too noisy
 export STARPU_SILENT=1
 
+# if simgrid change the default starpu dir to use
 if [ "$1" == "simu" ]; then
-  export STARPU_DIR=/builds/install/starpu-simgrid
+  export STARPU_DIR=$STARPUSIMGRID_DIR
 fi
 
+# for build: better to rely on pkg-config than to guess libraries with the env. var.
 export PKG_CONFIG_PATH=$PARSEC_DIR/lib/pkgconfig:$PKG_CONFIG_PATH
 export PKG_CONFIG_PATH=$STARPU_DIR/lib/pkgconfig:$PKG_CONFIG_PATH
+
+# for ctest: we need this at runtime
+export LD_LIBRARY_PATH=$PARSEC_DIR/lib:$LD_LIBRARY_PATH
+export LD_LIBRARY_PATH=$QUARK_DIR/lib:$LD_LIBRARY_PATH
+export LD_LIBRARY_PATH=$STARPU_DIR/lib:$LD_LIBRARY_PATH
+export LD_LIBRARY_PATH=$SIMGRID_DIR/lib:$LD_LIBRARY_PATH
-- 
GitLab