Migrate options in TEST_MAPPING -> Android.bp
This is the first of several cls to start the migration of options in TEST_MAPPING files to being specified in Android.bp files. The overall goal is to get local (atest) runs closer to CI runs of the tests. These all have FrameworksServicesTests as the base test and all TEST_MAPPING files to refer to these new test modules reside under this (servictests) directory. Step 1) Introduce new modules and list them in TEST_MAPPING postsubmit Step 2) Wait a week for SLO checker to accept the new modules. Step 3) Replace current presubmit TEST_MAPPING entries with the module names. This second CL will be part of the same topic, which will also run in presubmit ... Later steps will ensure that if new options are added to these TEST_MAPPING files, they will get converted too, but nothing is preventing that yet. This was hand-crafted cl, not using the migration script yet. I am starting with one directory that has several TEST_MAPPING files below and converting them all, thus 10 new modules instead of 1 or 2. Migration Plan Doc: https://docs.google.com/document/d/1x3w-BvKO3E-GbY8YOSBuzJC6-pkLkuhfjSyZ1hJQBYM/edit?tab=t.0#heading=h.17wg41voij6q For these tests, the out dir increases by 1.7 Gig (total for all them). From: ~/aosp-main-with-phones/frameworks/base/services/tests/servicestests Ran atest and verified the test that ran matched the new filters. Test: atest --test-mapping src/com/android/server/contentcapture:postsubmit Test: atest --test-mapping src/com/android/server/contentprotection:postsubmit Test: atest --test-mapping src/com/android/server/location/contexthub:postsubmit Test: atest --test-mapping src/com/android/server/om:postsubmit Test: atest --test-mapping src/com/android/server/os:postsubmit Test: atest --test-mapping src/com/android/server/pm:postsubmit # 4 postsubmit tests fail, but there were already failing Test: atest --test-mapping src/com/android/server/recoverysystem:postsubmit Change-Id: I6e793d8c8fb1efb3b990466ea409a3cf1bf53434
Loading
Please register or sign in to comment