Bluetooth: add test suites
Tests are divided into two basic groups:
Sanity: for short sanity checks to do the minimum necessary to verify
that Bluetooth is functional on a given piece of hardware or given
software image.
Qualification: for tests mandated by the Bluetooth SIG.
We'll use SUITE=bluetooth,bluetooth_sanity for the former and
SUITE=bluetooth,bluetooth_qualification for the latter. The "bluetooth"
suite runs both, since both must pass for full acceptance.
BUG=chromium:256771
TEST=run suites
Change-Id: I25fd5724f7b4aeaef69c6b29b45a3d20e65bdba8
Reviewed-on: https://gerrit.chromium.org/gerrit/63999
Reviewed-by: Simran Basi <sbasi@chromium.org>
Tested-by: Scott James Remnant <keybuk@chromium.org>
Commit-Queue: Scott James Remnant <keybuk@chromium.org>
diff --git a/test_suites/control.bluetooth b/test_suites/control.bluetooth
new file mode 100644
index 0000000..d9ef915
--- /dev/null
+++ b/test_suites/control.bluetooth
@@ -0,0 +1,28 @@
+# Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+AUTHOR = "Chrome OS Team"
+NAME = "bluetooth"
+PURPOSE = "Automated testing of Bluetooth."
+CRITERIA = "All tests with SUITE=bluetooth must pass."
+
+TIME = "LONG"
+TEST_CATEGORY = "General"
+TEST_CLASS = "suite"
+TEST_TYPE = "Server"
+
+DOC = """
+This suite runs the complete set of Bluetooth tests for our hardware and
+software, including the general Sanity tests, and the Bluetooth Qualification
+tests.
+"""
+
+import common
+from autotest_lib.server.cros.dynamic_suite import dynamic_suite
+
+dynamic_suite.reimage_and_run(
+ build=build, board=board, name='bluetooth', job=job, pool=pool,
+ check_hosts=check_hosts, add_experimental=True, num=num,
+ file_bugs=file_bugs, skip_reimage=dynamic_suite.skip_reimage(globals()),
+ devserver_url=devserver_url)
diff --git a/test_suites/control.bluetooth_qualification b/test_suites/control.bluetooth_qualification
new file mode 100644
index 0000000..9889410
--- /dev/null
+++ b/test_suites/control.bluetooth_qualification
@@ -0,0 +1,27 @@
+# Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+AUTHOR = "Chrome OS Team"
+NAME = "bluetooth_qualification"
+PURPOSE = "Automated qualification testing of Bluetooth."
+CRITERIA = "All tests with SUITE=bluetooth_qualification must pass."
+
+TIME = "LONG"
+TEST_CATEGORY = "General"
+TEST_CLASS = "suite"
+TEST_TYPE = "Server"
+
+DOC = """
+This suite runs the complete set of Bluetooth SIG Qualification tests against
+our Bluetooth hardware and software.
+"""
+
+import common
+from autotest_lib.server.cros.dynamic_suite import dynamic_suite
+
+dynamic_suite.reimage_and_run(
+ build=build, board=board, name='bluetooth_qualification', job=job,
+ pool=pool, check_hosts=check_hosts, add_experimental=True, num=num,
+ file_bugs=file_bugs, skip_reimage=dynamic_suite.skip_reimage(globals()),
+ devserver_url=devserver_url)
diff --git a/test_suites/control.bluetooth_sanity b/test_suites/control.bluetooth_sanity
new file mode 100644
index 0000000..cd9ee15
--- /dev/null
+++ b/test_suites/control.bluetooth_sanity
@@ -0,0 +1,28 @@
+# Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+AUTHOR = "Chrome OS Team"
+NAME = "bluetooth_sanity"
+PURPOSE = "Automated sanity testing of Bluetooth."
+CRITERIA = "All tests with SUITE=bluetooth_sanity must pass."
+
+TIME = "SHORT"
+TEST_CATEGORY = "General"
+TEST_CLASS = "suite"
+TEST_TYPE = "Server"
+
+DOC = """
+This suite runs a series of basic sanity tests against our Bluetooth hardware
+and software. It is the minimum necessary to ensure Bluetooth works on a
+particular build or board.
+"""
+
+import common
+from autotest_lib.server.cros.dynamic_suite import dynamic_suite
+
+dynamic_suite.reimage_and_run(
+ build=build, board=board, name='bluetooth_sanity', job=job, pool=pool,
+ check_hosts=check_hosts, add_experimental=True, num=num,
+ file_bugs=file_bugs, skip_reimage=dynamic_suite.skip_reimage(globals()),
+ devserver_url=devserver_url)