diff options
author | 2022-03-29 14:43:28 -0700 | |
---|---|---|
committer | 2022-03-31 17:29:01 +0000 | |
commit | 43c2dcaef609c4a268bfab6c95ed924af4ead6b1 (patch) | |
tree | 2f0d97c212ea52075fcb75075368e033db743864 /apex/apex_test.go | |
parent | 76ff96f88584282e89c7d5f8f2e73a35710ab358 (diff) |
Build notice files from license metadata.
Switch from generate-notice-files.py and mergenotice.py to htmlnotice.
Bug: 151177513
Bug: 213388645
Bug: 210912771
Test: m droid dist reportmissinglicenses
Change-Id: I6cac049d24f35ec358c6f341a04f4ba6161703bf
Diffstat (limited to 'apex/apex_test.go')
-rw-r--r-- | apex/apex_test.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/apex/apex_test.go b/apex/apex_test.go index 85bd59526..ec815c4c7 100644 --- a/apex/apex_test.go +++ b/apex/apex_test.go @@ -591,15 +591,6 @@ 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") |