aboutsummaryrefslogtreecommitdiffstats
path: root/java/testing.go
Commit message (Collapse)AuthorAgeFilesLines
* soong: Squash of lineage-sdk bringup commitsRashed Abdel-Tawab2019-12-111-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Squash of: Author: Rashed Abdel-Tawab <rashed@linux.com> Date: Thu Aug 9 14:08:53 2018 -0700 soong: Special case Lineage SDK * org.lineageos.platform-res.apk needs to be installed to /system/framework * org.lineageos.platform-res needs to be a dependency for org.lineageos.platform and org.lineageos.platform.internal * Add other special exceptions for org.lineageos.platform-res Change-Id: Ic617c07c086916005ea4b88f26d31c61691a45f8 Author: Sam Mortimer <sam@mortimer.me.uk> Date: Thu Aug 30 15:33:16 2018 -0700 soong: make org.lineage.platform-res depend on framework-res *) Allows us to build org.lineage.platform-res with no_framework_libs true (as is done for framework-res). *) Whilst we're here, undo a dependency loop prevention in aar.go that we added during sdk bringup to allow our platform res to build with no_framework_libs false. Change-Id: Ib452a2e45112baf5d61b70b4be1ce0c01dfd84e5 Author: Luca Stefani <luca.stefani.ge1@gmail.com> Date: Mon Feb 4 18:56:52 2019 +0100 Always link org.lineageos.platform-res for org.lineageos.platform.sdk Test: m clean && m org.lineageos.platform.sdk Change-Id: I58956855bd4d1157e2582103c4861e7b384b4f73 Author: Sam Mortimer <sam@mortimer.me.uk> Date: Fri Aug 31 10:52:29 2018 -0700 soong: Allow framework to access lineage-sdk resources *) Make framework depend on lineage-sdk resource package *) Allows framework module to access lineage-sdk resources via usual org.lineageos.platform.internal.R paths. Change-Id: Ifd19d43d9308ac370ad40a499de16bf8ce204beb Change-Id: Icc18de5dfaa83fc0a1eda6f3704f3a92e1de0764
* Build framework.aidl in SoongColin Cross2019-04-221-1/+11
| | | | | | | | | | | | | | | 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 Merged-In: I126adf1d9e7b6acb528875ff62b974ba7ad9a337 (cherry picked from commit 3047fa23da6d9f6e504c81e275ad7f6761fb7c7b)
* Merge "Fix sdk_version: "system_current" when Platform_sdk_final=true" am: ↵Colin Cross2019-04-031-1/+0
|\ | | | | | | | | | | | | | | b007b2bde5 am: 8c3f398c6c am: 209edee425 Change-Id: I54ea846c9ac2b29354109755225db71dcdaa1527
| * Fix sdk_version: "system_current" when Platform_sdk_final=trueColin Cross2019-04-021-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Move some java test setup later am: c28bb0b8f9 am: 7e2b9c48caColin Cross2019-03-041-4/+0
|\| | | | | | | | | | | am: 7cb6f9e601 Change-Id: Ib0924d35bc9cd844a071e5f8729f5e2f7b8b6745
| * Move some java test setup laterColin Cross2019-03-051-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Refactor dexpreopt_bootjars.go to prepare for multiple boot images am: ↵Colin Cross2019-02-221-1/+1
|\| | | | | | | | | | | | | | | 44df581457 am: ac405aa805 am: d3a73010f9 Change-Id: I53abda3e3b15969402580825480f76bc18a9d9de
| * Refactor dexpreopt_bootjars.go to prepare for multiple boot imagesColin Cross2019-02-201-1/+1
| | | | | | | | | | | | | | | | | | 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
* | Make RuleBuilder methods take Paths am: 69f59a3327 am: fafab5c1ecColin Cross2019-02-221-0/+4
|\| | | | | | | | | | | am: d123cd7459 Change-Id: I5277142b7486c80c1c93d2ecd9a90b387d93c4a9
| * Make RuleBuilder methods take PathsColin Cross2019-02-201-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "Revert "Make RuleBuilder methods take Paths"" am: 501d7e594a am: ↵Colin Cross2019-02-201-4/+0
|\| | | | | | | | | | | | | | | dc68f8826c am: ec60a92074 Change-Id: I4519fd0157c6f1287135879ad42a2d1ffaf59515
| * Revert "Make RuleBuilder methods take Paths"Colin Cross2019-02-211-4/+0
| | | | | | | | | | | | | | | | This reverts commit acdd6940719125104dfd2f692990c99682f95f05. Reason for revert: broke ndk build Change-Id: I5655e48c15eb8f5f0267afdd853fbc25765b8623
* | Merge "Make RuleBuilder methods take Paths" am: 4bb6764de9 am: 4ebb84d392Colin Cross2019-02-201-0/+4
|\| | | | | | | | | | | am: fc2da332e9 Change-Id: Ic6563627f7853d9850e996d4579ac671d47d2c7b
| * Make RuleBuilder methods take PathsColin Cross2019-02-201-0/+4
| | | | | | | | | | | | | | | | | | | | 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
| * Add java/testing.go for sysprop_test.goColin Cross2019-02-161-0/+88
| | | | | | | | | 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)
* Add java/testing.go for sysprop_test.goColin Cross2019-02-151-0/+89
Share more of the setup code for java tests to sysprop_tests.go. Test: java_test.go, sysprop_test.go Change-Id: I0e3b287bf188c432d995a9a91a18ebef12aa47d1