aboutsummaryrefslogtreecommitdiff
path: root/tests/lang.sh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-08-17 11:28:29 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-08-17 11:28:29 +0000
commit4874fd2d9a698170adfd22c69e8e38b5afb7d03c (patch)
tree1b61e744513a6b865f4428163bd14f8a0b03fb39 /tests/lang.sh
parent24e234a2fabd8930f1ef71a5bb03010725d0773a (diff)
* Test for `nix-instantiate --eval-only --xml'.
Diffstat (limited to 'tests/lang.sh')
-rw-r--r--tests/lang.sh13
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/lang.sh b/tests/lang.sh
index f743a1830..bbc97861a 100644
--- a/tests/lang.sh
+++ b/tests/lang.sh
@@ -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 \ No newline at end of file
+exit $fail