test_main.cpp 656 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. const char* extraTestDataPath =
  12. #ifdef WINRT
  13. NULL;
  14. #else
  15. getenv("OPENCV_DNN_TEST_DATA_PATH");
  16. #endif
  17. if (extraTestDataPath)
  18. cvtest::addDataSearchPath(extraTestDataPath);
  19. cvtest::addDataSearchSubDirectory(""); // override "cv" prefix below to access without "../dnn" hacks
  20. }
  21. CV_TEST_MAIN("cv", initTests())