Skip to content

Commit

Permalink
Merge pull request opencv#18904 from mpashchenkov:mp/ocv-gapi-skip-gm…
Browse files Browse the repository at this point in the history
…-tests

G-API: Adding skip for GraphMeta tests

* Added skip for GraphMeta tests

* Removed false
  • Loading branch information
Maxim Pashchenkov authored Nov 24, 2020
1 parent e1a8fc0 commit 19d825a
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions modules/gapi/test/gapi_graph_meta_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,12 @@ TEST(GraphMeta, Streaming_AccessInput) {
cv::GComputation graph(cv::GIn(in), cv::GOut(out1, out2));

auto ccomp = graph.compileStreaming();
ccomp.setSource<cv::gapi::wip::GCaptureSource>(findDataFile("cv/video/768x576.avi", false));
const auto path = findDataFile("cv/video/768x576.avi");
try {
ccomp.setSource<cv::gapi::wip::GCaptureSource>(path);
} catch(...) {
throw SkipTestException("Video file can not be opened");
}
ccomp.start();

cv::Mat out_mat;
Expand All @@ -122,7 +127,12 @@ TEST(GraphMeta, Streaming_AccessOutput) {
cv::GComputation graph(cv::GIn(in), cv::GOut(out1, out2, out3));

auto ccomp = graph.compileStreaming();
ccomp.setSource<cv::gapi::wip::GCaptureSource>(findDataFile("cv/video/768x576.avi", false));
const auto path = findDataFile("cv/video/768x576.avi");
try {
ccomp.setSource<cv::gapi::wip::GCaptureSource>(path);
} catch(...) {
throw SkipTestException("Video file can not be opened");
}
ccomp.start();

cv::Mat out_mat;
Expand Down Expand Up @@ -155,7 +165,12 @@ TEST(GraphMeta, Streaming_AccessDesync) {
cv::GComputation graph(cv::GIn(in), cv::GOut(out1, out2, out3, out4, out5));

auto ccomp = graph.compileStreaming();
ccomp.setSource<cv::gapi::wip::GCaptureSource>(findDataFile("cv/video/768x576.avi", false));
const auto path = findDataFile("cv/video/768x576.avi");
try {
ccomp.setSource<cv::gapi::wip::GCaptureSource>(path);
} catch(...) {
throw SkipTestException("Video file can not be opened");
}
ccomp.start();

cv::optional<int64_t> out_sync_id;
Expand Down

0 comments on commit 19d825a

Please sign in to comment.