提交 834754b0 编写于 作者: sangshuduo's avatar sangshuduo

merge from tip of develop branch.

...@@ -46,14 +46,12 @@ before_script: ...@@ -46,14 +46,12 @@ before_script:
script: script:
- cmake .. - cmake ..
- cmake --build . - cmake --build . || exit $?
- |- - |-
case $TRAVIS_OS_NAME in case $TRAVIS_OS_NAME in
linux) linux)
cd ../tests/script cd ../tests/script
sudo ./test.sh >& out.txt sudo ./test.sh 2>&1 | tee out.txt
sync
sleep 2
cat out.txt cat out.txt
grep success out.txt grep success out.txt
total_success=`grep success out.txt | wc -l` total_success=`grep success out.txt | wc -l`
...@@ -61,6 +59,9 @@ script: ...@@ -61,6 +59,9 @@ script:
grep failed out.txt 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
exit $total_failed
fi
;; ;;
esac esac
......
################################# #################################
#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
################################## ##################################
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册