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

[TD-12390](query)distribute testcases

上级 043dd53a
...@@ -406,7 +406,7 @@ pipeline { ...@@ -406,7 +406,7 @@ pipeline {
sh """ sh """
date date
cd ${WKC}/tests cd ${WKC}/tests
./test-CI.sh ${it} p1 ./test-CI.sh ${it} 5 1
date""" date"""
} }
} }
...@@ -423,7 +423,7 @@ pipeline { ...@@ -423,7 +423,7 @@ pipeline {
sh """ sh """
date date
cd ${WKC}/tests cd ${WKC}/tests
./test-CI.sh ${it} p2 ./test-CI.sh ${it} 5 2
date""" date"""
} }
} }
...@@ -440,7 +440,7 @@ pipeline { ...@@ -440,7 +440,7 @@ pipeline {
sh """ sh """
date date
cd ${WKC}/tests cd ${WKC}/tests
./test-CI.sh ${it} p3 ./test-CI.sh ${it} 5 3
date""" date"""
} }
} }
...@@ -457,7 +457,7 @@ pipeline { ...@@ -457,7 +457,7 @@ pipeline {
sh """ sh """
date date
cd ${WKC}/tests cd ${WKC}/tests
./test-CI.sh ${it} p4 ./test-CI.sh ${it} 5 4
date""" date"""
} }
} }
...@@ -475,7 +475,7 @@ pipeline { ...@@ -475,7 +475,7 @@ pipeline {
sh """ sh """
date date
cd ${WKC}/tests cd ${WKC}/tests
./test-CI.sh ${it} p5 ./test-CI.sh ${it} 5 5
date""" date"""
} }
} }
......
...@@ -83,10 +83,9 @@ function runPyCaseOneByOne { ...@@ -83,10 +83,9 @@ function runPyCaseOneByOne {
} }
function runPyCaseOneByOnefq() { function runPyCaseOneByOnefq() {
start=`sed -n "/$2-start/=" $1` end=`sed -n '$=' $1`
end=`sed -n "/$2-end/=" $1` for ((i=1;i<=$end;i++)) ; do
if [[ $(($i%$2)) -eq $4 ]];then
for ((i=$start;i<=$end;i++)) ; do
line=`sed -n "$i"p $1` line=`sed -n "$i"p $1`
if [[ $line =~ ^python.* ]]; then if [[ $line =~ ^python.* ]]; then
if [[ $line != *sleep* ]]; then if [[ $line != *sleep* ]]; then
...@@ -123,6 +122,7 @@ function runPyCaseOneByOnefq() { ...@@ -123,6 +122,7 @@ function runPyCaseOneByOnefq() {
fi fi
dohavecore $3 2 dohavecore $3 2
fi fi
fi
done done
rm -rf ../../sim/case.log rm -rf ../../sim/case.log
} }
...@@ -198,10 +198,15 @@ if [ "$1" == "full" ]; then ...@@ -198,10 +198,15 @@ if [ "$1" == "full" ]; then
else else
echo "### run $1 $2 test ###" echo "### run $1 $2 test ###"
if [ "$1" != "query" ] && [ "$1" != "other" ] && [ "$1" != "tools" ] && [ "$1" != "insert" ] && [ "$1" != "connector" ] ;then if [ "$1" != "query" ] && [ "$1" != "other" ] && [ "$1" != "tools" ] && [ "$1" != "insert" ] && [ "$1" != "connector" ] ;then
echo " wrong option:$1 must one of [queyr,other,tools,insert,connector]" echo " wrong option:$1 must one of [query,other,tools,insert,connector]"
exit 8 exit 8
fi fi
runPyCaseOneByOnefq fulltest-$1.sh $2 1 cd $tests_dir/pytest
runPyCaseOneByOnefq fulltest-$1.sh $2 1 $3
cd $tests_dir/develop-test
runPyCaseOneByOnefq fulltest-$1.sh $2 1 $3
cd $tests_dir/system-test
runPyCaseOneByOnefq fulltest-$1.sh $2 1 $3
fi fi
totalPySuccess=`grep 'success' pytest-out.log | wc -l` totalPySuccess=`grep 'success' pytest-out.log | wc -l`
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册