add SANITIZER parameter

This commit is contained in:
liuyq-617 2021-07-28 16:10:06 +08:00
parent e4a67f8046
commit aac0aeddfd
2 changed files with 56 additions and 2 deletions

29
tests/Jenkinsfile vendored
View File

@ -1,5 +1,32 @@
def pre_test(){ def pre_test(){
sh '''
sudo rmtaos||echo 'no taosd installed'
'''
sh '''
cd ${WKC}
git reset --hard
git checkout $BRANCH_NAME
git pull
git submodule update
cd ${WK}
git reset --hard
git checkout $BRANCH_NAME
git pull
export TZ=Asia/Harbin
date
rm -rf ${WK}/debug
mkdir debug
cd debug
cmake -DMEMORY_SANITIZER=true .. > /dev/null
make > /dev/null
make install > /dev/null
pip3 install ${WKC}/src/connector/python
'''
return 1
}
def pre_test_p(){
sh ''' sh '''
sudo rmtaos||echo 'no taosd installed' sudo rmtaos||echo 'no taosd installed'
''' '''
@ -39,7 +66,7 @@ pipeline {
stage('pytest') { stage('pytest') {
agent{label 'slad1'} agent{label 'slad1'}
steps { steps {
pre_test() pre_test_p()
sh ''' sh '''
cd ${WKC}/tests cd ${WKC}/tests
find pytest -name '*'sql|xargs rm -rf find pytest -name '*'sql|xargs rm -rf

29
tests/mas/Jenkinsfile vendored
View File

@ -1,5 +1,32 @@
def pre_test(){ def pre_test(){
sh '''
sudo rmtaos||echo 'no taosd installed'
'''
sh '''
cd ${WKC}
git reset --hard
git checkout $BRANCH_NAME
git pull
git submodule update
cd ${WK}
git reset --hard
git checkout $BRANCH_NAME
git pull
export TZ=Asia/Harbin
date
rm -rf ${WK}/debug
mkdir debug
cd debug
cmake -DMEMORY_SANITIZER=true .. > /dev/null
make > /dev/null
make install > /dev/null
pip3 install ${WKC}/src/connector/python/ || echo 0
'''
return 1
}
def pre_test_p(){
sh ''' sh '''
sudo rmtaos||echo 'no taosd installed' sudo rmtaos||echo 'no taosd installed'
''' '''
@ -39,7 +66,7 @@ pipeline {
stage('pytest') { stage('pytest') {
agent{label 'slam1'} agent{label 'slam1'}
steps { steps {
pre_test() pre_test_p()
sh ''' sh '''
cd ${WKC}/tests cd ${WKC}/tests
find pytest -name '*'sql|xargs rm -rf find pytest -name '*'sql|xargs rm -rf