test_main.cpp 598 B

12345678910111213141516171819202122232425
  1. // This file is part of OpenCV project.
  2. // It is subject to the license terms in the LICENSE file found in the top-level directory
  3. // of this distribution and at http://opencv.org/license.html.
  4. #include "test_precomp.hpp"
  5. #if defined(HAVE_HPX)
  6. #include <hpx/hpx_main.hpp>
  7. #endif
  8. static
  9. void initTests()
  10. {
  11. #ifdef HAVE_OPENCV_DNN
  12. const char* extraTestDataPath =
  13. #ifdef WINRT
  14. NULL;
  15. #else
  16. getenv("OPENCV_DNN_TEST_DATA_PATH");
  17. #endif
  18. if (extraTestDataPath)
  19. cvtest::addDataSearchPath(extraTestDataPath);
  20. #endif // HAVE_OPENCV_DNN
  21. }
  22. CV_TEST_MAIN("cv", initTests())