summaryrefslogtreecommitdiff
path: root/sdk/license_sdk_test.go
AgeCommit message (Collapse)Author
2025-02-06Add t.Parallel() to SDK tests Colin Cross
Reduces time to run go test ./sdk from 44 seconds to 22.5 seconds. Requires moving snapshotTestCustomizations from a map to a struct with individual fields to avoid concurrent map accesses between subtests. Test: go test ./sdk Change-Id: Id6f451ba9cbace8bc7ea915033a795456b85cf3f
2024-03-20Add an apex_contributions_defaults module to module sdk Spandan Das
This metadata module will contain a flattened list of all the soong modules contributed by this module to the rest of the build. This is supported in V and above. Bug: 326246905 Test: m art-module-host-exports Test: unzip -p out/soong/mainline-sdks/art-module-host-exports-current.zip Android.bp | grep -A 15 apex_contributions_defaults apex_contributions_defaults { name: "art-module-host-exports.contributions", contents: [ "prebuilt_art.module.api.annotations", "prebuilt_dex2oat", "prebuilt_dex2oatd", "prebuilt_dexdump", "prebuilt_hiddenapi", "prebuilt_oatdump", "prebuilt_profman", "prebuilt_veridex", "prebuilt_libartpalette", "prebuilt_libartbase", ], } Change-Id: Iba43a9da5430adfc0a5fd9b5dc27b5d89c5eacb8
2022-05-24Remove support for generating versioned snapshots Paul Duffin
Previously, the code for selecting specific versions of sdk snapshots was removed (along with the uses_sdks property). That makes versioned snapshots useless so this change removes all the code and tests that generated those versioned snapshots. Bug: 232546567 Test: m nothing packages/modules/common/build/mainline_modules_sdks.sh Change-Id: Ib6d1b72bc8399fbb39075494ae37da92f4b28d03
2021-05-11Add package module to sdk snapshot that contains licenses Paul Duffin
This ensures that the LSC license tool does not attempt to add a package module to an sdk snapshot Android.bp. Bug: 181569894 Test: m nothing Change-Id: I37b66e0df56c5b9ec255f66cb4f2a066ea96a738
2021-05-11Add license modules to the sdk Paul Duffin
Adds initial support for adding license modules to the sdk, along with any referenced license text files. There is a number of minor improvements to be made but the core of the support is there and it works for ART sdks. Basically, this change will automatically add license modules referenced from any sdk member module as an internal sdk member. An internal module has an sdk snapshot specific name that will not conflict with the source module and which cannot be referenced from outside the sdk snapshot. Bug: 181569894 Test: m art-module-sdk art-module-host-exports art-module-test-exports - diff output before and after this change made sure that every prebuilt had a licenses field and that the license modules were added Change-Id: I0c5ccabf58f4ef487e42ef8e61a5b2a74c0e81af
2021-05-11Add baseline test for license with sdk Paul Duffin
This change adds a test that includes license modules that are used by modules which are part of an sdk but which does not yet copy the license module into the snapshot. It includes the refactoring changes needed to allow license modules to be used in an sdk test and provides a baseline against which future changes can be compared. Bug: 181569894 Test: m nothing Change-Id: I60722f43cc9cc8375d97f46eb4c281e6c38987cd