File: meschach-tests

package info (click to toggle)
meschach 1.2b-19
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,212 kB
  • sloc: ansic: 21,961; makefile: 482; sh: 17
file content (24 lines) | stat: -rwxr-xr-x 535 bytes parent folder | download | duplicates (3)
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