Lines Matching refs:write

19   --part                 Don\'t write CxxTest globals
63 sys.stderr.write( usageString() )
72 sys.stderr.write( '\n' )
73 sys.stderr.write( problem )
74 sys.stderr.write( '\n\n' )
144 sys.stdout.write( "This is CxxTest version 3.10.1.\n" )
248 sys.stdout.write( "%s:%s: Warning: Inline test suites are deprecated.\n" % (fileName, lineNo) )
378 output.write( line )
384 output.write( line )
389 '''Create output file and write header'''
394 output.write( "/* Generated file, do not edit */\n\n" )
402 output.write( "#ifndef CXXTEST_RUNNING\n" )
403 output.write( "#define CXXTEST_RUNNING\n" )
404 output.write( "#endif\n" )
405 output.write( "\n" )
407 output.write( "#define _CXXTEST_HAVE_STD\n" )
409 output.write( "#define _CXXTEST_HAVE_EH\n" )
411 output.write( "#define _CXXTEST_ABORT_TEST_ON_FAIL\n" )
413 output.write( "#define _CXXTEST_LONGLONG %s\n" % longlong )
415 output.write( "#define _CXXTEST_FACTOR\n" )
417 output.write( "#include %s\n" % header )
418 output.write( "#include <cxxtest/TestListener.h>\n" )
419 output.write( "#include <cxxtest/TestTracker.h>\n" )
420 output.write( "#include <cxxtest/TestRunner.h>\n" )
421 output.write( "#include <cxxtest/RealDescriptions.h>\n" )
423 output.write( "#include <cxxtest/%s.h>\n" % runner )
425 output.write( "#include <cxxtest/%s.h>\n" % gui )
426 output.write( "\n" )
432 output.write( 'int main( int argc, char *argv[] ) {\n' )
434 output.write( ' CxxTest::initialize();\n' )
435 output.write( ' return CxxTest::GuiTuiRunner<CxxTest::%s, CxxTest::%s>( argc, argv ).run();\n' % (gui, runner) )
436 output.write( '}\n' )
438 output.write( 'int main() {\n' )
440 output.write( ' CxxTest::initialize();\n' )
441 output.write( ' return CxxTest::%s().run();\n' % runner )
442 output.write( '}\n' )
489 output.write( 'class %s : public CxxTest::TestSuite {\n' % suite['name'] )
490 output.write( 'public:\n' )
492 output.write(line)
493 output.write( '};\n\n' )
498 output.write( 'static %s *%s;\n\n' % (suite['name'], suite['object']) )
500 output.write( 'static %s *%s = 0;\n\n' % (suite['name'], suite['object']) )
509 output.write( 'static CxxTest::List %s;\n' % suite['tlist'] )
511 output.write( 'static CxxTest::List %s = { 0, 0 };\n' % suite['tlist'] )
520 output.write( 'static class %s : public CxxTest::RealTestDescription {\n' % test['class'] )
521 output.write( 'public:\n' )
523 output.write( ' %s() : CxxTest::RealTestDescription( %s, %s, %s, "%s" ) {}\n' %
525 output.write( ' void runTest() { %s }\n' % runBody( suite, test ) )
526 output.write( '} %s;\n\n' % test['object'] )
550 output.write( 'CxxTest::DynamicSuiteDescription<%s> %s' % (suite['name'], suite['dobject']) )
552 output.write( '( %s, %s, "%s", %s, %s, %s, %s )' %
555 output.write( ';\n\n' )
559 output.write( 'CxxTest::StaticSuiteDescription %s' % suite['dobject'] )
561 output.write( '( %s, %s, "%s", %s, %s )' %
563 output.write( ';\n\n' )
567 output.write( '#include <cxxtest/Root.cpp>\n' )
571 output.write( 'namespace CxxTest {\n' )
572 output.write( ' void initialize()\n' )
573 output.write( ' {\n' )
575 output.write( ' %s.initialize();\n' % suite['tlist'] )
577 output.write( ' %s = 0;\n' % suite['object'] )
578 output.write( ' %s.initialize( %s, %s, "%s", %s, %s, %s, %s );\n' %
582 output.write( ' %s.initialize( %s, %s, "%s", %s, %s );\n' %
587 output.write( ' %s.initialize( %s, %s, %s, "%s" );\n' %
590 output.write( ' }\n' )
591 output.write( '}\n' )