platform_build_soong/sdk
Paul Duffin 1822a0a371 Improve sdk snapshot testing
The sdk produces snapshots that are expected to be unpacked in one of
the Android repos. Often that can lead to issues due to conflicts
between the source and prebuilts. This change attempts to avoid those
conflicts by testing the different ways that those files can be used.

With the existing test to cover adding the snapshot
This change will cause the sdk tests to check the following:
1) Snapshot on its own (already done).
2) Snapshot plus original source where the original source is
   preferred.
3) Snapshot plus original source where the snapshot is preferred.

It also adds the ability for tests to provide their own custom checkers
to verify the result of each of the previous tests.

This change reveals a number of bugs already present. Rather than
attempt to fix them this change adds the ability to specify error
handlers for the two cases that mix source and snapshot to allow those
errors to be temporarily ignored while allowing the majority of the
tests to benefit from this improvement. Each of those failures has a
TODO and bug associated with it.

Bug: 183184375
Test: m nothing
Change-Id: I105233195074dbe7a6422b6dfc5486e74398ea15
2021-03-25 12:50:18 +00:00
..
Android.bp Add platform_compat_config to sdk 2021-03-22 19:13:40 +00:00
boot_image_sdk_test.go Add TestBasicSdkWithBootImage 2021-03-22 19:13:40 +00:00
bp.go Handle property structs and BpPropertySets as values to AddProperty. 2020-09-25 00:33:04 +01:00
bp_test.go Replace AssertPanic with AssertPanicMessageContains 2021-03-20 12:08:51 +00:00
cc_sdk_test.go Improve sdk snapshot testing 2021-03-25 12:50:18 +00:00
compat_config_sdk_test.go Improve sdk snapshot testing 2021-03-25 12:50:18 +00:00
exports.go Extract sdk registration code into function for reuse 2021-03-09 23:03:45 +00:00
exports_test.go Stop sdk package depending on testing.T being embedded in TestResult 2021-03-13 15:59:33 +00:00
java_sdk_test.go Improve sdk snapshot testing 2021-03-25 12:50:18 +00:00
sdk.go Improve sdk snapshot testing 2021-03-25 12:50:18 +00:00
sdk_test.go Migrate sdk package to a per test build directory 2021-03-18 01:48:25 +00:00
testing.go Improve sdk snapshot testing 2021-03-25 12:50:18 +00:00
update.go Support testing versioned/unversioned sdk Android.bp files separately 2021-02-22 18:23:22 +00:00