提交 169eb46a 编写于 作者: L lifeng68

CI: enable lcr ut test

Signed-off-by: Nlifeng68 <lifeng68@huawei.com>
上级 beab9b2f
......@@ -107,7 +107,7 @@ git checkout origin/implement_image
sed -i 's/fd == STDIN_FILENO || fd == STDOUT_FILENO || fd == STDERR_FILENO/fd == 0 || fd == 1 || fd == 2 || fd >= 1000/g' ./src/utils.c
mkdir -p build
cd build
cmake -DLIB_INSTALL_DIR=${builddir}/lib -DCMAKE_INSTALL_PREFIX=${builddir} ../
cmake -DENABLE_UT=ON -DLIB_INSTALL_DIR=${builddir}/lib -DCMAKE_INSTALL_PREFIX=${builddir} ../
make -j $(nproc)
make install
cd -
......
......@@ -85,11 +85,10 @@ if [[ "x${GCOV}" == "xON" ]]; then
else
cmake -DCMAKE_BUILD_TYPE=Debug -DENABLE_UT=ON ..
make -j $(nproc)
ctest
ctest -T memcheck --output-on-failure
if [[ $? -ne 0 ]]; then
exit 1
fi
ctest -D ExperimentalCoverage
fi
echo_success "===================RUN DT-LLT TESTCASES END========================="
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册