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