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