Add test to compile with opencv

This commit is contained in:
Cosmin Ștefan Ciocan
2024-01-26 11:30:32 +00:00
parent b49062e9e2
commit c1fbc06604
3 changed files with 43 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
#include <opencv2/core.hpp>
#include <iostream>
int main(int argc, char** argv)
{
std::cout << cv::getBuildInformation() << std::endl;
return 0;
}
+5
View File
@@ -37,6 +37,11 @@ def compiler_cpp_17_fpath(fixtures_path: str):
return os.path.join(fixtures_path, "compiler", "cpp_17.cu")
@pytest.fixture(scope="session")
def compiler_opencv_fpath(fixtures_path: str):
return os.path.join(fixtures_path, "compiler", "opencv.cu")
@pytest.fixture(scope="session")
def sample_magic_cu_line():
# fmt: off