root/branches/Carsten_PtrWork2/Tools/UnitTestRunner.cpp

Revision 891, 385 bytes (checked in by dirk, 1 year ago)

Added ability to only run named suite

Line 
1 #include <UnitTest++.h>
2 #include <TestReporterStdout.h>
3
4 #include <OpenSG/OSGConfig.h>
5 #include <OpenSG/OSGBaseInitFunctions.h>
6
7 int main(int argc, char *argv[])
8 {
9     OSG::osgInit(argc, argv);
10    
11     if(argc < 2)
12         return UnitTest::RunAllTests();
13    
14     UnitTest::TestReporterStdout rep;
15    
16     return UnitTest::RunAllTests(rep, UnitTest::Test::GetTestList(), argv[1]);
17 }
Note: See TracBrowser for help on using the browser.