mirror of https://github.com/zachjs/sv2v.git
20 lines
394 B
Bash
Executable File
20 lines
394 B
Bash
Executable File
#!/bin/bash
|
|
|
|
cd `dirname "${BASH_SOURCE[0]}"`
|
|
|
|
failures=0
|
|
for script in `ls */run.sh`; do
|
|
suite=`dirname $script`
|
|
echo "--------------------"
|
|
echo "SUITE: $suite"
|
|
echo "--------------------"
|
|
(cd $suite; ./run.sh)
|
|
if [ $? -ne 0 ]; then
|
|
failures=`expr $failures + 1`
|
|
fi
|
|
done
|
|
if [ $failures -ne 0 ]; then
|
|
echo "$failures test suite(s) failed"
|
|
exit 1
|
|
fi
|