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