#include <osg/Export>#include <osg/Referenced>#include <osg/ref_ptr>#include <osg/Timer>#include <osg/Notify>#include <string>#include <vector>#include <list>#include <fstream>| #define OSG_UNITTESTFRAMEWORK 1 | 
| #define OSGUTX_ADD_TESTCASE | ( | tfixture, | |||
| tmethod | ) | 
Value:
s_suite->add( new osgUtx::TestCase_<tfixture>( \ #tmethod, &tfixture::tmethod ) );
| #define OSGUTX_ADD_TESTSUITE | ( | childSuite | ) | s_suite->add( childSuite##_TestSuite() ); | 
Adds a suite to a suite - allows composition of test suites.
| #define OSGUTX_AUTOREGISTER_TESTSUITE | ( | tsuite | ) | static osgUtx::TestSuiteAutoRegistrationAgent tsuite##_autoRegistrationObj__( tsuite##_TestSuite() ); | 
Autoregister a testsuite with the root suite at startup
| #define OSGUTX_AUTOREGISTER_TESTSUITE_AT | ( | tsuite, | |||
| path | ) | static osgUtx::TestSuiteAutoRegistrationAgent tsuite##_autoRegistrationObj__( tsuite##_TestSuite(), #path ); | 
Auto register a testsuite with at designated point in the suite graph at startup
| #define OSGUTX_BEGIN_TESTSUITE | ( | tsuite | ) | 
Value:
osgUtx::TestSuite* tsuite##_TestSuite() \ { \ static osg::ref_ptr<osgUtx::TestSuite> s_suite = 0; \ if ( s_suite == 0 ) { \ s_suite = new osgUtx::TestSuite( #tsuite );
| #define OSGUTX_END_TESTSUITE | 
Value:
} \
        return s_suite.get(); \
    }
| #define OSGUTX_TEST_E | ( | expr | ) | 
Value:
if( !(expr) ){ \ std::stringstream ss; \ ss<< #expr <<" error: "<<__FILE__<<", line "<<__LINE__<<std::ends; \ throw osgUtx::TestErrorX(ss.str()); \ }
The exception will indicate the file and line number of the failed expression, along with expression itself.
| #define OSGUTX_TEST_F | ( | expr | ) | 
Value:
if( !(expr) ){ \ std::stringstream ss; \ ss<< #expr <<" failure: "<<__FILE__<<", line "<<__LINE__<<std::ends; \ throw osgUtx::TestFailureX(ss.str()); \ }
The exception will indicate the file and line number of the failed expression, along with expression itself.
| #define OSGUTX_TESTSUITE | ( | tsuite | ) | tsuite##_TestSuite() | 
Define a TestSuite accessor
 1.4.7
 1.4.7