nix-super/tests/build-hook.sh

11 lines
234 B
Bash
Raw Normal View History

source common.sh
2017-05-02 13:07:56 +03:00
clearStore
2017-05-02 13:07:56 +03: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