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:
parent
0777448ca6
commit
cae4efdca3
6 changed files with 1 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue