This commit is contained in:
liuyq-617 2021-05-06 16:44:47 +08:00
parent 302cb46953
commit 0056a7f39e
2 changed files with 15 additions and 6 deletions

View File

@ -7,6 +7,19 @@ platform:
arch: amd64
steps:
- name: build
image: gcc
commands:
- apt-get update
- apt-get install -y cmake build-essential
- mkdir debug
- cd debug
- cmake ..
- make
when:
branch:
- develop
- master
- name: smoke_test
image: python:3.8
@ -16,11 +29,7 @@ steps:
- pip3 install psutil
- pip3 install guppy3
- pip3 install src/connector/python/linux/python3/
- mkdir debug
- cd debug
- cmake ..
- make
- cd ../tests
- cd tests
- ./test-all.sh smoke
when:
branch:

View File

@ -66,7 +66,7 @@ function runSimCaseOneByOne {
echo -e "${RED} failed${NC}" | tee -a out.log
else
echo -n $case
./test.sh -f $case && \
./test.sh -f $case > /dev/null 2>&1 && \
( grep -q 'script.*'$case'.*failed.*, err.*lineNum' ../../sim/tsim/log/taoslog0.0 && echo -e "${RED} failed${NC}" | tee -a out.log || echo -e "${GREEN} success${NC}" | tee -a out.log )|| \
( grep -q 'script.*success.*m$' ../../sim/tsim/log/taoslog0.0 && echo -e "${GREEN} success${NC}" | tee -a out.log ) || \
echo -e "${RED} failed${NC}" | tee -a out.log