|  | # 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 = "ChromeOS Team" | 
|  | NAME = "power_CPUFreq" | 
|  | PURPOSE = "Verify that supported CPU frequencies can be set." | 
|  | CRITERIA = """ | 
|  | This test will fail under the following conditions: | 
|  | - cpu frequencies are not supported | 
|  | - no more than 1 frequency is supported | 
|  | - if a supported frequency cannot be set | 
|  | """ | 
|  | ATTRIBUTES = "suite:power_build" | 
|  | TIME = "SHORT" | 
|  | TEST_CATEGORY = "Functional" | 
|  | TEST_CLASS = "power" | 
|  | TEST_TYPE = "client" | 
|  | PY_VERSION = 3 | 
|  |  | 
|  | DOC = """ | 
|  | This test will read the supporting frequencies from the file | 
|  | scaling_available_governors, and attempt to set the system to use each supported | 
|  | frequency by writing to files scaling_max_freq, scaling_min_freq, and | 
|  | scaling_setspeed. All files are located under: | 
|  | /sys/devices/system/cpu/cpu*/cpufreq/ | 
|  | """ | 
|  |  | 
|  | job.run_test('power_CPUFreq') |