kleaf: Add --config=testing to enable gcov and kunit
Also simplify kunit flag.
Bug: 363991046
Change-Id: I6afd8dc098894643d08f951b0a9dbcc073ebd883
Signed-off-by: Jacky Liu <[email protected]>
diff --git a/device.bazelrc b/device.bazelrc
index 660d60f..d0baa5d 100644
--- a/device.bazelrc
+++ b/device.bazelrc
@@ -35,9 +35,14 @@
# enable download prebuilt GKI fips140.ko by default
build --config=download_gki_fips140
-# enable dependencies for KUNIT
-build:pixel_kunit --//private/devices/google/common:enable_kunit
-build:pixel_kunit --notrim
+# Testing build, enable gcov and kunit
+build:testing --notrim --gcov --//private/devices/google/common:kunit
+
+# Enable kunit only
+build:kunit --notrim --//private/devices/google/common:kunit
+
+# For compatibility, Recommand to use --config=testing or --config=kunit.
+build:pixel_kunit --config=kunit
# Placeholders for soc specific bazelrc files. Add as many as you need.
try-import %workspace%/.c1.bazelrc