|
virtual void | init () |
|
virtual void | shutdown () |
|
int | getExecuted () const |
| Return the number of executed testcases. More...
|
|
int | getSucceeded () const |
| Return the number of successfully executed testcases. More...
|
|
virtual const Class * | getClass () const |
| Retrieve this object's class. More...
|
|
virtual int | run (int argc, char **argv)=0 |
|
| Object () |
| Construct a new object. More...
|
|
int | getRefCount () const |
| Return the current reference count. More...
|
|
void | incRef () const |
| Increase the reference count of the object by one. More...
|
|
void | decRef (bool autoDeallocate=true) const |
| Decrease the reference count of the object and possibly deallocate it. More...
|
|
virtual std::string | toString () const |
| Return a human-readable string representation of the object's contents. More...
|
|
|
virtual | ~TestCase () |
| Virtual destructor. More...
|
|
void | assertEqualsImpl (int actual, int expected, Float epsilon, const char *file, int line) |
| Asserts that the two integer values are equal. More...
|
|
void | assertEqualsImpl (Float actual, Float expected, Float epsilon, const char *file, int line) |
| Asserts that the two floating point values are equal. More...
|
|
void | assertEqualsImpl (const Spectrum &actual, const Spectrum &expected, Float epsilon, const char *file, int line) |
| Asserts that the two spectral power distributions are equal. More...
|
|
void | assertEqualsImpl (const Vector2 &actual, const Vector2 &expected, Float epsilon, const char *file, int line) |
| Asserts that the two 2D vectors are equal. More...
|
|
void | assertEqualsImpl (const Vector &actual, const Vector &expected, Float epsilon, const char *file, int line) |
| Asserts that the two 3D vectors are equal. More...
|
|
void | assertEqualsImpl (const Vector4 &actual, const Vector4 &expected, Float epsilon, const char *file, int line) |
| Asserts that the two 4D vectors are equal. More...
|
|
void | assertEqualsImpl (const Point2 &actual, const Point2 &expected, Float epsilon, const char *file, int line) |
| Asserts that the two 2D points are equal. More...
|
|
void | assertEqualsImpl (const Point &actual, const Point &expected, Float epsilon, const char *file, int line) |
| Asserts that the two 3D points are equal. More...
|
|
template<int M, int N> |
void | assertEqualsImpl (const Matrix< M, N, Float > &actual, const Matrix< M, N, Float > &expected, Float epsilon, const char *file, int line) |
| Asserts that the two 4x4 matrices are equal. More...
|
|
void | assertTrueImpl (bool condition, const char *expr, const char *file, int line) |
| Asserts that a condition is true. More...
|
|
void | assertFalseImpl (bool condition, const char *expr, const char *file, int line) |
| Asserts that a condition is false. More...
|
|
void | failAndContinueImpl (const std::string &msg, const char *file, int line) |
| Note a failure and continue. More...
|
|
void | succeed () |
| Increase the number of succeeded tests. More...
|
|
virtual | ~Utility () |
| Virtual destructor. More...
|
|
ref< Scene > | loadScene (const fs::path &fname, const ParameterMap ¶ms=ParameterMap()) |
| Load a scene from an external file. More...
|
|
ref< Scene > | loadSceneFromString (const std::string &content, const ParameterMap ¶ms=ParameterMap()) |
| Load a scene from a string. More...
|
|
virtual | ~Object () |
| Virtual private deconstructor. (Will only be called by ref) More...
|
|
Base class of all testcases.
Implementations of this interface can be executed using the 'mtsutil' command. The execution order is as follows: after initializaiton using init(), any tests declared using the MTS_DECLARE_TEST() macro are executed. Finally, the shutdown() method is called. See the files in 'mitsuba/src/tests' for examples.