Commit 4c757f1a authored by Martin Kepplinger's avatar Martin Kepplinger
Browse files

pytests: Add test_devfreq.py for testing the memory devfreq driver


Signed-off-by: Martin Kepplinger's avatarMartin Kepplinger <martin.kepplinger@puri.sm>
parent 23f5ef51
import os
def test_devfreq_ddr():
"Ensure ddr devfreq driver is present"
assert(os.path.exists('/sys/class/devfreq/3d400000.memory-controller'))
def test_devfreq_freq():
assert("25000000" in open("/sys/class/devfreq/3d400000.memory-controller/min_freq").read())
assert("800000000" in open("/sys/class/devfreq/3d400000.memory-controller/max_freq").read())
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment