From 2b58a3f922d5959c7e04ab156eb5644d716bf26c Mon Sep 17 00:00:00 2001 From: Noah Thornton Date: Mon, 5 Oct 2026 12:56:18 -0700 Subject: [PATCH] Fix coverage generation target --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e8c353c86..63384e96e 100644 --- a/Makefile +++ b/Makefile @@ -209,7 +209,8 @@ install-kernel: COV_DATA_DIR = $(shell $(SWIFT) test --show-coverage-path | xargs dirname) COV_REPORT_FILE = $(ROOT_DIR)/code-coverage-report COVERAGE_OUTPUT_DIR := $(ROOT_DIR)/coverage-reports -TEST_BINARY = $(BUILD_BIN_DIR)/containerPackageTests.xctest/Contents/MacOS/containerPackageTests +# One bundle per test target, e.g. ContainerOSTests.xctest/Contents/MacOS/ContainerOSTests. +TEST_BINARY = $(foreach b,$(wildcard $(BUILD_BIN_DIR)/*.xctest),-object $(b)/Contents/MacOS/$(basename $(notdir $(b)))) # All product binaries that may be instrumented for coverage. # Used as additional -object args to llvm-cov for integration/combined reports. COV_BINARIES := \