1 # -*- coding: utf-8 -*- 2 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 3 # Use of this source code is governed by a BSD-style license that can be 4 # found in the LICENSE file. 5 TIME="SHORT" 6 AUTHOR = "The Chromium OS Authors" 7 DOC = """ 8 Tests that Chrontel ch7036 server is operational and available 9 """ 10 11 NAME = 'hardware_ch7036' 12 PURPOSE = 'Tests that Chrontel ch7036 server is operational and available' 13 CRITERIA = """ 14 Fails if upstart(initctl) can't be contacted or isn't running chrontel server 15 Runs some DPMS commands in attempt to perturb server 16 Fails if unable to find log open (via lsof) 17 Fails if log doesn't locate i2c device 18 Fails if log doesn't contain version string signifying fw loaded/operational 19 Fails if server restarts (pid changes) while test is running 20 """ 21 TEST_CLASS = "hardware" 22 TEST_CATEGORY = 'Functional' 23 TEST_TYPE = 'client' 24 25 job.run_test('hardware_ch7036') 26