testDbase.cpp

Go to the documentation of this file.
00001 /*==============================================================================
00002  * FILE:       testDbase.cc
00003  * OVERVIEW:   Command line test of the Exp and related classes.
00004  *============================================================================*/
00005 /*
00006  * $Revision: 1.2 $
00007  *    Apr 02 - Mike: Created
00008  * 03 Apr 02 - Mike: Modified to use CppUnit 1.6.2.
00009  * 18 Apr 02 - Mike: Test prog as well
00010  * 13 May 02 - Mike: Added RtlTest and ParserTest
00011  * 04 Jul 02 - Mike: Move UtilTest here as TypeTest
00012 */
00013 
00014 
00015 #include "cppunit/TextTestResult.h"
00016 #include "cppunit/TestSuite.h"
00017 
00018 #include "exp.h"
00019 
00020 #include "ExpTest.h"
00021 #include "ProgTest.h"
00022 #include "ProcTest.h"
00023 #include "RtlTest.h"
00024 #include "ParserTest.h"
00025 #include "TypeTest.h"
00026 
00027 #include <sstream>
00028 #include <iostream>
00029 
00030 int main(int argc, char** argv)
00031 {
00032     CppUnit::TestSuite suite;
00033 
00034     ExpTest  expt("ExpTest");
00035     ProgTest progt("ProgTest");
00036     ProcTest proct("ProcTest");
00037     RtlTest rtlt("RtlTest");
00038     ParserTest parsert("ParserTest");
00039     TypeTest typet("TypeTest");
00040 
00041     expt.registerTests(&suite);
00042     progt.registerTests(&suite);
00043     proct.registerTests(&suite);
00044     rtlt.registerTests(&suite);
00045     parsert.registerTests(&suite);
00046     typet.registerTests(&suite);
00047 
00048     CppUnit::TextTestResult res;
00049 
00050     suite.run( &res );
00051     std::cout << res << std::endl;
00052 
00053     return 0;
00054 }

Generated on Tue Sep 19 21:18:34 2006 for Boomerang by  doxygen 1.4.6