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

Updated dhrystone to use the new resource resoultion mechanics.

This commit is contained in:
Sergei Trofimov
2017-03-21 16:00:40 +00:00
parent 15886ffa29
commit 84c1fc2bcf
7 changed files with 5 additions and 24 deletions

View File

@@ -18,10 +18,7 @@
import os
import re
from wa import Workload, Parameter, ConfigError
this_dir = os.path.dirname(__file__)
from wa import Workload, Parameter, ConfigError, Executable
class Dhrystone(Workload):
@@ -75,7 +72,8 @@ class Dhrystone(Workload):
]
def initialize(self, context):
host_exe = os.path.join(this_dir, 'dhrystone')
resource = Executable(self, self.target.abi, 'dhrystone')
host_exe = context.resolver.get(resource)
Dhrystone.target_exe = self.target.install(host_exe)
def setup(self, context):