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

* Because --parse-only no longer produces an ATerm, don't check the

output.  Whether it parses at all should be enough.
This commit is contained in:
Eelco Dolstra 2010-04-21 16:02:12 +00:00
parent 0777448ca6
commit cae4efdca3
6 changed files with 1 additions and 10 deletions

View file

@ -16,14 +16,10 @@ done
for i in lang/parse-okay-*.nix; do
echo "parsing $i (should succeed)";
i=$(basename $i .nix)
if ! $nixinstantiate --parse-only - < lang/$i.nix > lang/$i.ast; then
if ! $nixinstantiate --parse-only - < lang/$i.nix > lang/$i.out; then
echo "FAIL: $i should parse"
fail=1
fi
if ! $aterm_bin/atdiff lang/$i.ast lang/$i.exp; then
echo "FAIL: parse tree of $i not as expected"
fail=1
fi
done
for i in lang/eval-fail-*.nix; do