From 6b3b56005889c88cf113259dd596370993b3466f Mon Sep 17 00:00:00 2001 From: chenhaoran Date: Tue, 25 Oct 2022 19:20:58 +0800 Subject: [PATCH] test:add unit tests after building taosd --- Jenkinsfile2 | 5 +++-- tests/parallel_test/container_build.sh | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile2 b/Jenkinsfile2 index ac152e2aa4..33a4b3cce5 100644 --- a/Jenkinsfile2 +++ b/Jenkinsfile2 @@ -174,7 +174,8 @@ def pre_test_build_mac() { sh ''' cd ${WK}/debug cmake .. -DBUILD_TEST=true - make -j8 + ctest -j10 + make -j10 ''' sh ''' date @@ -428,7 +429,7 @@ pipeline { date rm -rf ${WKC}/debug cd ${WKC}/tests/parallel_test - time ./container_build.sh -w ${WKDIR} -t 8 -e + time ./container_build.sh -w ${WKDIR} -t 10 -e rm -f /tmp/cases.task ./collect_cases.sh -e ''' diff --git a/tests/parallel_test/container_build.sh b/tests/parallel_test/container_build.sh index deaea4fa40..c5866638c4 100755 --- a/tests/parallel_test/container_build.sh +++ b/tests/parallel_test/container_build.sh @@ -52,7 +52,7 @@ fi docker run \ -v $REP_MOUNT_PARAM \ - --rm --ulimit core=-1 taos_test:v1.0 sh -c "cd $REP_DIR;rm -rf debug;mkdir -p debug;cd debug;cmake .. -DBUILD_HTTP=false -DBUILD_TOOLS=true -DWEBSOCKET=true;make -j $THREAD_COUNT" + --rm --ulimit core=-1 taos_test:v1.0 sh -c "cd $REP_DIR;rm -rf debug;mkdir -p debug;cd debug;cmake .. -DBUILD_HTTP=false -DBUILD_TOOLS=true -DBUILD_TEST=true -DWEBSOCKET=true;ctest -j10 ;make -j $THREAD_COUNT" ret=$? exit $ret