parent
58cb6c268e
commit
e3b3982de6
3 changed files with 13 additions and 9 deletions
@ -1,6 +1,13 @@ |
|||||||
#include "test_precomp.hpp" |
#include "test_precomp.hpp" |
||||||
|
|
||||||
CV_TEST_MAIN("gpu") |
int main(int argc, char **argv) |
||||||
|
{ |
||||||
// Run test with --gtest_catch_exceptions flag to avoid runtime errors in
|
cvtest::TS::ptr()->init("gpu"); |
||||||
// the case when there is no GPU
|
::testing::InitGoogleTest(&argc, argv); |
||||||
|
#ifdef HAVE_CUDA |
||||||
|
return RUN_ALL_TESTS(); |
||||||
|
#else |
||||||
|
std::cerr << "opencv_test_gpu: OpenCV was compiled without GPU support\n"; |
||||||
|
return -1; |
||||||
|
#endif |
||||||
|
} |
Loading…
Reference in new issue