00001 // Unit Test Runner for libgig (text only version) 00002 // ----------------------------------------------- 00003 // 00004 // This console application is used to run all written tests against current 00005 // libgig codebase. Progress of the test runs and the final result will be 00006 // printed out as simple text on the console. 00007 // 00008 // The test runner is not compiled by default (means by just running 'make' 00009 // or 'make all' at the top level directory), you have to compile it 00010 // explicitly by running 'make tests' in the toplevel directory or 00011 // 'make libgigtests' in this source directory. Note: you need to have 00012 // cppunit installed on your system to be able to compile the unit tests. 00013 // 00014 // This file usually doesn't have to be changed, especially not for adding 00015 // new tests ! 00016 00017 #include <cppunit/extensions/TestFactoryRegistry.h> 00018 #include <cppunit/ui/text/TestRunner.h> 00019 00020 int main(int argc, char** argv) { 00021 CppUnit::TextUi::TestRunner runner; 00022 CppUnit::TestFactoryRegistry ®istry = CppUnit::TestFactoryRegistry::getRegistry(); 00023 runner.addTest( registry.makeTest() ); 00024 bool wasSuccessful = runner.run( "", false ); 00025 return wasSuccessful; 00026 }