#include <osg/Export>#include <osg/Referenced>#include <osg/ref_ptr>#include <osg/Timer>#include <osg/Notify>#include <string>#include <vector>#include <list>#include <fstream>
|
|
|
|
|
Value: s_suite->add( new osgUtx::TestCase_<tfixture>( \ #tmethod, &tfixture::tmethod ) );
|
|
|
Adds a suite to a suite - allows composition of test suites.
|
|
|
Autoregister a testsuite with the root suite at startup |
|
|
Auto register a testsuite with at designated point in the suite graph at startup |
|
|
Value: osgUtx::TestSuite* tsuite##_TestSuite() \ { \ static osg::ref_ptr<osgUtx::TestSuite> s_suite = 0; \ if ( s_suite == 0 ) { \ s_suite = new osgUtx::TestSuite( #tsuite );
|
|
|
Value: } \
return s_suite.get(); \
}
|
|
|
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. |
|
|
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 a TestSuite accessor |
1.4.4