summaryrefslogtreecommitdiff
path: root/linpack/vc.py
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 /linpack/vc.py
parent57f691897dfaff13c54cda6e21dfe91e25d86c13 (diff)
Add support to run multiple benchmarks together
Change-Id: I38500396f976630a80b011d73c0bed62b6a7d7bd Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
Diffstat (limited to 'linpack/vc.py')
-rw-r--r--linpack/vc.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/linpack/vc.py b/linpack/vc.py
index aa96833..92f72b2 100644
--- a/linpack/vc.py
+++ b/linpack/vc.py
@@ -6,6 +6,9 @@ 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}
@@ -26,8 +29,8 @@ while not start_single_button:
mflops_single_score = vc.findViewByIdOrRaise("com.greenecomputing.linpack:id/txtmflops_result")
time_single_score = vc.findViewByIdOrRaise("com.greenecomputing.linpack:id/txttime_result")
-call(['lava-test-case', '"Linpack MFLOPS Single Score"', '--result', 'pass', '--measurement', mflops_single_score.getText(), '--units', 'MFLOPS'])
-call(['lava-test-case', '"Linpack Time Single Score"', '--result', 'pass', '--measurement', time_single_score.getText(), '--units', 'seconds'])
+call([f_output_result, 'LinpackMFLOPSSingleScore', 'pass', mflops_single_score.getText(), 'MFLOPS'])
+call([f_output_result, 'LinpackTimeSingleScore', 'pass', time_single_score.getText(), 'seconds'])
start_multi_button = vc.findViewByIdOrRaise("com.greenecomputing.linpack:id/btncalculate")
start_multi_button.touch()
@@ -42,5 +45,5 @@ while not start_single_button:
mflops_multi_score = vc.findViewByIdOrRaise("com.greenecomputing.linpack:id/txtmflops_result")
time_multi_score = vc.findViewByIdOrRaise("com.greenecomputing.linpack:id/txttime_result")
-call(['lava-test-case', '"Linpack MFLOPS Multi Score"', '--result', 'pass', '--measurement', mflops_multi_score.getText(), '--units', 'MFLOPS'])
-call(['lava-test-case', '"Linpack Time Multi Score"', '--result', 'pass', '--measurement', time_multi_score.getText(), '--units', 'seconds'])
+call([f_output_result, 'LinpackMFLOPSMultiScore', 'pass', mflops_multi_score.getText(), 'MFLOPS'])
+call([f_output_result, 'LinpackTimeMultiScore', 'pass', time_multi_score.getText(), 'seconds'])