diff options
author | 2022-04-01 02:05:36 +0000 | |
---|---|---|
committer | 2022-04-01 14:10:53 +0000 | |
commit | 77807b3c277723161a193aea2a9df1e464448c3d (patch) | |
tree | aa4308c05738ee38894901471f83e52c11746ba8 /apex/apex_test.go | |
parent | 2a5c090c31bf6152f9e5954273c06cd34a21092e (diff) |
Revert "Build notice files from license metadata."
This reverts commit 43c2dcaef609c4a268bfab6c95ed924af4ead6b1.
Reason for revert: suspect build break
Bug: 227682036
Test: TARGET_BUILD_VARIANT=userdebug UNBUNDLED_BUILD_SDKS_FROM_SOURCE=true vendor/google/build/mainline_modules_bundles.sh -j97
Change-Id: Ibfb8b4fefc264f52f32ba661c269a9cd625d800a
Diffstat (limited to 'apex/apex_test.go')
-rw-r--r-- | apex/apex_test.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/apex/apex_test.go b/apex/apex_test.go index ec815c4c7..85bd59526 100644 --- a/apex/apex_test.go +++ b/apex/apex_test.go @@ -591,6 +591,15 @@ func TestBasicApex(t *testing.T) { t.Errorf("Could not find all expected symlinks! foo: %t, foo_link_64: %t. Command was %s", found_foo, found_foo_link_64, copyCmds) } + mergeNoticesRule := ctx.ModuleForTests("myapex", "android_common_myapex_image").Rule("mergeNoticesRule") + noticeInputs := mergeNoticesRule.Inputs.Strings() + if len(noticeInputs) != 3 { + t.Errorf("number of input notice files: expected = 3, actual = %q", len(noticeInputs)) + } + ensureListContains(t, noticeInputs, "NOTICE") + ensureListContains(t, noticeInputs, "custom_notice") + ensureListContains(t, noticeInputs, "custom_notice_for_static_lib") + fullDepsInfo := strings.Split(ctx.ModuleForTests("myapex", "android_common_myapex_image").Output("depsinfo/fulllist.txt").Args["content"], "\\n") ensureListContains(t, fullDepsInfo, " myjar(minSdkVersion:(no version)) <- myapex") ensureListContains(t, fullDepsInfo, " mylib2(minSdkVersion:(no version)) <- mylib") |