30 int testMain(
int argc,
char** argv );
32 #ifndef mMainIsDefined 33 #define mMainIsDefined 34 int main(
int argc,
char** argv)
40 static mUsedVar
bool quiet =
true;
55 #define mInitTestProg() \ 56 od_init_test_program( argc, argv ); \ 57 theparser = new CommandLineParser; \ 58 CommandLineParser& clparser = *theparser; \ 59 quiet = clparser.hasKey( sKey::Quiet() ) 61 #define mExitTestProg( var ) 63 #define mInitBatchTestProg() \ 64 int argc = GetArgC(); char** argv = GetArgV(); \ 67 #define mRunStandardTestWithError( test, desc, err ) \ 69 od_ostream::logStream() << desc; \ 73 od_ostream::logStream() << " - SUCCESS\n"; \ 78 od_ostream::logStream() << desc; \ 79 od_ostream::logStream() << " - FAIL"; \ 81 od_ostream::logStream() << ": " << err << "\n"; \ 86 #define mRunStandardTest( test, desc ) \ 87 mRunStandardTestWithError( test, desc, BufferString().str() ) int testMain(int argc, char **argv)
OD class for stream write common access to the user log file, or std::cout in batch progs...
Definition: od_ostream.h:25
static od_ostream & logStream()
used by ErrMsg and UsrMsg
static mUsedVar PtrMan< CommandLineParser > theparser
Definition: testprog.h:41
static mUsedVar od_ostream & tstStream(bool err=false)
Definition: testprog.h:43
static mUsedVar bool quiet
Definition: testprog.h:40
int main(int argc, char **argv)
Definition: testprog.h:34
static od_ostream & nullStream()