1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-09 12:03:55 +02:00

* Use atdiff' instead of cmp' for checking test output.

* Don't use local file names in tests since they will produce
  different parse trees depending on the current directory.
This commit is contained in:
Eelco Dolstra 2004-10-27 13:12:58 +00:00
parent 3277c9432a
commit ed09821859
5 changed files with 9 additions and 5 deletions

View file

@ -16,7 +16,7 @@ for i in lang/parse-okay-*.nix; do
echo "FAIL: $i should parse"
fail=1
fi
if ! cmp lang/$i.ast lang/$i.exp; then
if ! $aterm_bin/atdiff lang/$i.ast lang/$i.exp; then
echo "FAIL: parse tree of $i not as expected"
fail=1
fi
@ -38,7 +38,7 @@ for i in lang/eval-okay-*.nix; do
echo "FAIL: $i should evaluate"
fail=1
fi
if ! cmp lang/$i.out lang/$i.exp; then
if ! $aterm_bin/atdiff lang/$i.out lang/$i.exp; then
echo "FAIL: evaluation result of $i not as expected"
fail=1
fi