make output clear and add general/db testcases.
This commit is contained in:
parent
56e1f90d4b
commit
b17e732938
13
.travis.yml
13
.travis.yml
|
@ -51,14 +51,19 @@ script:
|
||||||
case $TRAVIS_OS_NAME in
|
case $TRAVIS_OS_NAME in
|
||||||
linux)
|
linux)
|
||||||
cd ../tests/script
|
cd ../tests/script
|
||||||
sudo ./test.sh 2>&1 | tee out.txt
|
sudo ./test.sh 2>&1 | grep 'success\|failed' | tee out.txt
|
||||||
cat out.txt
|
|
||||||
grep success out.txt
|
|
||||||
total_success=`grep success out.txt | wc -l`
|
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"
|
echo "Total $total_success success"
|
||||||
grep failed out.txt
|
|
||||||
total_failed=`grep failed out.txt | wc -l`
|
total_failed=`grep failed out.txt | wc -l`
|
||||||
echo "Total $total_failed failed"
|
echo "Total $total_failed failed"
|
||||||
|
|
||||||
if [ "$total_failed" -ne "0" ]; then
|
if [ "$total_failed" -ne "0" ]; then
|
||||||
exit $total_failed
|
exit $total_failed
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,8 +1,13 @@
|
||||||
#################################
|
#################################
|
||||||
|
|
||||||
|
|
||||||
run general/table/basic1.sim
|
run general/table/basic1.sim
|
||||||
run general/table/basic2.sim
|
run general/table/basic2.sim
|
||||||
run general/table/basic3.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
|
||||||
|
|
||||||
##################################
|
##################################
|
||||||
|
|
Loading…
Reference in New Issue