Skip to content

Commit

Permalink
[Fix](bangc-ops): fix coverage test failed (Cambricon#347)
Browse files Browse the repository at this point in the history
Co-authored-by: niejianglong <[email protected]>
  • Loading branch information
mahxn0 and niejianglong authored Dec 28, 2022
1 parent 7ab1776 commit 6de93e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions bangc-ops/test/mlu_op_gtest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ set(targets_mluop_gtest mluop_gtest)
message(STATUS "EXTRA_LIBS: ${EXTRA_LIBS}")
foreach(target_gtest ${targets_mluop_gtest})
target_link_libraries(${target_gtest} mluop_gtest_kernels)
target_link_libraries(${target_gtest} -Wl,--no-as-needed cnbin -Wl,--as-needed)
target_link_libraries(${target_gtest} cnrt cndev cndrv pthread gtest_shared stdc++ m dl)
target_link_libraries(${target_gtest} ${LIBXML2_LIBRARIES} ${PROTOBUF_LIBRARIES} ${EXTRA_LIBS})
target_link_libraries(${target_gtest} mluop_test_proto)
Expand Down
6 changes: 3 additions & 3 deletions tools/coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function main () {
echo " NEUWARE_HOME: "${NEUWARE_HOME}
export PATH="${NEUWARE_HOME}/bin":$PATH
export LD_LIBRARY_PATH="${NEUWARE_HOME}/lib64":$LD_LIBRARY_PATH
export MLUOPS_GTEST_FILL_RAM=OFF
export MLUOP_GTEST_FILL_RAM=OFF
else
printf "${RED} ERROR: please export NEUWARE_HOME variable first!\n${NC}"
exit 1
Expand All @@ -137,12 +137,12 @@ function main () {
echo "--Coverage test failed, please install genhtml"
exit 0
fi

if [[ "$(which html2text)" == "" ]]; then
echo "--Coverage test failed, please install html2text."
exit 0
fi

parse_args "$@"
export MLU_VISIBLE_DEVICES=${DEVICE_ID}
process
Expand Down

0 comments on commit 6de93e8

Please sign in to comment.