summaryrefslogtreecommitdiff
path: root/test/grok_test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-06-01 20:54:59 +0200
committerCarl Hetherington <cth@carlh.net>2025-06-01 20:54:59 +0200
commite27289ebb14c1004136bd9fd8f05a9a189bf9d92 (patch)
tree87cb32e7f4d25d4e5a4c18633f343cf3a002f32c /test/grok_test.cc
parent437a0f28eac4464ffec24c83c0b6a767495a415e (diff)
wip: test grok when it goes wrong.3039-grok-error
Diffstat (limited to 'test/grok_test.cc')
-rw-r--r--test/grok_test.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/grok_test.cc b/test/grok_test.cc
index ef58088ce..09ed626da 100644
--- a/test/grok_test.cc
+++ b/test/grok_test.cc
@@ -63,4 +63,24 @@ BOOST_AUTO_TEST_CASE(mock_grok_encode_test)
make_and_verify_dcp(film);
}
+
+BOOST_AUTO_TEST_CASE(mock_grok_encode_test_with_lost_frames)
+{
+ ConfigRestorer cr;
+
+ grk_plugin::setGrokLogger(new grk_plugin::GrokLogger("[GROK] "));
+
+ auto grok = Config::instance()->grok();
+ grok.enable = true;
+ grok.binary_location = "build/test";
+ /* This tells the mock grk_compress to drop some frames */
+ grok.licence = "random_drop";
+ Config::instance()->set_grok(grok);
+
+ auto content = content_factory(TestPaths::private_data() / "arrietty_JP-EN.mkv");
+ auto film = new_test_film("mock_grok_encode_test_with_lost_frames", content);
+
+ make_and_verify_dcp(film);
+}
+
#endif