blob: c3afa14700cbe3f56603bdd9c9886014408e9c12 [file] [log] [blame]
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
AUTHOR = "Chrome OS Team"
NAME = "hardware_Xrandr"
PURPOSE = 'Verify that Xrandr is able to turn the screen on/off.'
CRITERIA = """
If Xrandr cannot turn the screen on/off, the test will fail.
If the Xrandr time takes more than one second, the test will fail.
"""
SUITE = "hwqual"
TIME = "MEDIUM"
TEST_CATEGORY = "Functional"
TEST_CLASS = "hardware"
TEST_TYPE = "client"
DOC = """
Call "xrandr --output [OUTPUT] --auto/--on" to turn screen off/on 500 times.
"""
# TODO(crosbug.com/p/15219): Fix xrandr so that we can run it 500x.
job.run_test('hardware_Xrandr',
num_iterations=500,
constraints=['s_internal_off_max_time <= 1.0',
's_internal_on_max_time <= 1.0'])