• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5AUTHOR = 'arakhov@chromium.org'
6NAME = 'bluetooth_SDP_ServiceSearchAttributeRequest'
7ATTRIBUTES = "suite:bluetooth, suite:bluetooth_qualification"
8SUITE = 'bluetooth,bluetooth_qualification'
9TIME = 'SHORT'
10TEST_CLASS = 'bluetooth'
11TEST_TYPE = 'Server'
12DEPENDENCIES = 'bluetooth,wificell'
13
14DOC = """
15Verify the correct behaviour of the device when executing Service Search
16Attribute transaction.
17
18The tester sends a Service Search Attribute Request to the DUT, checking:
19* non-existing Service, existing Attribute
20* existing Service, non-existing Attribute
21* non-existing Service, non-existing Attribute
22* existing Service, existing Attribute
23* various specific attributes, listed in Test Specification
24* correctness of continuation state behavior
25* responses to invalid requests
26
27This test covers the following Bluetooth SIG test cases:
28TP/SERVER/SSA/BV-01-C
29TP/SERVER/SSA/BV-02-C
30TP/SERVER/SSA/BV-03-C
31TP/SERVER/SSA/BV-04-C
32TP/SERVER/SSA/BV-06-C
33TP/SERVER/SSA/BV-07-C
34TP/SERVER/SSA/BV-08-C
35TP/SERVER/SSA/BV-09-C
36TP/SERVER/SSA/BV-10-C
37TP/SERVER/SSA/BV-11-C
38TP/SERVER/SSA/BV-12-C
39TP/SERVER/SSA/BV-13-C
40TP/SERVER/SSA/BV-14-C
41TP/SERVER/SSA/BV-15-C
42TP/SERVER/SSA/BV-16-C
43TP/SERVER/SSA/BV-17-C
44TP/SERVER/SSA/BV-18-C
45TP/SERVER/SSA/BV-19-C
46TP/SERVER/SSA/BV-20-C
47TP/SERVER/SSA/BV-21-C
48TP/SERVER/SSA/BV-22-C
49TP/SERVER/SSA/BV-23-C
50TP/SERVER/SSA/BI-01-C
51TP/SERVER/SSA/BI-02-C
52
53"""
54
55from autotest_lib.server.cros.bluetooth import bluetooth_tester
56from autotest_lib.server import utils
57
58
59args_dict = utils.args_to_dict(args)
60
61def run(machine):
62    device_host = hosts.create_host(machine)
63    tester_host = bluetooth_tester.create_host_from(device_host, args=args_dict)
64    job.run_test('bluetooth_SDP_ServiceSearchAttributeRequest',
65                 device_host=device_host,
66                 tester_host=tester_host,
67                 interactive=False)
68
69parallel_simple(run, machines)
70