fce431652d
New soong module type `TestModuleConfig` This module type allows to write: test_module_config { name: "DerivedFrameworks1", base: "FrameworksServicesTests", include_filters: ["com.android.server.accessibility.FingerprintGestureDispatcherTest"], } This goal is to put the test options (include_fitler in this case) in Android.bp rather than TEST_MAPPING to be able to name a set of options and to allow the CI to more precise about which part of a TestModule might be failing. In general, it is recommended to split up tests rather than use this approach, but that isn't always feasible. More details on project here: https://docs.google.com/document/d/1MpA4BS6mTr-1D-K9MVmzdHkSufAvIkkM4gPEUglNodk/edit?tab=t.0 Migration plan here: https://docs.google.com/document/d/1x3w-BvKO3E-GbY8YOSBuzJC6-pkLkuhfjSyZ1hJQBYM/edit?tab=t.0 Some details of final output: * All the [data] files from Derived are the same as base. * The apk names is changed to be the Module name * The test options are added to .config file * test-file-name in the .config file (for base.apk) is changed to be new apk. * module-info.json is hand inspected between base and derived. * I added a .manifest file so future tools know what base is, if they need it. We are working a mechanism to use a CAS so the zip of the testcases won't explode. (however the trident disk image will get bigger) % tree -ls out/target/product/shiba/testcases/DerivedFrameworks1 out/target/product/shiba/testcases/FrameworksServicesTests [ 4096] out/target/product/shiba/testcases/DerivedFrameworks1 ├── [ 4096] arm64 │ └── [ 72346281] DerivedFrameworks1.apk ├── [ 20887] BstatsTestApp.apk ├── [ 4096] data │ └── [ 851] broken_shortcut.xml ├── [ 3157] DerivedFrameworks1.config ├── [ 12695] JobTestApp.apk ├── [ 8599] MediaButtonReceiverHolderTestHelperApp.apk ├── [ 16791] SimpleServiceTestApp1.apk ├── [ 16791] SimpleServiceTestApp2.apk ├── [ 16791] SimpleServiceTestApp3.apk ├── [ 1017540] SuspendTestApp.apk └── [ 36] test_module_config.manifest [ 4096] out/target/product/shiba/testcases/FrameworksServicesTests ├── [ 4096] arm64 │ └── [ 72346281] FrameworksServicesTests.apk ├── [ 20887] BstatsTestApp.apk ├── [ 4096] data │ └── [ 851] broken_shortcut.xml ├── [ 2866] FrameworksServicesTests.config ├── [ 12695] JobTestApp.apk ├── [ 8599] MediaButtonReceiverHolderTestHelperApp.apk ├── [ 16791] SimpleServiceTestApp1.apk ├── [ 16791] SimpleServiceTestApp2.apk ├── [ 16791] SimpleServiceTestApp3.apk └── [ 1017540] SuspendTestApp.apk Fixes: 314148134 Test: atest DerivedFrameworks1 DerivedFrameworks2 Test: m blueprint_tests Change-Id: Ib73a3404557e0bd583b065f0cf2fd55fba9ccdbe |
||
---|---|---|
.. | ||
check_boot_jars | ||
hiddenapi | ||
Android.bp | ||
archive_repack.sh | ||
build-apex-bundle.py | ||
build-ndk-prebuilts.sh | ||
build-rustdocs.sh | ||
build_broken_logs.go | ||
check_do_not_merge.sh | ||
check_prebuilt_presigned_apk.py | ||
construct_context.py | ||
construct_context_test.py | ||
construct_uffd_gc_flag.py | ||
conv_linker_config.py | ||
conv_linker_config_test.py | ||
diff_build_graphs.sh | ||
freeze-sysprop-api-files.sh | ||
gen-java-current-api-files.sh | ||
gen-kotlin-build-file.py | ||
gen-sysprop-api-files.sh | ||
gen_java_usedby_apex.sh | ||
gen_ndk_backedby_apex.sh | ||
gen_ndk_usedby_apex.sh | ||
get_clang_version.py | ||
get_clang_version_test.py | ||
jar-args.sh | ||
jar-wrapper.sh | ||
jars-to-module-info-java.sh | ||
jsonmodify.py | ||
jsonmodify_test.py | ||
keep-flagged-apis.sh | ||
lint_project_xml.py | ||
lint_project_xml_test.py | ||
list_image.sh | ||
manifest.py | ||
manifest_check.py | ||
manifest_check_test.py | ||
manifest_fixer.py | ||
manifest_fixer_test.py | ||
microfactory.bash | ||
modify_permissions_allowlist.py | ||
modify_permissions_allowlist_test.py | ||
ninja_rsp.py | ||
package-check.sh | ||
reverse-deps.sh | ||
run-ckati.sh | ||
run-soong-tests-with-go-tools.sh | ||
rustfmt.toml | ||
setup-android-build.sh | ||
setup_go_workspace_for_soong.sh | ||
strip.sh | ||
system-clang-format | ||
system-clang-format-2 | ||
test_config_fixer.py | ||
test_config_fixer_test.py | ||
toc.sh | ||
transitive-deps.sh | ||
uffd_gc_utils.py | ||
uffd_gc_utils_test.py | ||
unpack-prebuilt-apex.sh | ||
update_out |