aboutsummaryrefslogtreecommitdiff
path: root/tools/auto_gen_test_config.py
Commit message (Collapse)AuthorAgeFilesLines
* Move auto_gen_test_config.py to argparse.Jingwen Chen2023-09-191-15/+24
| | | | | | | Follow up to aosp/2752414 Test: atest-dev auto_gen_test_config_test Change-Id: I401c6213f0ed5e97eb97b1c603a8b6c5286f0d88
* Make auto_gen_test_config available to Bazel.Jingwen Chen2023-09-181-21/+57
| | | | | | | | | | | | | | | | | | | In the Bazel rule, the actual AndroidManifest.xml file isn't available in the providers of the android_binary dependency. And for good reason, we should also rely on aapt2 to dump the manifest contents from the final packaged APK anyway, but this auto gen script doesn't support reading the output of aapt2 dump. This CL adds a simple reader of the output of `aapt2 dump xmltree`, and enabled if the xmltree content is passed to this tool instead of AndroidManifest.xml. Also fixup auto_gen_test_config_test.py. The test was completely failing. Test: atest auto_gen_test_config_test Test: presubmits Change-Id: I7fecd927d0ed7847b6463d964b3698f4164b0177
* Convert auto_gen_test_config.py to python 3Cole Faust2023-01-261-2/+2
| | | | | | | | | | | | This script is run by soong, but without specifying the python launcher, so it uses the default "python" in the path, which is python 2. Convert the script to use python 3. Bug: 203436762 Test: Building an internal product that uses this Change-Id: I4496c03b8669c54d080aa45c446dd1f27d91259e
* Update auto-gen test config template with PARAMETERIZED_STRINGSeasoncylee2020-05-151-3/+9
| | | | | | | | | | | placeholder Bug: 134509111 Test: add "test_mainline_modules: [some.apk]" to TetheringTests, and build the modules, confirm the parameterized option is added in the test config. Change-Id: I0f4f837412075520153d21c9ca12cf5c3f555de7
* Default test to AndroidJUnitTest for auto-generated test config.Dan Shi2018-02-211-2/+3
| | | | | | | | | All new instrumentation tests shall use AndroidJUnitRunner, thus default test class to AndroidJUnitTest. Bug: 73679956 Test: unittest Change-Id: I52df4d01b8459a4a6e5c2cbe15973dab079fb136
* Test config should use manifest package attributeDan Shi2017-12-221-5/+7
| | | | | | Bug: 70981774,69929803 Test: m -j SetupWizardActivityTests Change-Id: I6d50744504eac71d6ecae5db9b14e6d30eb923fe
* Auto generate test config filesDan Shi2017-12-201-0/+86
This change allows one to run atest <module name>. The TradeFed test config file will be automatically created in testcases directory based on the settings. Bug: 69929803, 69932044 Test: m -j NotificationStressTests libminijail_test add following lines in notificationtests/Android.mk, before "include $(BUILD_PACKAGE)" LOCAL_COMPATIBILITY_SUITE := general-test Change-Id: Ib5e9cd152d957b5d5beb6ed23a899a021a7e06d6