tvl-depot/tests/simple.sh
2006-03-01 12:51:18 +00:00

12 lines
238 B
Bash

source common.sh
drvPath=$($nixinstantiate simple.nix)
echo "derivation is $drvPath"
outPath=$($nixstore -rvv "$drvPath")
echo "output path is $outPath"
text=$(cat "$outPath"/hello)
if test "$text" != "Hello World!"; then exit 1; fi