Commit 0c18bf9e authored by hybrid's avatar hybrid

Add output to test macros

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3825 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 21509dd2
...@@ -6,15 +6,17 @@ ...@@ -6,15 +6,17 @@
#include <assert.h> #include <assert.h>
#define TestWithAllDrivers(X, ...) \ #define TestWithAllDrivers(X, ...) \
logTestString("Running test " #X "\n"); \
for (u32 i=1; i<video::EDT_COUNT; ++i) \ for (u32 i=1; i<video::EDT_COUNT; ++i) \
result &= X(video::E_DRIVER_TYPE(i), __VA_ARGS__) result &= X(video::E_DRIVER_TYPE(i), ##__VA_ARGS__)
#define TestWithAllHWDrivers(X, ...) \ #define TestWithAllHWDrivers(X, ...) \
logTestString("Running test " #X "\n"); \
for (u32 i=video::EDT_DIRECT3D8; i<video::EDT_COUNT; ++i) \ for (u32 i=video::EDT_DIRECT3D8; i<video::EDT_COUNT; ++i) \
result &= X(video::E_DRIVER_TYPE(i), __VA_ARGS__) result &= X(video::E_DRIVER_TYPE(i), ##__VA_ARGS__)
//! Compare two files //! Compare two files
/** \param fileName1 The first file for comparison. /** \param fileName1 The first file for comparison.
\param fileName1 The second file for comparison. \param fileName2 The second file for comparison.
\return true if the files are identical, false on any error or difference. */ \return true if the files are identical, false on any error or difference. */
extern bool binaryCompareFiles(const char * fileName1, const char * fileName2); extern bool binaryCompareFiles(const char * fileName1, const char * fileName2);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment