Add an mobly test VtsNbuBluetooth test module
Test: run vts-p2p
Bug: 67869554
Change-Id: Ie54a3fe7f5684c1b09dfa6cce54d37bab8d72259
(cherry picked from commit ea2d2deca50cf1885cb09c5f81ca6b71cb8a6a26)
diff --git a/bluetooth/Android.mk b/bluetooth/Android.mk
new file mode 100644
index 0000000..ab0fd3c
--- /dev/null
+++ b/bluetooth/Android.mk
@@ -0,0 +1,23 @@
+#
+# Copyright (C) 2017 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.
+#
+
+LOCAL_PATH := $(call my-dir)
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := VtsNbuBluetooth
+VTS_CONFIG_SRC_DIR := testcases/nbu/bluetooth
+-include test/vts/tools/build/Android.host_config.mk
diff --git a/bluetooth/AndroidTest.xml b/bluetooth/AndroidTest.xml
new file mode 100644
index 0000000..2dd57ed
--- /dev/null
+++ b/bluetooth/AndroidTest.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2017 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="Config for VTS Next Billion User Bluetooth test cases">
+ <option name="config-descriptor:metadata" key="plan" value="vts-p2p" />
+ <multi_target_preparer class="com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer">
+ <option name="dep-module" value="mobly" />
+ </multi_target_preparer>
+
+ <test class="com.android.tradefed.testtype.VtsMultiDeviceTest">
+ <option name="test-module-name" value="VtsNbuBluetooth" />
+ <option name="test-timeout" value="10m" />
+ <option name="runtime-hint" value="1m" />
+ <option name="test-case-path" value="vts/testcases/nbu/bluetooth/Bluetooth" />
+ </test>
+</configuration>
diff --git a/bluetooth/Bluetooth.py b/bluetooth/Bluetooth.py
new file mode 100644
index 0000000..c47833e
--- /dev/null
+++ b/bluetooth/Bluetooth.py
@@ -0,0 +1,24 @@
+#
+# Copyright (C) 2017 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.
+#
+
+from vts.runners.host import test_runner
+
+from vts.testcases.template.mobly_test import MoblyTest
+from vts.testcases.nbu.src.bluetooth_test import BluetoothTest
+
+
+if __name__ == "__main__":
+ test_runner.main()
\ No newline at end of file
diff --git a/bluetooth/__init__.py b/bluetooth/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/bluetooth/__init__.py