diff --git a/.travis.yml b/.travis.yml index 5cff3bc72b612a62e50048a76453d3b6ac6c4dce..63c62d1a8a9d0b2de53da02fa17520650049b6ab 100644 --- a/.travis.yml +++ b/.travis.yml @@ -51,14 +51,19 @@ script: case $TRAVIS_OS_NAME in linux) cd ../tests/script - sudo ./test.sh 2>&1 | tee out.txt - cat out.txt - grep success out.txt + sudo ./test.sh 2>&1 | grep 'success\|failed' | tee out.txt + total_success=`grep success out.txt | wc -l` + + if [ "$total_success" -gt "0" ]; then + total_success=`expr $total_success - 1` + fi + echo "Total $total_success success" - grep failed out.txt + total_failed=`grep failed out.txt | wc -l` echo "Total $total_failed failed" + if [ "$total_failed" -ne "0" ]; then exit $total_failed fi diff --git a/tests/script/basicSuite.sim b/tests/script/basicSuite.sim index 290472b15d33d2bc7422a13480e7e11016d235b6..440ec5592b41a56eb47e31f7a167ece65cb893af 100644 --- a/tests/script/basicSuite.sim +++ b/tests/script/basicSuite.sim @@ -1,8 +1,13 @@ ################################# - run general/table/basic1.sim run general/table/basic2.sim run general/table/basic3.sim +run general/db/basic1.sim +run general/db/basic2.sim +run general/db/basic3.sim +run general/db/basic4.sim +run general/db/basic5.sim + ##################################