Permalink
Browse files

Refactor ${LCOV_PATH}/lcov

  • Loading branch information...
jonreid committed Jan 8, 2013
1 parent 4630941 commit 5fbdfe0163dd8279a7c4542fb0bab6ce6b6c7afc
Showing with 5 additions and 4 deletions.
  1. +1 −1 cleancov
  2. +1 −0 envcov.sh
  3. +3 −3 getcov
View
@@ -7,4 +7,4 @@
source envcov.sh
-"${LCOV_PATH}/lcov" --zerocounters -d "${OBJ_DIR}"
+"${LCOV}" --zerocounters -d "${OBJ_DIR}"
View
@@ -10,4 +10,5 @@ source env.sh
LCOV_INFO=Coverage.info
LCOV_PATH=${SRCROOT}/XcodeCoverage/lcov-1.10/bin
+LCOV=${LCOV_PATH}/lcov
OBJ_DIR=${OBJECT_FILE_DIR_normal}/${CURRENT_ARCH}
View
6 getcov
@@ -25,13 +25,13 @@ enter_lcov_dir()
gather_coverage()
{
- "${LCOV_PATH}/lcov" --capture -b "${SRCROOT}" -d "${OBJ_DIR}" -o ${LCOV_INFO}
+ "${LCOV}" --capture -b "${SRCROOT}" -d "${OBJ_DIR}" -o ${LCOV_INFO}
}
exclude_data()
{
- "${LCOV_PATH}/lcov" --remove ${LCOV_INFO} "/Applications/Xcode.app/*" -d "${OBJ_DIR}" -o ${LCOV_INFO}
- "${LCOV_PATH}/lcov" --remove ${LCOV_INFO} "main.m" -d "${OBJ_DIR}" -o ${LCOV_INFO}
+ "${LCOV}" --remove ${LCOV_INFO} "/Applications/Xcode.app/*" -d "${OBJ_DIR}" -o ${LCOV_INFO}
+ "${LCOV}" --remove ${LCOV_INFO} "main.m" -d "${OBJ_DIR}" -o ${LCOV_INFO}
# Remove other patterns here...
}

0 comments on commit 5fbdfe0

Please sign in to comment.