mirror of
https://github.com/NixOS/nix
synced 2025-07-08 19:23:54 +02:00
* A test for multiple and/or failing substitutes.
This commit is contained in:
parent
66c7f34759
commit
8052aef486
5 changed files with 80 additions and 5 deletions
22
tests/substituter2.builder.sh
Normal file
22
tests/substituter2.builder.sh
Normal file
|
@ -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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue