#!/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
make alltorture

echo "running torture ..."
./torture 2>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
