Home | History | Annotate | Download | only in brillo_MemorySizeTest
      1 # Copyright 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 import logging
      5 
      6 from autotest_lib.client.common_lib import utils
      7 
      8 
      9 AUTHOR = 'garnold'
     10 NAME = 'brillo_MemorySizeTest'
     11 TIME = 'SHORT'
     12 TEST_CATEGORY = 'Functional'
     13 TEST_TYPE = 'Server'
     14 ATTRIBUTES = 'suite:brillo-bvt,suite:brillo-smoke'
     15 SUITE = 'brillo-bvt,brillo-smoke'
     16 
     17 DOC = """
     18 Tests whether a Brillo device has sufficient memory.
     19 """
     20 
     21 TEST_ARG_NAMES = ('min_total', 'min_free')
     22 args_dict = utils.args_to_dict(args)
     23 
     24 def run(machine):
     25     test_args = {name: args_dict[name] for name in TEST_ARG_NAMES
     26                  if name in args_dict}
     27     job.run_test('brillo_MemorySizeTest', host=hosts.create_host(machine),
     28                  **test_args)
     29 
     30 
     31 parallel_simple(run, machines)
     32