• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2015 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 = "chromeos-moblab@google.com"
6NAME = "moblab_DummyServerSuite"
7PURPOSE = "Test that Moblab can run the Dummy Server suite."
8ATTRIBUTES = "suite:moblab_quick"
9SUITE = "moblab_quick"
10TIME = "MEDIUM"
11TEST_CATEGORY = "Functional"
12TEST_CLASS = "moblab"
13TEST_TYPE = "server"
14# moblab_RunSuite requires .boto file from drone. Disable SSP for this test as
15# it has dependency on lab infrastructure.
16REQUIRE_SSP = False
17
18DOC = """
19Kicks off the Dummy Server suite on a Moblab host against the DUTs on its
20subnet and ensures the suite completes successfully.
21
22To invole this test locally:
23  test_that -b stumpy_moblab <remote> moblab_DummyServerSuite
24  --args="<ARGLIST>"
25
26where ARGLIST is a whitespace separated list of the following key=value pairs.
27Values pertaining to the test case include:
28
29  boto_path=<boto_path>                path to the boto file to be installed on
30                                       the Moblab DUT. If not specified, the
31                                       boto file in the current home directory
32                                       will be installed if it exists.
33  image_storage_server=<server_name>   Google Storage Bucket from which to
34                                       fetch test images from. If not
35                                       specified, the value will be fetched
36                                       from global_config.
37"""
38from autotest_lib.client.common_lib import utils
39
40def run(machine):
41    host = hosts.create_host(machine)
42    args_dict = utils.args_to_dict(args)
43    job.run_test('moblab_RunSuite', host=host, suite_name='dummy_server',
44                 **args_dict)
45
46parallel_simple(run, machines)
47