Merge pull request #2215 from taosdata/feature/sangshuduo/add-regression-test-suite
make test-all.sh flexible to manually execute.
This commit is contained in:
commit
ee7049261d
|
@ -24,11 +24,17 @@ GREEN_DARK='\033[0;32m'
|
||||||
GREEN_UNDERLINE='\033[4;32m'
|
GREEN_UNDERLINE='\033[4;32m'
|
||||||
NC='\033[0m'
|
NC='\033[0m'
|
||||||
|
|
||||||
|
totalFailed=0
|
||||||
|
totalPyFailed=0
|
||||||
|
|
||||||
|
|
||||||
|
current_dir=`pwd`
|
||||||
|
|
||||||
|
if [ "$2" != "python" ]; then
|
||||||
echo "### run TSIM test case ###"
|
echo "### run TSIM test case ###"
|
||||||
cd script
|
cd $current_dir/script
|
||||||
|
|
||||||
[ -f out.log ] && rm -f out.log
|
[ -f out.log ] && rm -f out.log
|
||||||
|
|
||||||
if [ "$1" == "cron" ]; then
|
if [ "$1" == "cron" ]; then
|
||||||
echo "### run TSIM regression test ###"
|
echo "### run TSIM regression test ###"
|
||||||
runSimCaseOneByOne regressionSuite.sim
|
runSimCaseOneByOne regressionSuite.sim
|
||||||
|
@ -57,9 +63,11 @@ if [ "$totalFailed" -ne "0" ]; then
|
||||||
|
|
||||||
# exit $totalFailed
|
# exit $totalFailed
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$2" != "sim" ]; then
|
||||||
echo "### run Python test case ###"
|
echo "### run Python test case ###"
|
||||||
cd ../pytest
|
cd $current_dir/pytest
|
||||||
|
|
||||||
[ -f pytest-out.log ] && rm -f pytest-out.log
|
[ -f pytest-out.log ] && rm -f pytest-out.log
|
||||||
|
|
||||||
|
@ -84,5 +92,6 @@ if [ "$totalPyFailed" -ne "0" ]; then
|
||||||
echo -e "${RED} ### Total $totalPyFailed python case(s) failed! ### ${NC}"
|
echo -e "${RED} ### Total $totalPyFailed python case(s) failed! ### ${NC}"
|
||||||
# exit $totalPyFailed
|
# exit $totalPyFailed
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
exit $(($totalFailed + $totalPyFailed))
|
exit $(($totalFailed + $totalPyFailed))
|
||||||
|
|
Loading…
Reference in New Issue