1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 01:51:47 +02:00

* Test for `nix-instantiate --eval-only --xml'.

This commit is contained in:
Eelco Dolstra 2006-08-17 11:28:29 +00:00
parent 24e234a2fa
commit 4874fd2d9a
4 changed files with 68 additions and 1 deletions

View file

@ -44,6 +44,17 @@ for i in lang/eval-okay-*.nix; do
echo "FAIL: evaluation result of $i not as expected"
fail=1
fi
if test -e lang/$i.exp.xml; then
if ! $nixinstantiate --eval-only --xml --strict - < lang/$i.nix > lang/$i.out.xml; then
echo "FAIL: $i should evaluate"
fail=1
fi
if ! cmp -s lang/$i.out.xml lang/$i.exp.xml; then
echo "FAIL: XML evaluation result of $i not as expected"
fail=1
fi
fi
done
exit $fail
exit $fail