1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-10-30 14:44:09 +00:00

New target description + moving target stuff under "framework"

Changing the way target descriptions work from a static mapping to
something that is dynamically generated and is extensible via plugins.
Also moving core target implementation stuff under "framework".
This commit is contained in:
Sergei Trofimov
2017-03-06 11:10:25 +00:00
parent 18d001fd76
commit 42539bbe0d
43 changed files with 6229 additions and 2586 deletions

View File

@@ -18,7 +18,7 @@
import os
import re
from wa import Workload, Parameter, ConfigError, runmethod
from wa import Workload, Parameter, ConfigError
this_dir = os.path.dirname(__file__)
@@ -62,7 +62,6 @@ class Dhrystone(Workload):
description='The processes spawned by sysbench will be pinned to cores as specified by this parameter'),
]
@runmethod
def initialize(self, context):
host_exe = os.path.join(this_dir, 'dhrystone')
Dhrystone.target_exe = self.target.install(host_exe)
@@ -118,7 +117,6 @@ class Dhrystone(Workload):
context.add_metric('total DMIPS', total_dmips)
context.add_metric('total score', total_score)
@runmethod
def finalize(self, context):
self.target.uninstall('dhrystone')