dnn: extra testdata files from OPENCV_DNN_TEST_DATA_PATH env

pull/1162/head
Alexander Alekhin 8 years ago
parent fa94c16065
commit ddc58e76ad
  1. 11
      modules/dnn/test/test_main.cpp

@ -1,6 +1,15 @@
#include "test_precomp.hpp" #include "test_precomp.hpp"
CV_TEST_MAIN("") static const char* extraTestDataPath =
#ifdef WINRT
NULL;
#else
getenv("OPENCV_DNN_TEST_DATA_PATH");
#endif
CV_TEST_MAIN("",
extraTestDataPath ? (void)cvtest::addDataSearchPath(extraTestDataPath) : (void)0
)
namespace cvtest namespace cvtest
{ {

Loading…
Cancel
Save