aboutsummaryrefslogtreecommitdiffstats
path: root/tradefed
Commit message (Collapse)AuthorAgeFilesLines
* Replace *Escape with *EscapeListColin Cross2019-03-041-1/+1
| | | | | | | | | | Follow the change to blueprint to make *Escape take and return a string and add *EscapeList that take and return slices of strings. Fix up a few places that were unnecessarily converting a string to a slice and back to a string. Test: m nothing Change-Id: I3fa87de175522205f36544ef76aa2f04aef1b936
* Autogenerate some extra_options based on some build propertiesJulien Desprez2019-03-011-16/+36
| | | | | | | | | | If an Android.bp specifies Isolated=true, make sure it's tagged as not-shardable, since b/126376458 is not resolved. Test: make bionic-benchmarks-tests (with and without isolated=true) Bug: 124024827 Change-Id: I2210c15b84f9b30e1cc23b426d463b34cf9ef94f
* [SOONG] Not auto-generate test config if test_suite is ctsyangbill2019-02-191-14/+12
| | | | | | | | | | | | Current soong use source code's under cts as the rule for judgement. Should change to use test_suites define instead. Bug: 124313692 Test: m hello_world_test, make sure test config be auog-enerated. Modified platform_testing/tests/example/native/Android.bp m hello_world_test, make sure test config not be auto-generatetd. Change-Id: I1bc5216f73329d2a82d9ff29ccbede436dd2976c
* Autogen python test config.yelinhsieh2019-01-143-0/+18
| | | | | | | | | | | | | Feature request from developer, autogen python test config. Bug:118442443 Test: $source build/envsetup.sh ; lunch $sed -i '/test_config/d' tools/acloud/Android.bp $make acloud_test $[ -f $ANDROID_HOST_OUT_TESTCASES/acloud_test/acloud_test.config ] && echo "Found" || echo "Not found" Change-Id: I196230581b456afe03e67f9cd84c028d18ba08d9
* Revert "ATest: GTest auto gen config support run_test_as in Android.bp ."Bill Yang2018-10-251-30/+14
| | | | | | | | This reverts commit d30b940dffa10b1a2e703178af386d4b5a8616ae. Reason for revert: sed -i requires an argument on mac, break build on mac. Change-Id: Iba2db061ae888d265e02b750e50959019cf0f168
* ATest: GTest auto gen config support run_test_as in Android.bp .yelinhsieh2018-10-221-14/+30
| | | | | | | | | | | | | | | | | | | | Feature request from developer, support setting uid in Android.bp. Bug:113359343 Test: source build/envsetup.sh ; lunch vim platform_testing/tests/example/native/Android.bp add test_options: { run_test_as: "1234", }, in cc_test make hello_world_test cat out/target/product/xxxx/testcases/hello_world_test/hello_world_test.config Will see <option name="run-test-as" value="1234" /> below <test class="com.android.tradefed.testtype.GTest" > Change-Id: I5604af5f20c45728d19f4c01396a20a74997f8a8
* TradeFed: Add "test_config_template" flag in Android.bpJack He2018-09-261-21/+51
| | | | | | | | | | | | | | | * Allow module owner to specify a test_config_template in Android.bp * The rule goes: 1. When "test_config" is set, Soong uses specified test config 2. If 1 is not true, check if "AndroidTest.xml" exist in the directory, if so, use "AndroidTest.xml 3. If 1 and 2 are not true, check if "test_config_template" is set. If so, use module specific template to generate test config 4. Otherwise, use Soong default template for test config for autogen Bug: 113359343 Test: make Change-Id: I9fb4b2b266be9e0c7cf23da4a51e1c8ae67cd857
* Fix template for native benchmark test configColin Cross2018-08-201-1/+1
| | | | | | Bug: 112851515 Test: rm libcore/AndroidTest.xml && atest libjavacore-benchmarks Change-Id: I126550b6a90b06483e3ee1acec07659fa00fa8af
* Move autogenerated test config into SoongColin Cross2018-08-143-0/+191
Move autogenerating the test config for Soong modules into Soong for java_test and android_test modules. Bug: 70770641 Test: m checkbuild Test: atest CtsUiRenderingTestCases Change-Id: I02593add0407ef694b91c14cf27411a4f3cc4745