exit 255
fi
+if [[ -z "${GCOV_PATH}" ]]; then
+ GCOV_PATH=$(command -v gcov)
+ if [[ -z "${GCOV_PATH}" ]]; then
+ echo "ERROR: 'gcov' is not found"
+ exit 255
+ fi
+fi
+
OUTPUT_TAG="${NNAS_COVERAGE:-coverage}"
OUTPUT_PATH="${NNAS_COVERAGE_PATH:-${NNAS_PROJECT_PATH}/${OUTPUT_TAG}}"
done
# Capture initial zero coverage data
-"${LCOV_PATH}" -c -i -d "${BUILD_WORKSPACE_PATH}" -o "${RAW_BASE_COVERAGE_INFO_PATH}"
+"${LCOV_PATH}" -c -i -d "${BUILD_WORKSPACE_PATH}" --gcov-tool ${GCOV_PATH} -o "${RAW_BASE_COVERAGE_INFO_PATH}"
# Capture tests coverage data
-"${LCOV_PATH}" -c -d "${BUILD_WORKSPACE_PATH}" -o "${RAW_TEST_COVERAGE_INFO_PATH}"
+"${LCOV_PATH}" -c -d "${BUILD_WORKSPACE_PATH}" --gcov-tool ${GCOV_PATH} -o "${RAW_TEST_COVERAGE_INFO_PATH}"
# Append zero coverage data and tests coverage data
"${LCOV_PATH}" -o "${RAW_COVERAGE_INFO_PATH}" \