1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-09-26 23:22:37 +01:00

Geekbench: Add support for Corporate version

The Corporate version is a specialised version of Geekbench. It has
different package names and does not require dismissing a EULA. The
new corporate version is added as a distinct
benchmark ("geekbench-corporate" vs "geekbench").

Note that this changes the wait-for-results UiAutomator snippet from
looking for "Running Benchmarks..." to "*Running*". This is because
the version I've tested updates the text widget with the name of each
benchmark phase as it is run. However I don't know if this is a
feature of the Corporate version or simply of Geekbench 4.1.0.
This commit is contained in:
Brendan Jackman
2017-07-04 11:58:42 +01:00
parent 4d7ef408c9
commit 0656e61bc2
3 changed files with 28 additions and 5 deletions

View File

@@ -97,6 +97,8 @@ class Geekbench(AndroidUiAutoBenchmark):
'manually later.')),
]
is_corporate = False
@property
def activity(self):
return self.versions[self.version]['activity']
@@ -109,6 +111,7 @@ class Geekbench(AndroidUiAutoBenchmark):
super(Geekbench, self).__init__(device, **kwargs)
self.uiauto_params['version'] = self.version
self.uiauto_params['times'] = self.times
self.uiauto_params['is_corporate'] = self.is_corporate
self.run_timeout = self.timeout * self.times
self.exact_apk_version = self.version
@@ -384,6 +387,22 @@ class GBScoreCalculator(object):
context.result.add_metric('Geekbench Score', int(overall_score))
class GeekbenchCorproate(Geekbench):
name = "geekbench-corporate"
is_corporate = True
versions = ['4.1.0']
# The activity name for this version doesn't match the package name
activity = 'com.primatelabs.geekbench.HomeActivity'
package = 'com.primatelabs.geekbench4.corporate'
parameters = [
Parameter('version',
default=sorted(versions)[-1], allowed_values=versions,
override=True)
]
def namemify(basename, i):
return basename + (' {}'.format(i) if i else '')