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