提交 0056a7f3 编写于 作者: L liuyq-617

test

上级 302cb469
...@@ -7,6 +7,19 @@ platform: ...@@ -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: ...@@ -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 { ...@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册