1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-20 11:11:03 -04:00
nix/tests/build-hook.sh

11 lines
234 B
Bash
Raw Normal View History

source common.sh
2017-05-02 06:07:56 -04:00
clearStore
2017-05-02 06:07:56 -04:00
outPath=$(nix-build build-hook.nix --no-out-link --option build-hook $(pwd)/build-hook.hook.sh)
echo "output path is $outPath"
text=$(cat "$outPath"/foobar)
if test "$text" != "BARBAR"; then exit 1; fi