Browse Source

!373 fix st

Merge pull request !373 from 刘康/master
pull/241/MERGE
i-robot Gitee 4 years ago
parent
commit
a62ae884e0
2 changed files with 11 additions and 1 deletions
  1. +8
    -0
      build.sh
  2. +3
    -1
      tests/st/CMakeLists.txt

+ 8
- 0
build.sh View File

@@ -205,6 +205,14 @@ if [[ "X$ENABLE_PARSER_ST" = "Xon" ]]; then
echo -e "\033[31m${RUN_TEST_CASE}\033[0m"
exit 1;
fi
echo "Generating coverage statistics, please wait..."
cd ${BASEPATH}
rm -rf ${BASEPATH}/cov
mkdir ${BASEPATH}/cov
lcov -c -d build/tests/st -o cov/tmp.info
lcov -r cov/tmp.info '*/output/*' '*/build/opensrc/*' '*/build/proto/*' '*/third_party/*' '*/tests/*' '/usr/local/*' '*/metadef/inc/*' -o cov/coverage.info
cd ${BASEPATH}/cov
genhtml coverage.info
fi

# generate output package in tar form, including ut/st libraries/executables


+ 3
- 1
tests/st/CMakeLists.txt View File

@@ -14,7 +14,7 @@
# ============================================================================

project(st_parser)
add_compile_options(-g --coverage -fprofile-arcs -fPIC -O0 -ftest-coverage)
set(CMAKE_CXX_STANDARD 11)

################################################################################
@@ -115,6 +115,8 @@ set(MATEDEF_SRC_FILES
"${PARSER_DIR}/metadef/graph/shape_refiner.cc"
"${PARSER_DIR}/metadef/graph/tensor.cc"
"${PARSER_DIR}/metadef/graph/types.cc"
"${PARSER_DIR}/metadef/graph/resource_context_mgr.cc"
"${PARSER_DIR}/metadef/graph/utils/constant_utils.cc"
"${PARSER_DIR}/metadef/graph/utils/anchor_utils.cc"
"${PARSER_DIR}/metadef/graph/utils/ge_ir_utils.cc"
"${PARSER_DIR}/metadef/graph/utils/graph_utils.cc"


Loading…
Cancel
Save