continue tests in case of failed one
This commit is contained in:
12
run-tests.sh
12
run-tests.sh
@@ -23,16 +23,16 @@ for t in $(ls tests/*.test); do
|
|||||||
fi
|
fi
|
||||||
if [ $? != 0 ]
|
if [ $? != 0 ]
|
||||||
then
|
then
|
||||||
echo "test run failed!"
|
echo "test $num run failed!"
|
||||||
exit 2
|
continue
|
||||||
fi
|
fi
|
||||||
if [ -f "tests/$num-output.graphml" ]
|
if [ -f "tests/$num-output.graphml" ]
|
||||||
then
|
then
|
||||||
diff "$t.graphml" "tests/$num-output.graphml"
|
diff "$t.graphml" "tests/$num-output.graphml"
|
||||||
if [ $? != 0 ]
|
if [ $? != 0 ]
|
||||||
then
|
then
|
||||||
echo "test failed: graphml file didn't match the pattern!"
|
echo "test $num failed: graphml file didn't match the pattern!"
|
||||||
exit 3
|
continue
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [ -f "tests/$num-output.txt" ]
|
if [ -f "tests/$num-output.txt" ]
|
||||||
@@ -40,8 +40,8 @@ for t in $(ls tests/*.test); do
|
|||||||
diff "$t.txt" "tests/$num-output.txt"
|
diff "$t.txt" "tests/$num-output.txt"
|
||||||
if [ $? != 0 ]
|
if [ $? != 0 ]
|
||||||
then
|
then
|
||||||
echo "test failed: output didn't match the pattern!"
|
echo "test $num failed: output didn't match the pattern!"
|
||||||
exit 3
|
continue
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
echo "ok"
|
echo "ok"
|
||||||
|
|||||||
Reference in New Issue
Block a user