• Home
  • 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_ServiceSearchRequestBasic'
7ATTRIBUTES = "suite:bluetooth, suite:bluetooth_qualification"
8TIME = 'SHORT'
9TEST_CLASS = 'bluetooth'
10TEST_TYPE = 'Server'
11DEPENDENCIES = 'bluetooth,wificell'
12
13DOC = """
14Verify the correct behaviour of the device when searching for services.
15
16The tester sends a Service Search Request to the DUT, searching the UUID of
17SDP Server Service, which is known to exist.
18Tester also searchs for Service Class ID = 0x0001, which should never exist.
19In order to verify the correct behaviour of continuation state, some number of
20fake Bluetooth services are registered on the device. This is needed to create
21a request with a very long response, and to force the SDP server on the device
22to use this continuation state functionality.
23The tester also sends Service Search Requests with intentionally invalid PDU
24size parameter and with generally incorrect syntax to verify that the IUT reacts
25correctly in these cases.
26
27This test covers the following Bluetooth SIG test cases:
28TP/SERVER/SS/BV-01-C
29TP/SERVER/SS/BV-03-C
30TP/SERVER/SS/BV-04-C
31TP/SERVER/SS/BI-01-C
32TP/SERVER/SS/BI-02-C
33"""
34
35from autotest_lib.server.cros.bluetooth import bluetooth_tester
36from autotest_lib.server import utils
37
38
39args_dict = utils.args_to_dict(args)
40
41def run(machine):
42    device_host = hosts.create_host(machine)
43    tester_host = bluetooth_tester.create_host_from(device_host, args=args_dict)
44    job.run_test('bluetooth_SDP_ServiceSearchRequestBasic',
45                 device_host=device_host,
46                 tester_host=tester_host,
47                 interactive=False)
48
49parallel_simple(run, machines)
50