00001 /*============================================================================== 00002 * FILE: FrontendTest.cc 00003 * OVERVIEW: Provides the implementation for the FrontendTest class, which 00004 * tests the FrontEnd and related classes 00005 *============================================================================*/ 00006 /* 00007 * $Revision: 1.5 $ 00008 * 00009 * 05 Apr 02 - Mike: Created 00010 */ 00011 00012 #define HELLO_SPARC "test/sparc/hello" 00013 #define HELLO_PENTIUM "test/pentium/hello" 00014 #define HELLO_HPPA "test/hppa/hello" 00015 #define STARTER_PALM "test/mc68328/Starter.prc" 00016 00017 #include "FrontendTest.h" 00018 #include "prog.h" 00019 #include <sstream> 00020 00021 /*============================================================================== 00022 * FUNCTION: FrontendTest::registerTests 00023 * OVERVIEW: Register the test functions in the given suite 00024 * PARAMETERS: Pointer to the test suite 00025 * RETURNS: <nothing> 00026 *============================================================================*/ 00027 #define MYTEST(name) \ 00028 suite->addTest(new CppUnit::TestCaller<FrontendTest> ("testExp", \ 00029 &FrontendTest::name, *this)) 00030 00031 void FrontendTest::registerTests(CppUnit::TestSuite* suite) { 00032 MYTEST(test1); 00033 } 00034 00035 int FrontendTest::countTestCases () const 00036 { return 3; } // ? What's this for? 00037 00038 /*============================================================================== 00039 * FUNCTION: FrontendTest::setUp 00040 * OVERVIEW: Set up anything needed before all tests 00041 * NOTE: Called before any tests 00042 * PARAMETERS: <none> 00043 * RETURNS: <nothing> 00044 *============================================================================*/ 00045 void FrontendTest::setUp () { 00046 } 00047 00048 /*============================================================================== 00049 * FUNCTION: FrontendTest::tearDown 00050 * OVERVIEW: Delete objects created in setUp 00051 * NOTE: Called after all tests 00052 * PARAMETERS: <none> 00053 * RETURNS: <nothing> 00054 *============================================================================*/ 00055 void FrontendTest::tearDown () { 00056 } 00057 00058 /*============================================================================== 00059 * FUNCTION: FrontendTest::test1 00060 * OVERVIEW: Test loading the sparc hello world program 00061 *============================================================================*/ 00062 void FrontendTest::test1 () { 00063 } 00064