1 # Copyright (c) 2012 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 = "Chrome OS Team" 6 NAME = "power_CPUFreq" 7 PURPOSE = "Verify that supported CPU frequencies can be set." 8 CRITERIA = """ 9 This test will fail under the following conditions: 10 - cpu frequencies are not supported 11 - no more than 1 frequency is supported 12 - if a supported frequency cannot be set 13 """ 14 ATTRIBUTES = "suite:hwqual, suite:power_build" 15 TIME = "SHORT" 16 TEST_CATEGORY = "Functional" 17 TEST_CLASS = "power" 18 TEST_TYPE = "client" 19 20 DOC = """ 21 This test will read the supporting frequencies from the file 22 scaling_available_governors, and attempt to set the system to use each supported 23 frequency by writing to files scaling_max_freq, scaling_min_freq, and 24 scaling_setspeed. All files are located under: 25 /sys/devices/system/cpu/cpu*/cpufreq/ 26 """ 27 28 job.run_test('power_CPUFreq') 29