about summary refs log tree commit diff
path: root/tests/substituter2.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/substituter2.sh')
-rwxr-xr-xtests/substituter2.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/substituter2.sh b/tests/substituter2.sh
new file mode 100755
index 000000000000..84925b94405f
--- /dev/null
+++ b/tests/substituter2.sh
@@ -0,0 +1,18 @@
+# Set a PATH (!!! impure).
+export PATH=/bin:/usr/bin:$PATH
+
+mkdir $out
+
+cat > $out/substituter <<EOF
+#! /bin/sh -ex
+echo \$*
+
+case \$* in
+    *)
+        exit 1
+        ;;
+esac        
+EOF
+
+chmod +x $out/substituter
+