aboutsummaryrefslogtreecommitdiff
path: root/AndroidTestTemplate.xml
diff options
context:
space:
mode:
authorJack He <siyuanh@google.com>2018-08-28 18:28:55 -0700
committerJack He <siyuanh@google.com>2018-09-27 22:21:21 +0000
commit37b717c612a82f81366afee36db8853b1611b865 (patch)
treef7c109c00a35917cb8b2377daec1f3dcb14d7f5a /AndroidTestTemplate.xml
parent71113b44c302b3d105ef4999ef899d09e2a6bf42 (diff)
downloadbt-37b717c612a82f81366afee36db8853b1611b865.tar.gz
Add TEST_MAPPING to system/bt
* Add "postsubmit" test group to TEST_MAPPING in system/bt * Developer can run tests mannually in system/bt via: system/bt$ atest :postsubmit * Remove legacy configuration files spread across system/bt * Created unified configuration file system/bt/AndroidTestTemplate.xml and add it to the default build config so that developers don't have to configure it Bug: 113359343 Test: atest :postsubmit Change-Id: I0fdd55b47ef176b5c4ce3d2cd217ffa67cf9bc23
Diffstat (limited to 'AndroidTestTemplate.xml')
-rw-r--r--AndroidTestTemplate.xml33
1 files changed, 33 insertions, 0 deletions
diff --git a/AndroidTestTemplate.xml b/AndroidTestTemplate.xml
new file mode 100644
index 000000000..3ad4cd26e
--- /dev/null
+++ b/AndroidTestTemplate.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright 2018 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<configuration description="Runs {MODULE}.">
+ <option name="test-suite-tag" value="apct" />
+ <option name="test-suite-tag" value="apct-native" />
+ <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer" />
+ <target_preparer class="com.android.tradefed.targetprep.PushFilePreparer">
+ <option name="cleanup" value="true" />
+ <option name="push" value="{MODULE}->/data/local/tmp/{MODULE}" />
+ </target_preparer>
+ <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
+ <option name="run-command" value="settings put global ble_scan_always_enabled 0" />
+ <option name="run-command" value="svc bluetooth disable" />
+ </target_preparer>
+ <test class="com.android.tradefed.testtype.GTest" >
+ <option name="native-test-device-path" value="/data/local/tmp" />
+ <option name="module-name" value="{MODULE}" />
+ <option name="run-test-as" value="0" />
+ </test>
+</configuration>