Restrict jacoco coverage for core-oj to java.sql.
This allows us to turn on coverage for the library without creating
cycles that brick the device. We'll add more classes and packages over
time, enabling for java.sql works as a proof-of-concept.
Bug: 64836607
Test: `cts-tradefed run cts-dev -m CtsLibcoreTestCases --test-arg com.android.compatibility.testtype.LibcoreTest:coverage:true` on a build with EMMA_INSTRUMENT=true and EMMA_INSTRUMENT_FRAMEWORK=true
Change-Id: I1d38b70db14aa607e1e61d5336e28db4b3a3a075
diff --git a/JavaLibrary.bp b/JavaLibrary.bp
index 75c0c90..1da8b6d 100644
--- a/JavaLibrary.bp
+++ b/JavaLibrary.bp
@@ -102,6 +102,11 @@
openjdk9: {
javacflags: ["--patch-module=java.base=."],
},
+ jacoco: {
+ include_filter: [
+ "java.sql.*",
+ ],
+ },
notice: "ojluni/NOTICE",