summaryrefslogtreecommitdiff
path: root/test/end-to-end/built-in-rules
diff options
context:
space:
mode:
authorKlaus T. Aehlig <aehlig@linta.de>2024-02-05 11:46:34 +0100
committerKlaus T. Aehlig <aehlig@linta.de>2024-02-05 16:24:18 +0100
commitb20171a41a97dbfd75a98955694eb9df5314ef27 (patch)
tree1be0e4d5ecaf0bec2e5b198da3d9ff1c3aea0d0d /test/end-to-end/built-in-rules
parentd71277e0a0b6ad60b6ecce4382b7f7f3e35c3282 (diff)
downloadjustbuild-b20171a41a97dbfd75a98955694eb9df5314ef27.tar.gz
end-to-end tests: inherit path
... for test actions, by setting an appropriate local launcher. In this way, the tests can also be run on systems where sh does not pull in enough paths to have all the "usual" tools available.
Diffstat (limited to 'test/end-to-end/built-in-rules')
-rwxr-xr-xtest/end-to-end/built-in-rules/generic_out_dirs.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/end-to-end/built-in-rules/generic_out_dirs.sh b/test/end-to-end/built-in-rules/generic_out_dirs.sh
index afa49d19..c4dd81da 100755
--- a/test/end-to-end/built-in-rules/generic_out_dirs.sh
+++ b/test/end-to-end/built-in-rules/generic_out_dirs.sh
@@ -47,7 +47,7 @@ cat <<EOF > TARGETS
EOF
echo "read_out_dirs" >&2
-bin/tool-under-test build --local-build-root lcl-build read_out_dirs
+bin/tool-under-test build -L '["env", "PATH='"${PATH}"'"]' --local-build-root lcl-build read_out_dirs
echo "done" >&2
echo "missing_outs_and_out_dirs" >&2
@@ -64,7 +64,7 @@ echo "out_dirs_contains_a_file" >&2
# the analysis phase should run fine
bin/tool-under-test analyse --local-build-root lcl-build out_dirs_contains_a_file
echo "analysis ok" >&2
-bin/tool-under-test build --local-build-root lcl-build out_dirs_contains_a_file && exit 1 || :
+bin/tool-under-test build -L '["env", "PATH='"${PATH}"'"]' --local-build-root lcl-build out_dirs_contains_a_file && exit 1 || :
echo "done" >&2
echo "outs_contains_a_dir" >&2
@@ -73,7 +73,7 @@ echo "outs_contains_a_dir" >&2
# anlysis should run fine
bin/tool-under-test analyse --local-build-root lcl-build outs_contains_a_dir
echo "analysis ok" >&2
-bin/tool-under-test build --local-build-root lcl-build -f test.log outs_contains_a_dir && exit 1 || :
+bin/tool-under-test build -L '["env", "PATH='"${PATH}"'"]' --local-build-root lcl-build -f test.log outs_contains_a_dir && exit 1 || :
# grep 'ERROR' test.log | grep 'output file'
echo "done" >&2