Go to the source code of this file.
#define __MITSUBA_RENDER_TESTCASE_H_ |
#define EXECUTE_GUARDED |
( |
|
name | ) |
|
Value:
Log(
EInfo,
"Executing test \"%s\" ..", #name); \
m_executed++;\
name();\
m_succeeded++;\
}
catch (std::exception &e) {
\
Log(
EInfo,
"Testcase failed with error: %s", e.what());\
}
More relevant debug / information message.
Definition: formatter.h:31
#define Log(level, fmt,...)
Write a Log message to the console (to be used within subclasses of Object)
Definition: logger.h:35
#define MTS_BEGIN_TESTCASE |
( |
| ) |
|
Value:
int run(int argc, char **argv) {\
Log(
EInfo,
"Executing testcase \"%s\" ..", getClass()->getName().c_str()); \
m_executed = m_succeeded = 0;
More relevant debug / information message.
Definition: formatter.h:31
#define Log(level, fmt,...)
Write a Log message to the console (to be used within subclasses of Object)
Definition: logger.h:35
#define MTS_DECLARE_CLASS()
This macro must be used in the initial definition in classes that derive from Object.
Definition: class.h:158
#define MTS_END_TESTCASE |
( |
| ) |
|
Value:shutdown();\
return m_executed - m_succeeded;\
}
#define MTS_EXPORT_TESTCASE |
( |
|
name, |
|
|
|
descr |
|
) |
| |
Value:
extern "C" { \
return new name(); \
} \
return descr; \
} \
}
#define MTS_IMPLEMENT_CLASS(name, abstract, super)
Creates basic RTTI support for a class.
Definition: class.h:180