Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions test/coverage/gen_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,16 @@ else
COVERAGE_TARGETS=//test/...
fi

for target in ${COVERAGE_TARGETS}; do
TARGETS="$TARGETS $("${BAZEL_BIN}" query ${BAZEL_QUERY_OPTIONS} "attr('tags', 'coverage_test_lib', ${REPOSITORY}${target})" | grep "^//")"
done
# This setting allows consuming projects to only run coverage over private extensions.
if [[ -z "${ONLY_EXTRA_QUERY_PATHS}" ]]; then
for target in ${COVERAGE_TARGETS}; do
TARGETS="$TARGETS $("${BAZEL_BIN}" query ${BAZEL_QUERY_OPTIONS} "attr('tags', 'coverage_test_lib', ${REPOSITORY}${target})" | grep "^//")"
done

# Run the QUICHE platform api tests for coverage.
if [[ "${COVERAGE_TARGETS}" == "//test/..." ]]; then
TARGETS="$TARGETS $("${BAZEL_BIN}" query ${BAZEL_QUERY_OPTIONS} "attr('tags', 'coverage_test_lib', '@com_googlesource_quiche//:all')" | grep "^@com_googlesource_quiche")"
# Run the QUICHE platform api tests for coverage.
if [[ "${COVERAGE_TARGETS}" == "//test/..." ]]; then
TARGETS="$TARGETS $("${BAZEL_BIN}" query ${BAZEL_QUERY_OPTIONS} "attr('tags', 'coverage_test_lib', '@com_googlesource_quiche//:all')" | grep "^@com_googlesource_quiche")"
fi
fi

if [ -n "${EXTRA_QUERY_PATHS}" ]; then
Expand Down