]> begriffs open source - cmsis/blob - CMSIS/CoreValidation/Tests/buildutils/rtecmd.py
CoreValidation: Added basic lint configuration for validation tests.
[cmsis] / CMSIS / CoreValidation / Tests / buildutils / rtecmd.py
1 #! python
2
3 import os
4 import shutil
5 from buildcmd import BuildCmd
6 from datetime import datetime
7 import mmap
8
9 class RteCmd(BuildCmd):
10
11   def __init__(self, project, config, subcmd = "build"):
12     BuildCmd.__init__(self)
13     self._project = project
14     self._config = config
15     self._subcmd = subcmd
16
17   def getCommand(self):
18     return "python.exe"
19     
20   def getArguments(self):
21     return [ os.path.normpath(shutil.which("rtebuild.py")), "-c", os.path.abspath(self._project), "-t", self._config, self._subcmd ]
22
23   def needsShell(self):
24     return True
25     
26   def isSuccess(self):
27     return self._result == 0
28
29   def getLog(self):
30       return None