summaryrefslogtreecommitdiff
path: root/linpack/run.py
diff options
context:
space:
mode:
Diffstat (limited to 'linpack/run.py')
-rw-r--r--linpack/run.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/linpack/run.py b/linpack/run.py
index 3463222..4879a9a 100644
--- a/linpack/run.py
+++ b/linpack/run.py
@@ -34,8 +34,9 @@ def main():
else:
print "connect to the device: " + dev_id
- #device.shell("echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor")
- #device.shell("echo performance > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor")
+ device.shell("echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor")
+ device.shell("echo performance > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor")
+
srcfile = os.path.realpath(os.path.dirname(__file__))+'/com.greenecomputing.linpack-1.apk'
device.installPackage(srcfile)
@@ -45,6 +46,8 @@ def main():
device.startActivity(component='com.greenecomputing.linpack/.Linpack')
MonkeyRunner.sleep(5)
+ device.shell("am kill-all")
+ MonkeyRunner.sleep(2)
device.press("KEYCODE_DPAD_UP", MonkeyDevice.DOWN_AND_UP)
device.press("KEYCODE_DPAD_UP", MonkeyDevice.DOWN_AND_UP)
device.press("KEYCODE_DPAD_DOWN", MonkeyDevice.DOWN_AND_UP)
@@ -55,7 +58,7 @@ def main():
device.press("KEYCODE_DPAD_CENTER",MonkeyDevice.DOWN_AND_UP)
print "Running Linpack_ST"
- MonkeyRunner.sleep(5)
+ MonkeyRunner.sleep(10)
take_snapshot(device)
device.press("KEYCODE_DPAD_UP",MonkeyDevice.DOWN_AND_UP)
@@ -70,7 +73,7 @@ def main():
MonkeyRunner.sleep(1)
device.press("KEYCODE_DPAD_CENTER",MonkeyDevice.DOWN_AND_UP)
print "Running Linpack_MT"
- MonkeyRunner.sleep(5)
+ MonkeyRunner.sleep(10)
take_snapshot(device)
device.removePackage("com.greenecomputing.linpack")