Updated nbfi test suite, tests and a bit of refactoring

This commit is contained in:
Veit Heller
2014-10-12 13:58:25 +02:00
parent 125030c3e0
commit 79cbec14db
3 changed files with 31 additions and 9 deletions

View File

@@ -1,9 +1,29 @@
#!/bin/bash
for i in `ls test` ; do
for i in `ls test | grep -v fail` ; do
echo Running test $i:
echo ---------------------
bin/nbfi test/$i
return=$?
if [ $return != 0 ] ; then
echo Test $i failed.
exit 1
fi
echo
echo ---------------------
echo End of test $i
echo
done
for i in `ls test/*fail*` ; do
echo Running expected fail test $i:
echo ---------------------
bin/nbfi $i
return=$?
if [ $return != 127 ] ; then
echo Test $i failed.
exit 1
fi
echo
echo ---------------------
echo End of test $i