From 11b3ba6ed690e07e3a3b9da5e9cddde58e48719d Mon Sep 17 00:00:00 2001 From: Yongqin Liu Date: Mon, 9 Mar 2015 23:52:06 +0800 Subject: Add support to run multiple benchmarks together Change-Id: I38500396f976630a80b011d73c0bed62b6a7d7bd Signed-off-by: Yongqin Liu --- scimark/vc.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'scimark') 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: -- cgit v1.2.3