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 5AUTHOR = "ChromeOS Team" 6NAME = "power_CPUFreq" 7PURPOSE = "Verify that supported CPU frequencies can be set." 8CRITERIA = """ 9This 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""" 14ATTRIBUTES = "suite:power_build" 15TIME = "SHORT" 16TEST_CATEGORY = "Functional" 17TEST_CLASS = "power" 18TEST_TYPE = "client" 19PY_VERSION = 3 20 21DOC = """ 22This test will read the supporting frequencies from the file 23scaling_available_governors, and attempt to set the system to use each supported 24frequency by writing to files scaling_max_freq, scaling_min_freq, and 25scaling_setspeed. All files are located under: 26 /sys/devices/system/cpu/cpu*/cpufreq/ 27""" 28 29job.run_test('power_CPUFreq') 30