g3log/scripts/runAllTests.sh
Kjell Hedström cb4a94da7d
Cloud CI: updated for travis OSX + Ubuntu. Simplified setup (#301)
* updated for travis OSX + Ubuntu. Simplified setup

* more robust script for test
2019-02-18 21:01:30 -07:00

17 lines
321 B
Bash
Executable File

#!/bin/bash
set -v
# test_execs=`find ./test_* -perm /u=x`
test_execs=`find ./test_* -perm -u+x -type f`
echo "Tests to run: $test_execs"
while read -r testsuite; do
./"$testsuite"
if [ "$?" -ne 0 ]; then
echo "Aborting. \"$testsuite\" had failing test(s)"
exit 1
fi
done <<< "$test_execs"