Example #1
0
 def generateTargets(self):
   # Load the created project and generate each target
   options, args = Options.parseCommandLine(["-c", "tracytest.tcy", "-o", "tracytest"])
   proj = Project.Project(options, "tracytest.tcy")
   for target in Target.targets:
     assert target in proj.targets
     try:
       TracyGenerator.generate(proj, options, [target])
       assert os.path.exists("tracytest")
     except RuntimeError:
       if target not in ["code"]:
         raise
Example #2
0
 def generateTargets(self):
     # Load the created project and generate each target
     options, args = Options.parseCommandLine(
         ["-c", "tracytest.tcy", "-o", "tracytest"])
     proj = Project.Project(options, "tracytest.tcy")
     for target in Target.targets:
         assert target in proj.targets
         try:
             TracyGenerator.generate(proj, options, [target])
             assert os.path.exists("tracytest")
         except RuntimeError:
             if target not in ["code"]:
                 raise