Skip to content
Snippets Groups Projects
run.sh 595 B
Newer Older
tpylak's avatar
tpylak committed

# all tests to be executed
TEST_FILE_PATTERN=./test-*.sh
EXIT_WITH_ERROR=false

function print_result {
	if [ $result -ne 0 ]; then
		echo ERROR: Test "$testFile" has failed.
		EXIT_WITH_ERROR=true
	else
		echo OK: Test "$testFile" succeeded.
for testScript in $TEST_FILE_PATTERN; do
felmer's avatar
felmer committed
  echo =================================================================
  echo ==================== Executing test $testScript 
  ./$testScript $@
  result=$?
  print_result $testScript $result
done
felmer's avatar
felmer committed

kaloyane's avatar
kaloyane committed
if [ true == "$EXIT_WITH_ERROR" ]; then
tpylak's avatar
tpylak committed