summaryrefslogtreecommitdiffhomepage
path: root/tests/custom/run_tests.sh
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-04-26 18:56:41 +0200
committerJo-Philipp Wich <jo@mein.io>2021-04-27 12:17:35 +0200
commit6def9fcf1cdec117866877aa5e7241e23bdc8c23 (patch)
treeee7a99bb9284a4fbf3050ab8bd0bfb41b6160e06 /tests/custom/run_tests.sh
parentd5dd183f3622002fbc4ae175045a3ebce4eeeb05 (diff)
tests: pass ucode library path through environment
This is required for out-of-tree builds where the *.so file location cannot be derived from the path of the ucode executable. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'tests/custom/run_tests.sh')
-rwxr-xr-xtests/custom/run_tests.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/custom/run_tests.sh b/tests/custom/run_tests.sh
index b20404a..61b116f 100755
--- a/tests/custom/run_tests.sh
+++ b/tests/custom/run_tests.sh
@@ -5,6 +5,7 @@ topdir=$(readlink -f "$testdir/../..")
line='........................................'
ucode_bin=${UCODE_BIN:-"$topdir/ucode"}
+ucode_lib=${UCODE_LIB:-"$topdir"}
extract_sections() {
local file=$1
@@ -53,7 +54,7 @@ run_testcase() {
(
cd "$topdir"
- $ucode_bin -e '{ "REQUIRE_SEARCH_PATH": [ "'"$topdir"'/*.so" ] }' -i - <"$in" >"$dir/res.out" 2>"$dir/res.err"
+ $ucode_bin -e '{ "REQUIRE_SEARCH_PATH": [ "'"$ucode_lib"'/*.so" ] }' -i - <"$in" >"$dir/res.out" 2>"$dir/res.err"
)
touch "$dir/empty"