More tests.

This commit is contained in:
Andy Stewart
2014-11-14 14:14:42 +01:00
parent 6cef76aa99
commit 4ca2de65b7
4 changed files with 18 additions and 3 deletions

View File

@@ -8,6 +8,9 @@ rm -f *.actual
# Execute the tests.
for testcase in test*.vim; do
git reset HEAD fixture.txt > /dev/null
git checkout fixture.txt
vim -N -u NONE -S $testcase -c 'quit!'
done
@@ -22,6 +25,7 @@ for expected in *.expected; do
if diff $expected $actual; then
count_ok=$((count_ok + 1))
echo "$name ok"
rm $actual
else
count_fail=$((count_fail + 1))
echo "$name failed"
@@ -31,7 +35,6 @@ done
# Clean up.
git reset HEAD fixture.txt > /dev/null
git checkout fixture.txt
# rm -f *.actual
# Print results.
echo