1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-09-01 19:02:31 +01:00

list command: can now filter results by supported platform

Added -p option to the list command. This alows filtering results by
supported platforms, e.g.

	wa list workloads -p linux

Also adding missing supported_platforms attribute to various extensions.
If an extension does not have this attribute, the assumption is that it
is supported by all available platforms.
This commit is contained in:
Sergei Trofimov
2015-06-16 12:49:07 +01:00
parent 53de517488
commit e7fae25821
9 changed files with 23 additions and 1 deletions

View File

@@ -60,6 +60,7 @@ class ApplaunchWorkload(Workload):
Measures the time and energy used in launching an application.
"""
supported_platforms = ['android']
parameters = [
Parameter('app', default='browser', allowed_values=['calculator', 'browser', 'calendar'],

View File

@@ -33,6 +33,7 @@ class Audio(Workload):
it plays Canon_in_D_Pieano.mp3 for 30 seconds.
"""
supported_platforms = ['android']
parameters = [
Parameter('duration', kind=int, default=30,

View File

@@ -39,6 +39,7 @@ class Dex2oatBenchmark(Workload):
"""
supported_platforms = ['android']
command_template = 'dex2oat --dex-file={} --oat-file={} --instruction-set={} --dump-timing'
run_timeout = 5 * 60

View File

@@ -28,6 +28,7 @@ class HomeScreen(Workload):
specified duration.
"""
supported_platforms = ['android']
parameters = [
Parameter('duration', kind=int, default=20,

View File

@@ -42,6 +42,7 @@ class PowerLoadtest(Workload):
See: https://www.chromium.org/chromium-os/testing/power-testing
'''
supported_platforms = ['chromeos']
parameters = [
Parameter('board', default=os.getenv('BOARD'),

View File

@@ -45,6 +45,7 @@ class VideoWorkload(Workload):
.. _Big Buck Bunny: http://www.bigbuckbunny.org/
"""
supported_platforms = ['android']
parameters = [
Parameter('play_duration', kind=int, default=20,