| 1 |
#!/bin/sh |
| 2 |
set -e |
| 3 |
|
| 4 |
OTHER_TESTS="sptort ztorture memtort itertort mfuntort iotort" |
| 5 |
|
| 6 |
cp -r /usr/share/doc/libmeschach-dev/examples . |
| 7 |
cd examples |
| 8 |
make torture 2>make_torture.err |
| 9 |
# a compilation warning is expected in make_torture.err |
| 10 |
cat make_torture.err |
| 11 |
make alltorture |
| 12 |
|
| 13 |
echo "running torture ..." |
| 14 |
./torture 2>torture.err |
| 15 |
# an explicit stderr test is expected in torture.err |
| 16 |
cat torture.err |
| 17 |
echo "... completed torture\n\n" |
| 18 |
|
| 19 |
set +e |
| 20 |
for test in ${OTHER_TESTS}; do |
| 21 |
echo "running $test ..." |
| 22 |
./$test |
| 23 |
echo "... completed $test\n\n" |
| 24 |
done |