test
This commit is contained in:
parent
302cb46953
commit
0056a7f39e
19
.drone.yml
19
.drone.yml
|
@ -7,6 +7,19 @@ platform:
|
||||||
arch: amd64
|
arch: amd64
|
||||||
|
|
||||||
steps:
|
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
|
- name: smoke_test
|
||||||
image: python:3.8
|
image: python:3.8
|
||||||
|
@ -16,11 +29,7 @@ steps:
|
||||||
- pip3 install psutil
|
- pip3 install psutil
|
||||||
- pip3 install guppy3
|
- pip3 install guppy3
|
||||||
- pip3 install src/connector/python/linux/python3/
|
- pip3 install src/connector/python/linux/python3/
|
||||||
- mkdir debug
|
- cd tests
|
||||||
- cd debug
|
|
||||||
- cmake ..
|
|
||||||
- make
|
|
||||||
- cd ../tests
|
|
||||||
- ./test-all.sh smoke
|
- ./test-all.sh smoke
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
|
|
|
@ -66,7 +66,7 @@ function runSimCaseOneByOne {
|
||||||
echo -e "${RED} failed${NC}" | tee -a out.log
|
echo -e "${RED} failed${NC}" | tee -a out.log
|
||||||
else
|
else
|
||||||
echo -n $case
|
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.*'$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 ) || \
|
( 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
|
echo -e "${RED} failed${NC}" | tee -a out.log
|
||||||
|
|
Loading…
Reference in New Issue