Paul Duffin
813bfcb252
Merge "Convert android/packaging_test.go to test fixtures"
2021-03-18 18:38:34 +00:00
Paul Duffin
387f4ce1ee
Merge changes Iccba8caf,I1eb49f25,Id77575f8,I5679cb51,I7f9f3eb6, ...
...
* changes:
Convert android/ninja_deps_test.go to test fixtures
Add NinjaDeps to TestResult
Convert android/singleton_module_test.go to test fixtures
Convert android/neverallow_test.go to test fixtures
Convert android/singleton_module_test.go to test fixtures
Convert android/variable_test.go to test fixtures
Convert android/soong_config_modules_test.go to test fixtures
Convert android/mutator_test.go to test fixtures
Convert android/deptag_test.go to test fixtures
2021-03-18 18:18:38 +00:00
Paul Duffin
000ae662fa
Merge changes I2e69e7b5,I3c9c36e7
...
* changes:
Convert sysprop package to fixtures
Add preparers for sysprop
2021-03-18 18:17:20 +00:00
Paul Duffin
ebcb37bab1
Merge "Migrate sdk package to a per test build directory"
2021-03-18 17:05:11 +00:00
Paul Duffin
c3f89bece1
Merge "Clean up java package use of python build components"
2021-03-18 17:02:44 +00:00
Paul Duffin
e410711cd5
Merge "Convert python package to fixtures"
2021-03-18 17:02:19 +00:00
Paul Duffin
b72dd403de
Merge "Prevent ApexInfoMutator from creating unnecessary variants"
2021-03-18 15:13:39 +00:00
Paul Duffin
b01125f92b
Merge changes I9aad3e4e,I150889a0
...
* changes:
Convert xml package to fixtures
Add preparers for xml
2021-03-18 14:16:31 +00:00
Paul Duffin
d5065cfc66
Merge "Add prebuilt_platform_compat_config"
2021-03-18 12:28:00 +00:00
Paul Duffin
c3bdd310bd
Convert android/packaging_test.go to test fixtures
...
Bug: 182885307
Test: m nothing
Change-Id: Ic2384bfe3f1edb8d252053fda7df66d49c46fd0f
2021-03-18 12:18:09 +00:00
Paul Duffin
d9ec7d2694
Convert android/ninja_deps_test.go to test fixtures
...
Bug: 182885307
Test: m nothing
Change-Id: Iccba8caffc7e5a82ff13d93a032edcf3f748fc40
2021-03-18 12:18:09 +00:00
Paul Duffin
78c36216a8
Add NinjaDeps to TestResult
...
Bug: 182885307
Test: m nothing
Change-Id: I1eb49f2514b13f52f367cd8f57e5cb0ab3336bd7
2021-03-18 12:18:09 +00:00
Paul Duffin
a9237b6eeb
Convert android/singleton_module_test.go to test fixtures
...
Bug: 182885307
Test: m nothing
Change-Id: Id77575f8ceda43545e2fad97fa1bd6b612c967b4
2021-03-18 12:18:09 +00:00
Paul Duffin
3c6a4ea24a
Convert android/neverallow_test.go to test fixtures
...
Bug: 182885307
Test: m nothing
Change-Id: I5679cb517151ceaf468f2fe2e0ccab718cc7b4a3
2021-03-18 12:18:09 +00:00
Paul Duffin
d65970072d
Convert android/singleton_module_test.go to test fixtures
...
Bug: 182885307
Test: m nothing
Change-Id: I7f9f3eb66279fe5a2447aefa9b636144c32ce92a
2021-03-18 12:18:05 +00:00
Paul Duffin
4bb2b219d6
Convert android/variable_test.go to test fixtures
...
Bug: 182885307
Test: m nothing
Change-Id: I51d3651244b110bf41cb0e4c331ac663bf816f84
2021-03-18 12:17:05 +00:00
Paul Duffin
791302b412
Convert android/soong_config_modules_test.go to test fixtures
...
Bug: 182885307
Test: m nothing
Change-Id: I53231b820154447e359e48afa47cdf76f0ec6c47
2021-03-18 12:17:05 +00:00
Paul Duffin
e8a4ac49fe
Convert android/mutator_test.go to test fixtures
...
Bug: 182885307
Test: m nothing
Change-Id: Id7eb915af21ccde5acf1d4a0ec339e0672bc3d57
2021-03-18 12:17:05 +00:00
Paul Duffin
485079130d
Convert android/deptag_test.go to test fixtures
...
Bug: 182885307
Test: m nothing
Change-Id: I837c7b9944a9adbe9019ae8a4e69ff3b7086ca5c
2021-03-18 12:17:01 +00:00
Paul Duffin
4b9bb5c057
Merge "Convert android/namespace_test.go to test fixtures"
2021-03-18 12:14:01 +00:00
Paul Duffin
cb460c91f1
Merge "Add FixtureIgnoreErrors"
2021-03-18 12:13:36 +00:00
Paul Duffin
50eb3829f9
Merge "Convert android/rule_builder_test.go to test fixtures"
2021-03-18 12:13:12 +00:00
Paul Duffin
573989d821
Prevent ApexInfoMutator from creating unnecessary variants
...
Adds the AlwaysRequireApexVariantTag interface to enable
ApexInfoMutator to differentiate between a tag that is excluded from
apex contents but still requires an apex variant and a tag that is
excluded from apex contents and does not require an apex variant.
That is needed to support the sdkMemberVersionedDepTag which excludes
the target from being added to the APEX but requires an APEX variant.
A more detailed explanation is in the comments.
The AlwaysRequireApexVariant() method follows the pattern used in
ReplaceSourceWithPrebuilt of having a method that returns a bool to
trigger the behavior and not say ExcludeFromApexContentsTag that simply
relies on the tag implementing an interface to trigger. That is because
the former is more flexible and allows a tag type to parameterize the
behavior if necessary.
The tags that this will exclude from creating an apex variant are:
* PrebuiltDepTag - by the time the apex variant has been created any
preferred prebuilts will have replaced the sources so there is no
need to create an APEX variant if the only dependency path from the
APEX to the prebuilt is via this tag.
* hiddenApiAnnotationsDependencyTag - the target of which is a purely
build time artifect and MUST NEVER end up in the APEX.
It will also stop calling DepIsInSameApex for any dependency created
by the sdkMemberVersionedDepTag. Which will fix the issue reported in
the bug.
Bug: 182992071
Test: m nothing
Change-Id: I9569e488d6446ca45d3ea8f32a9b74524eb865df
2021-03-18 09:05:28 +00:00
Paul Duffin
0700f77806
Merge "Convert android/paths_test.go to test fixtures"
2021-03-18 08:58:54 +00:00
Paul Duffin
e9ae3616a2
Merge "Convert android/module_test.go to test fixtures"
2021-03-18 08:58:19 +00:00
Lukács T. Berki
734b215d66
Merge "Compile soong_build for debugging if needed."
2021-03-18 08:58:16 +00:00
Paul Duffin
7f09fd298a
Merge "Convert android/defaults_test.go to test fixtures"
2021-03-18 08:57:31 +00:00
Paul Duffin
c14e8aa6a8
Merge "Add AssertSame"
2021-03-18 08:56:21 +00:00
Paul Duffin
28f0e9e2cb
Merge "Convert android/csuite_config_test.go to test fixtures"
2021-03-18 08:55:55 +00:00
Paul Duffin
3bf545fa6b
Merge "Convert android/arch_test.go to test fixtures"
2021-03-18 08:55:29 +00:00
Paul Duffin
abc6ec9d16
Merge "Add OptionalFixturePreparer"
2021-03-18 08:55:04 +00:00
Paul Duffin
81e7e2b9a3
Merge "Remove android/apex_test.go use of buildDir"
2021-03-18 08:54:35 +00:00
Paul Duffin
aa8270eca7
Merge "Convert android/androidmk_test.go to test fixtures"
2021-03-18 08:52:15 +00:00
Paul Duffin
21d1b9a52c
Merge "Migrate bpf package to a per test build directory"
2021-03-18 08:51:45 +00:00
Paul Duffin
603fa13e08
Merge "Correct typo in the name of compatConfigTag"
2021-03-18 08:48:36 +00:00
Paul Duffin
c0a5ccbf3b
Merge "Allow apex dependencies to be restricted to source modules only"
2021-03-18 08:48:05 +00:00
Paul Duffin
533cf74318
Merge "Separate metadata provider from apex contents provider"
2021-03-18 08:46:49 +00:00
Paul Duffin
a8c065522d
Merge "Add AssertIntEquals"
2021-03-18 08:42:16 +00:00
Paul Duffin
93b61b49dd
Merge "Add emptyFixtureFactory in java package"
2021-03-18 08:40:03 +00:00
Paul Duffin
177cba31cf
Merge "Reorganize the platform_compat_config.go file"
2021-03-18 08:39:39 +00:00
Paul Duffin
f49f72f271
Merge "Add preparers for python"
2021-03-18 08:28:35 +00:00
Paul Duffin
0a00e2680d
Merge "Fix hole in python testing code that ignored a broken test"
2021-03-18 08:28:10 +00:00
Paul Duffin
e26e597fc8
Merge "Fix app tests to work without javaMockFS()"
2021-03-18 08:00:29 +00:00
Paul Duffin
9e993c6162
Merge "Convert app tests that depend on javaMockFS() to test fixtures"
2021-03-18 07:59:54 +00:00
Paul Duffin
8a6fef4db3
Merge "Convert TestUsesLibraries to test fixtures"
2021-03-18 07:59:04 +00:00
Lukács T. Berki
828b1e99ec
Merge "Fix writing soong.variables ."
2021-03-18 07:36:53 +00:00
Paul Duffin
abbf63d650
Migrate sdk package to a per test build directory
...
Bug: 182885307
Test: m nothing
Change-Id: I051f2572ce5e94e2a3a66cf7663797178b7d1506
2021-03-18 01:48:25 +00:00
Paul Duffin
ec74f81b49
Convert xml package to fixtures
...
Bug: 182885307
Test: m nothing
Change-Id: I9aad3e4e6dbec9c25e8a0aeaf8e0ec1d82e39400
2021-03-18 01:43:50 +00:00
Paul Duffin
94b6960b39
Add preparers for xml
...
Bug: 181070625
Test: m nothing
Change-Id: I150889a025e1c23eebe1e2764b07fdbd2babef49
2021-03-18 01:43:50 +00:00
Pirama Arumuga Nainar
5ef0c52bdf
Merge "Update clang used for bindgen to clang-r412851"
2021-03-18 00:27:30 +00:00