summaryrefslogtreecommitdiff
path: root/test/create_cli_test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-01-16 20:50:23 +0100
committerCarl Hetherington <cth@carlh.net>2022-01-16 21:00:36 +0100
commit09f8b57ac237c98eae648fc31093cf22495db740 (patch)
tree9b62300492c07f6081f7fff667e1fcbe14a0fd7d /test/create_cli_test.cc
parentb2d7764f628926763e648924b267855c59ab4349 (diff)
Add --twok option to dcpomatic2_create.
Diffstat (limited to 'test/create_cli_test.cc')
-rw-r--r--test/create_cli_test.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/create_cli_test.cc b/test/create_cli_test.cc
index acc3f64b0..523fd75e6 100644
--- a/test/create_cli_test.cc
+++ b/test/create_cli_test.cc
@@ -144,6 +144,12 @@ BOOST_AUTO_TEST_CASE (create_cli_test)
BOOST_CHECK_EQUAL (cc.content[1].frame_type, VideoFrameType::THREE_D_RIGHT);
BOOST_CHECK_EQUAL (cc.fourk, false);
+ cc = run ("dcpomatic2_create --twok foo.mp4");
+ BOOST_REQUIRE_EQUAL (cc.content.size(), 1U);
+ BOOST_CHECK_EQUAL (cc.content[0].path, "foo.mp4");
+ BOOST_CHECK_EQUAL (cc.twok, true);
+ BOOST_CHECK (!cc.error);
+
cc = run ("dcpomatic2_create --fourk foo.mp4");
BOOST_REQUIRE_EQUAL (cc.content.size(), 1U);
BOOST_CHECK_EQUAL (cc.content[0].path, "foo.mp4");