Merge pull request #5682 from taosdata/test/jenkins
[TD-3569]<test>add taosd mem leak test into CI
This commit is contained in:
commit
ec74d6c0a8
|
@ -185,14 +185,12 @@ pipeline {
|
||||||
rm -rf /var/log/taos/*
|
rm -rf /var/log/taos/*
|
||||||
./handle_crash_gen_val_log.sh
|
./handle_crash_gen_val_log.sh
|
||||||
'''
|
'''
|
||||||
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
sh '''
|
||||||
sh '''
|
cd ${WKC}/tests/pytest
|
||||||
cd ${WKC}/tests/pytest
|
rm -rf /var/lib/taos/*
|
||||||
rm -rf /var/lib/taos/*
|
rm -rf /var/log/taos/*
|
||||||
rm -rf /var/log/taos/*
|
./handle_taosd_val_log.sh
|
||||||
./handle_taosd_val_log.sh
|
'''
|
||||||
'''
|
|
||||||
}
|
|
||||||
timeout(time: 45, unit: 'MINUTES'){
|
timeout(time: 45, unit: 'MINUTES'){
|
||||||
sh '''
|
sh '''
|
||||||
date
|
date
|
||||||
|
|
|
@ -21,7 +21,7 @@ rm -rf /var/lib/taos/*
|
||||||
nohup valgrind --leak-check=yes $TAOSD_DIR > $TDIR/$VALGRIND_OUT 2> $TDIR/$VALGRIND_ERR &
|
nohup valgrind --leak-check=yes $TAOSD_DIR > $TDIR/$VALGRIND_OUT 2> $TDIR/$VALGRIND_ERR &
|
||||||
sleep 20
|
sleep 20
|
||||||
cd -
|
cd -
|
||||||
./crash_gen.sh -p -t 10 -s 200
|
./crash_gen.sh -p -t 10 -s 1000
|
||||||
ps -ef |grep valgrind|grep -v grep|awk '{print $2}'|xargs kill -term
|
ps -ef |grep valgrind|grep -v grep|awk '{print $2}'|xargs kill -term
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
|
|
Loading…
Reference in New Issue