about summary refs log tree commit diff
path: root/tests/substituter2.builder.sh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2004-06-24T12·56+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2004-06-24T12·56+0000
commit8052aef4866e236ef0bb5d5675bbae330abb9b9b (patch)
tree149cae936f60724b4ccdb8714bff97950dc3ddf7 /tests/substituter2.builder.sh
parent66c7f347591c0c4e26e018672c487a3090e36e5e (diff)
* A test for multiple and/or failing substitutes.
Diffstat (limited to 'tests/substituter2.builder.sh')
-rw-r--r--tests/substituter2.builder.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/substituter2.builder.sh b/tests/substituter2.builder.sh
new file mode 100644
index 000000000000..1794500d6f6d
--- /dev/null
+++ b/tests/substituter2.builder.sh
@@ -0,0 +1,22 @@
+# Set a PATH (!!! impure).
+export PATH=/bin:/usr/bin:$PATH
+
+mkdir $out
+
+cat > $out/substituter <<EOF
+#! /bin/sh -ex
+echo \$*
+
+case \$* in
+    *aaaa*)
+        exit 1
+        ;;
+    *)
+        mkdir \$1
+        echo Foo \$3 \$4 > \$1/hello
+        ;;
+esac        
+EOF
+
+chmod +x $out/substituter
+