summaryrefslogtreecommitdiff
path: root/test/withExtendedPath
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-05-31 18:30:10 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2024-06-03 10:09:24 +0200
commit3626877554b6c567d43336ec49414cedfe487260 (patch)
treef80c51ec1867fea029b955d85e89e39017f920e3 /test/withExtendedPath
downloadhello-nix-3626877554b6c567d43336ec49414cedfe487260.tar.gz
Initial commit
Diffstat (limited to 'test/withExtendedPath')
-rw-r--r--test/withExtendedPath/TARGETS7
-rw-r--r--test/withExtendedPath/test.sh12
2 files changed, 19 insertions, 0 deletions
diff --git a/test/withExtendedPath/TARGETS b/test/withExtendedPath/TARGETS
new file mode 100644
index 0000000..73a5a9e
--- /dev/null
+++ b/test/withExtendedPath/TARGETS
@@ -0,0 +1,7 @@
+{"withExtendedPath":
+ { "type": ["@", "rules", "shell/test", "script"]
+ , "name": ["find-in-extended-path"]
+ , "test": ["test.sh"]
+ , "deps": [["@", "src", "withExtendedPath", ""]]
+ }
+}
diff --git a/test/withExtendedPath/test.sh b/test/withExtendedPath/test.sh
new file mode 100644
index 0000000..de51742
--- /dev/null
+++ b/test/withExtendedPath/test.sh
@@ -0,0 +1,12 @@
+set -e
+
+TOOLS_DIR=`pwd`/additionalTools
+mkdir -p ${TOOLS_DIR}
+cat > ${TOOLS_DIR}/mytool <<'EOF'
+#!/bin/sh
+
+echo using my CuStOm tool
+EOF
+chmod 755 ${TOOLS_DIR}/mytool
+
+./withExtendedPath ${TOOLS_DIR} mytool | grep CuStOm