]> begriffs open source - cmsis/blob - CMSIS/CoreValidation/Tests/buildutils/fvpcmd.py
CoreValidation: Added validation test projects for Cortex-A9.
[cmsis] / CMSIS / CoreValidation / Tests / buildutils / fvpcmd.py
1 #! python
2
3 from buildcmd import BuildCmd
4
5 class FvpCmd(BuildCmd):
6
7   def __init__(self, model, app, **args):
8     BuildCmd.__init__(self)
9     self._model = model
10     self._app = app
11     self._args = args
12     
13   def getCommand(self):
14     return self._model
15     
16   def getArguments(self):
17     args = []
18     if 'limit' in self._args:  args += [ "--cyclelimit", self._args['limit'] ] 
19     if 'config' in self._args: args += [ "-f", self._args['config'] ]
20     if 'target' in self._args:
21       for a in self._app:
22         args += [ "-a", "{0}={1}".format(self._args['target'], a ) ]
23     else:
24       args += [ self._app[0] ]
25     return args
26