Update Testing authored by Fabian Nuraddin Alexander Gabel's avatar Fabian Nuraddin Alexander Gabel
......@@ -17,8 +17,8 @@ Use this template in order to register new tests; replace `NN` and `Description`
```bash
```bash
#BEGIN Test NN: Description
T=NN
#BEGIN Test 1: Description
T=1
#echo "##################################################"
echo "Test $T: Description"
#echo "##################################################"
......@@ -39,7 +39,36 @@ then
else
echo "Test $T: passed."
fi
#END Test NN
#END Test 1
#BEGIN Test 2: Description
T=2
#echo "##################################################"
echo "Test $T: Description"
#echo "##################################################"
# preparation
# run script
#check results
DIFF=
#echo "--------------------------------------------------"
if [ "$DIFF" != "" ] && [ -f "" ]
then
echo "Test $T: failed"
exit 1
else
echo "Test $T: passed."
fi
#END Test 2
...
#don't modify below, these should be the last lines (errors exit earlier)
echo "--------------------------------------------------"
echo "ALL $T tests in $0 PASSED."
exit 0
```
## Concrete Example
......@@ -74,3 +103,4 @@ else
echo "Test $T: passed."
fi
#END Test 1
```
\ No newline at end of file