summaryrefslogtreecommitdiff
path: root/java/testing.go
AgeCommit message (Collapse)Author
2019-04-18Build framework.aidl in Soong Colin Cross
Move the rules to build framework.aidl into Soong, and use it when compiling aidl files with sdk_version: "current". Also fixes incorrectly using the aidl includes exported by the "framework" module when the proguardRaiseDep dependency was added. Bug: 130798034 Test: sdk_test.go Change-Id: I126adf1d9e7b6acb528875ff62b974ba7ad9a337
2019-04-03Merge "Fix sdk_version: "system_current" when Platform_sdk_final=true" am: ↵ Colin Cross
b007b2bde5 am: 8c3f398c6c am: 209edee425 Change-Id: I54ea846c9ac2b29354109755225db71dcdaa1527
2019-04-02Fix sdk_version: "system_current" when Platform_sdk_final=true Colin Cross
When PLATFORM_VERSION_CODENAME is set to REL Platform_sdk_final becomes true, which causes the return value of sdkVersionToNumber for "system_current" to a real version number instead of FutureApiLevel. This enables the check against PlatformSystemSdkVersions, which doesn't contain "current". Use the numeric value instead. Fixes: 129786845 Test: sdk_test.go Change-Id: If7cf211cc01c5fbf3e3ece3c3f604718a13d5a9b
2019-03-04Move some java test setup later am: c28bb0b8f9 am: 7e2b9c48ca Colin Cross
am: 7cb6f9e601 Change-Id: Ib0924d35bc9cd844a071e5f8729f5e2f7b8b6745
2019-03-05Move some java test setup later Colin Cross
Move ctx.Register() from testContext() to run() so that tests can register more singletons before the env singleton is registered. Any singletons registered after the env singleton will hit an error if they attempt to read an environment variable. Move setDexpreoptTestGlobalConfig from TestConfig to run() so that a test can set their own custom config after TestConfig but before run(). Test: All Soong tests Change-Id: Iec47f4b7898736f583cbd6bd53e4d02a035f4fb2
2019-02-22Refactor dexpreopt_bootjars.go to prepare for multiple boot images am: ↵ Colin Cross
44df581457 am: ac405aa805 am: d3a73010f9 Change-Id: I53abda3e3b15969402580825480f76bc18a9d9de
2019-02-22Make RuleBuilder methods take Paths am: 69f59a3327 am: fafab5c1ec Colin Cross
am: d123cd7459 Change-Id: I5277142b7486c80c1c93d2ecd9a90b387d93c4a9
2019-02-20Refactor dexpreopt_bootjars.go to prepare for multiple boot images Colin Cross
Refactor dexpreopt_bootjars.go so that buildBootImage can be called with a bootImageConfig to create rules to build the boot image in preparation for building multiple boot images. Test: m checkbuild Change-Id: I7ba40a0988c8acbd6c1ee4e36f4bbb34fb4e2d24
2019-02-20Make RuleBuilder methods take Paths Colin Cross
There are no more Make paths being used in Soong now that dexpreopting and hiddenapi are in Soong. Use the Path types in the inputs to RuleBuilder, and fix all users of RuleBuilder. This reapplies I886f803d9a3419a43b2cae412537645f94c5dfbf with fixes to disable preopt for Soong-only builds when the global dexpreopt.config doesn't exist. Test: all soong tests Test: m checkbuild Change-Id: I4dae9ecd5de22f062f9478ec8f0747f099cf8190
2019-02-20Merge "Revert "Make RuleBuilder methods take Paths"" am: 501d7e594a am: ↵ Colin Cross
dc68f8826c am: ec60a92074 Change-Id: I4519fd0157c6f1287135879ad42a2d1ffaf59515
2019-02-21Revert "Make RuleBuilder methods take Paths" Colin Cross
This reverts commit acdd6940719125104dfd2f692990c99682f95f05. Reason for revert: broke ndk build Change-Id: I5655e48c15eb8f5f0267afdd853fbc25765b8623
2019-02-20Merge "Make RuleBuilder methods take Paths" am: 4bb6764de9 am: 4ebb84d392 Colin Cross
am: fc2da332e9 Change-Id: Ic6563627f7853d9850e996d4579ac671d47d2c7b
2019-02-20Make RuleBuilder methods take Paths Colin Cross
There are no more Make paths being used in Soong now that dexpreopting and hiddenapi are in Soong. Use the Path types in the inputs to RuleBuilder, and fix all users of RuleBuilder. Test: all soong tests Test: m checkbuild Change-Id: I886f803d9a3419a43b2cae412537645f94c5dfbf
2019-02-16Add java/testing.go for sysprop_test.go Colin Cross
Share more of the setup code for java tests to sysprop_tests.go. Test: java_test.go, sysprop_test.go Change-Id: I0e3b287bf188c432d995a9a91a18ebef12aa47d1 Merged-In: I0e3b287bf188c432d995a9a91a18ebef12aa47d1 (cherry picked from commit b19745363f3cc59ffd46c664997602f250892d4d)
2019-02-15Add java/testing.go for sysprop_test.go Colin Cross
Share more of the setup code for java tests to sysprop_tests.go. Test: java_test.go, sysprop_test.go Change-Id: I0e3b287bf188c432d995a9a91a18ebef12aa47d1