|
|
@ -604,12 +604,17 @@ void dumpOpenCLDevice(); |
|
|
|
|
|
|
|
|
|
|
|
void parseCustomOptions(int argc, char **argv); |
|
|
|
void parseCustomOptions(int argc, char **argv); |
|
|
|
|
|
|
|
|
|
|
|
#define CV_TEST_MAIN(resourcesubdir, ...) \ |
|
|
|
#define CV_TEST_INIT0_NOOP (void)0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define CV_TEST_MAIN(resourcesubdir, ...) CV_TEST_MAIN_EX(resourcesubdir, NOOP, __VA_ARGS__) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define CV_TEST_MAIN_EX(resourcesubdir, INIT0, ...) \ |
|
|
|
int main(int argc, char **argv) \
|
|
|
|
int main(int argc, char **argv) \
|
|
|
|
{ \
|
|
|
|
{ \
|
|
|
|
using namespace cvtest; \
|
|
|
|
using namespace cvtest; \
|
|
|
|
TS* ts = TS::ptr(); \
|
|
|
|
TS* ts = TS::ptr(); \
|
|
|
|
ts->init(resourcesubdir); \
|
|
|
|
ts->init(resourcesubdir); \
|
|
|
|
|
|
|
|
__CV_TEST_EXEC_ARGS(CV_TEST_INIT0_ ## INIT0) \
|
|
|
|
::testing::InitGoogleTest(&argc, argv); \
|
|
|
|
::testing::InitGoogleTest(&argc, argv); \
|
|
|
|
cvtest::printVersionInfo(); \
|
|
|
|
cvtest::printVersionInfo(); \
|
|
|
|
TEST_DUMP_OCL_INFO \
|
|
|
|
TEST_DUMP_OCL_INFO \
|
|
|
|