summaryrefslogtreecommitdiff
path: root/apex/aconfig_test.go
AgeCommit message (Collapse)Author
2024-11-16Don't use DirectlyInAnyApex to enable dex and coverage Colin Cross
DirectlyInAnyApex was being used to automatically enable dexing and to enable coverage. There is only one module in an apex that isn't already being dexed, so set compile_dex in that module and remove the automatic dexing. Coverage is only useful on device modules if they are dexed, so convert the shouldInstrumentInApex test to check if it is dexed instead. This reomves the last usages of DirectlyInAnyApex from the java package. Bug: 372543712 Test: No change to build.ninja Change-Id: I1d1738305ed97d85669945def75e9916c2b41f3c
2024-10-29Fix 1-variant fallback issue in aconfig_test.go Cole Faust
This was missed earlier because it was not setup to run on an m nothing --no-skip-soong-tests Bug: 372091092 Test: m nothing --no-skip-soong-tests with aosp/3318965 Change-Id: I0f0c0ed2dbe4546aef954198ef63603ed3e3af8a
2024-10-24Make apex tests parallel Colin Cross
Mark all the apex tests and subtests with t.Parallel(), which will allow the test runner to run them in parallel. Reduces the time required to run the apex tests from 70s to 9.7s. Test: go test ./apex Flag: EXEMPT test only Change-Id: I08bd3cb4d8eec1f9520c1118b4525aa79e95288e
2024-08-29Revert^4 "Implement detecting container violations." Jihoon Kang
This change introduces a method to detect violating inter-container dependencies between modules. The method is run in `ModuleBase.GenerateBuildActions`, after the container info provider is set. Given that the provider of the direct dependencies would have been set at this time, the method utilizes this information to determine the violations, which are introduced in https://r.android.com/3141104. Note that this enforcement does not turn all inter-container dependencies as errors. Instead, it will only turn dependencies that matches the pre-defined violations into errors. Even if the dependency matches the violation, an error will not be thrown if the dependency satisfies any of the exception functions (e.g. the dependent module is stubs, or the two modules belong to the same apexes). Test: m nothing --no-skip-soong-tests Bug: 338660802 Change-Id: Ib9ddc0761fa46f1309b1a1a4f759d9a4e04fd70e
2024-08-28Revert "Implement detecting container violations." Satish Yalla
This reverts commit bb678f82d6bb5cd89bf282e88a879123d9763d61. Reason for revert: Droidmonitor created revert due to b/362639013. Will be verifying through ABTD before submission. Change-Id: I1dcb71672eeb44a17cf176d3731bcaf9aaf81edf
2024-08-27Implement detecting container violations. Jihoon Kang
This change introduces a method to detect violating inter-container dependencies between modules. The method is run in `ModuleBase.GenerateBuildActions`, after the container info provider is set. Given that the provider of the direct dependencies would have been set at this time, the method utilizes this information to determine the violations, which are introduced in https://r.android.com/3141104. Note that this enforcement does not turn all inter-container dependencies as errors. Instead, it will only turn dependencies that matches the pre-defined violations into errors. Even if the dependency matches the violation, an error will not be thrown if the dependency satisfies any of the exception functions (e.g. the dependent module is stubs, or the two modules belong to the same apexes). Test: m nothing --no-skip-soong-tests Bug: 338660802 Change-Id: I36e9cd956c5a076a53635be0c6ff27f77725516e
2024-05-23Soong: remove obsolete proto lib from unit test Dennis Shen
Bug: b/321077378 Test: m and avd Change-Id: Ib121da201e0be38d1acd82de1487f6cfba9e696c
2024-04-26Switch to static deps Ted Bauer
Bug: 328444881 Test: m Change-Id: I53ad95ca281031ec98d5df66ada0ed69749da312
2024-04-23Add aconfig storage API deps to codegened lib Ted Bauer
Change-Id: I4991c9fccb0a0bab15457883cf20aacb3142c4cf
2024-03-29Add logging dependencies to Rust aconfig APIs Ted Bauer
Test: go test Change-Id: I17c098f6b83c442554e49b6b802f11c97f94ec76
2024-03-28Add storage API as dependency to Rust codegen Ted Bauer
Test: m Bug: 328444881 Change-Id: Id1ef9276adb9f9b990a05b910937e96ab0a5ac50
2024-03-15Support rust in aconfig mode validation. Yu Liu
Bug: 323071835 Test: Unit tests Change-Id: I6de2a6fe1618e21c9aab728e6d77c6b0c6ce33df
2024-03-07Validate aconfig libs are built with the correct modes. Yu Liu
Bug: 323071835 Test: Unit tests and manual tests. Change-Id: I32de90826c7c8bb4d8495608e959d554820ab9a2