1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-08 02:43:54 +02:00

* Builtin function `add' to add integers.

* Put common test functions in tests/lang/lib.nix.
This commit is contained in:
Eelco Dolstra 2006-09-22 15:29:21 +00:00
parent d315210612
commit 2ab4bc44c7
11 changed files with 68 additions and 26 deletions

View file

@ -27,7 +27,7 @@ done
for i in lang/eval-fail-*.nix; do
echo "evaluating $i (should fail)";
i=$(basename $i .nix)
if $nixinstantiate --eval-only - < lang/$i.nix; then
if $nixinstantiate --eval-only lang/$i.nix; then
echo "FAIL: $i shouldn't evaluate"
fail=1
fi
@ -38,7 +38,7 @@ for i in lang/eval-okay-*.nix; do
i=$(basename $i .nix)
if test -e lang/$i.exp; then
if ! $nixinstantiate --eval-only - < lang/$i.nix > lang/$i.out; then
if ! $nixinstantiate --eval-only lang/$i.nix > lang/$i.out; then
echo "FAIL: $i should evaluate"
fail=1
fi
@ -49,7 +49,7 @@ for i in lang/eval-okay-*.nix; do
fi
if test -e lang/$i.exp.xml; then
if ! $nixinstantiate --eval-only --xml --strict - < lang/$i.nix > lang/$i.out.xml; then
if ! $nixinstantiate --eval-only --xml --strict lang/$i.nix > lang/$i.out.xml; then
echo "FAIL: $i should evaluate"
fail=1
fi