Lines Matching refs:file
2 '''Usage: %s [OPTIONS] <input file(s)>
3 Generate test source file for CxxTest.
6 -o, --output=NAME Write output to file NAME
16 --template=TEMPLATE Use TEMPLATE file to generate the test runner
164 '''Convert backslashes to slashes in file name'''
169 for file in files:
170 scanInputFile(file)
176 '''Scan single input file for test suites'''
177 file = open(fileName)
180 line = file.readline()
187 file.close()
251 def startSuite( name, file, line, generated ):
256 'file' : file,
257 'cfile' : cstr(file),
299 '''Change all [E]TS_ macros used in a line to _[E]TS_ macros with the correct file/line'''
324 abort( '%s:%s: %sSuite() already declared' % ( suite['file'], str(line), which ) )
340 (suite['file'], suite['create'], suite['name']) )
343 (suite['file'], suite['destroy'], suite['name']) )
351 '''Create output file'''
369 '''Create output based on template file'''
389 '''Create output file and write header'''
394 output.write( "/* Generated file, do not edit */\n\n" )
460 writeInclude( output, suite['file'] )
480 def writeInclude(output, file):
481 '''Add #include "file" statement'''
483 if file == lastIncluded: return
484 output.writelines( [ '#include "', file, '"\n\n' ] )
485 lastIncluded = file