run-all.sh 394 Bytes
Newer Older
1
#!/bin/bash
2 3 4

cd `dirname "${BASH_SOURCE[0]}"`

5
failures=0
6 7 8 9 10 11
for script in `ls */run.sh`; do
    suite=`dirname $script`
    echo "--------------------"
    echo "SUITE: $suite"
    echo "--------------------"
    (cd $suite; ./run.sh)
12 13 14
    if [ $? -ne 0 ]; then
        failures=`expr $failures + 1`
    fi
15
done
16 17 18 19
if [ $failures -ne 0 ]; then
    echo "$failures test suite(s) failed"
    exit 1
fi