• 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_ServiceAttributeRequest'
7ATTRIBUTES = 'suite:bluetooth, suite:bluetooth_e2e'
8TIME = 'SHORT'
9TEST_CLASS = 'bluetooth'
10TEST_TYPE = 'Server'
11DEPENDENCIES = 'bluetooth, chameleon:bt_peer'
12DOC = """
13Verify the correct behaviour of the device when searching for attributes of
14services.
15
16The tester sends Service Search Request and Service Attribute Request to the DUT
17to ensure that it is able to response with different attributes:
18ServiceRecordHandle, BrowseGroupList, DocumentationURL, ClientExecutableURL,
19IconURL, ProtocolDescriptorList, VersionNumberList, ServiceDatabaseState,
20BluetoothProfileDescriptorList, AdditionalProtocolDescriptorLists, ServiceID,
21ServiceRecordState, ServiceInfoTime, LanguageBaseAttributeIdList,
22ServiceAvailability, ServiceName, ServiceDescription, ProviderName.
23It also checks that responses with continuation state work properly,
24as well as requests with non-existing attributes and various invalid requests.
25
26This test covers the Bluetooth SIG test cases:
27TP/SERVER/SA/BV-01-C
28TP/SERVER/SA/BV-03-C
29TP/SERVER/SA/BV-04-C
30TP/SERVER/SA/BV-05-C
31TP/SERVER/SA/BV-06-C
32TP/SERVER/SA/BV-07-C
33TP/SERVER/SA/BV-08-C
34TP/SERVER/SA/BV-09-C
35TP/SERVER/SA/BV-10-C
36TP/SERVER/SA/BV-11-C
37TP/SERVER/SA/BV-12-C
38TP/SERVER/SA/BV-13-C
39TP/SERVER/SA/BV-14-C
40TP/SERVER/SA/BV-15-C
41TP/SERVER/SA/BV-16-C
42TP/SERVER/SA/BV-17-C
43TP/SERVER/SA/BV-18-C
44TP/SERVER/SA/BV-19-C
45TP/SERVER/SA/BV-20-C
46TP/SERVER/SA/BV-21-C
47TP/SERVER/SA/BI-01-C
48TP/SERVER/SA/BI-02-C
49TP/SERVER/SA/BI-03-C
50"""
51
52from autotest_lib.server.cros.bluetooth import bluetooth_tester
53from autotest_lib.server import utils
54
55
56args_dict = utils.args_to_dict(args)
57
58def run(machine):
59    device_host = hosts.create_host(machine)
60    tester_host = bluetooth_tester.create_host_from(device_host, args=args_dict)
61    job.run_test('bluetooth_SDP_ServiceAttributeRequest',
62                 device_host=device_host,
63                 tester_host=tester_host,
64                 interactive=False)
65
66parallel_simple(run, machines)
67