summaryrefslogtreecommitdiff
path: root/scimark
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2015-03-09 23:52:06 +0800
committerYongqin Liu <yongqin.liu@linaro.org>2015-03-16 01:11:30 +0800
commit11b3ba6ed690e07e3a3b9da5e9cddde58e48719d (patch)
tree0c2b6f473e4ea1f59fd5c6870dd5756e1d62a4a2 /scimark
parent57f691897dfaff13c54cda6e21dfe91e25d86c13 (diff)
Add support to run multiple benchmarks together
Change-Id: I38500396f976630a80b011d73c0bed62b6a7d7bd Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
Diffstat (limited to 'scimark')
-rw-r--r--scimark/vc.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/scimark/vc.py b/scimark/vc.py
index 40f1d0a..a8a7eb9 100644
--- a/scimark/vc.py
+++ b/scimark/vc.py
@@ -6,12 +6,16 @@ from subprocess import call
from com.dtmilano.android.viewclient import ViewClient, ViewNotFoundException
+parent_dir = os.path.realpath(os.path.dirname(__file__))
+f_output_result="%s/../common/output-test-result.sh" % parent_dir
+
kwargs1 = {'verbose': False, 'ignoresecuredevice': False}
device, serialno = ViewClient.connectToDeviceOrExit(**kwargs1)
kwargs2 = {'startviewserver': True, 'forceviewserveruse': False, 'autodump': False, 'ignoreuiautomatorkilled': True, 'compresseddump': False}
vc = ViewClient(device, serialno, **kwargs2)
-vc.dump()
+time.sleep(5)
+vc.dump()
btn_java_bench = vc.findViewWithTextOrRaise(u'Java bench')
btn_java_bench.touch()
@@ -32,7 +36,7 @@ while(not finished):
if key_val[0].strip() in keys:
key = key_val[0].strip().replace(' ', '_').replace('(', '').replace(')', '').replace(',', '')
print "%s=%s" % (key, key_val[1].strip())
- call(['lava-test-case', key, '--result', 'pass', '--measurement', key_val[1].strip(), '--units', 'Mflops'])
+ call([f_output_result, key, 'pass', key_val[1].strip(), 'Mflops'])
except ViewNotFoundException:
pass
except RuntimeError: