Loading ravenwood/tests/coretest/Android.bp +17 −0 Original line number Diff line number Diff line Loading @@ -29,6 +29,23 @@ java_defaults { "test/**/*.kt", ], data: ["data/**/*"], test_options: { // This is injected outside of the <test> element. tradefed_options: [ { name: "java-flags", value: "-Dxxx-extra-tradefed-option=value1", }, ], // This is injected inside the <test> element. test_runner_options: [ { name: "java-flags", value: "-Dxxx-extra-runner-option=value2", }, ], }, ravenizer: { strip_mockito: true, }, Loading ravenwood/tests/coretest/test/com/android/ravenwoodtest/coretest/RavenwoodCoreBasicTest.java +7 −0 Original line number Diff line number Diff line Loading @@ -39,4 +39,11 @@ public class RavenwoodCoreBasicTest { assertEquals("datafile2", readFile("data/datafile2.txt")); assertEquals("morefile", readFile("data/subdir/morefile.txt")); } @Test public void testTestConfig() throws Exception { // These properties are injected via the Android.bp, using the -D java option. assertEquals("value1", System.getProperty("xxx-extra-tradefed-option")); assertEquals("value2", System.getProperty("xxx-extra-runner-option")); } } Loading
ravenwood/tests/coretest/Android.bp +17 −0 Original line number Diff line number Diff line Loading @@ -29,6 +29,23 @@ java_defaults { "test/**/*.kt", ], data: ["data/**/*"], test_options: { // This is injected outside of the <test> element. tradefed_options: [ { name: "java-flags", value: "-Dxxx-extra-tradefed-option=value1", }, ], // This is injected inside the <test> element. test_runner_options: [ { name: "java-flags", value: "-Dxxx-extra-runner-option=value2", }, ], }, ravenizer: { strip_mockito: true, }, Loading
ravenwood/tests/coretest/test/com/android/ravenwoodtest/coretest/RavenwoodCoreBasicTest.java +7 −0 Original line number Diff line number Diff line Loading @@ -39,4 +39,11 @@ public class RavenwoodCoreBasicTest { assertEquals("datafile2", readFile("data/datafile2.txt")); assertEquals("morefile", readFile("data/subdir/morefile.txt")); } @Test public void testTestConfig() throws Exception { // These properties are injected via the Android.bp, using the -D java option. assertEquals("value1", System.getProperty("xxx-extra-tradefed-option")); assertEquals("value2", System.getProperty("xxx-extra-runner-option")); } }