adding version info to test log

This commit is contained in:
Andrey Pavlenko
2013-05-12 18:36:55 +04:00
parent 2aa5f1bfd1
commit d5881bc00a
3 changed files with 29 additions and 0 deletions

View File

@@ -554,6 +554,7 @@ namespace cvtest
CV_EXPORTS void fillGradient(Mat& img, int delta = 5);
CV_EXPORTS void smoothBorder(Mat& img, const Scalar& color, int delta = 3);
CV_EXPORTS void printVersionInfo(bool useStdOut = true);
} //namespace cvtest
// fills c with zeros
@@ -573,6 +574,7 @@ int main(int argc, char **argv) \
{ \
cvtest::TS::ptr()->init(resourcesubdir); \
::testing::InitGoogleTest(&argc, argv); \
cvtest::printVersionInfo();\
return RUN_ALL_TESTS(); \
}

View File

@@ -484,6 +484,7 @@ int main(int argc, char **argv)\
::perf::Regression::Init(#testsuitname);\
::perf::TestBase::Init(argc, argv);\
::testing::InitGoogleTest(&argc, argv);\
cvtest::printVersionInfo();\
return RUN_ALL_TESTS();\
}