diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-03-03 00:17:27 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-03-08 00:12:07 +0100 |
| commit | 09471c55b24d5e69359675fe669397f031aa62d3 (patch) | |
| tree | 5f552b95c15652417342a5c0e0dbc78fb240c186 /test/encode_cli_test.cc | |
| parent | 3be10e6264ee8a817c4b6ed744a2a34cf99cecea (diff) | |
Preparation for offering command in the encode CLI.
Diffstat (limited to 'test/encode_cli_test.cc')
| -rw-r--r-- | test/encode_cli_test.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/encode_cli_test.cc b/test/encode_cli_test.cc index fc70c02d5..d857476a6 100644 --- a/test/encode_cli_test.cc +++ b/test/encode_cli_test.cc @@ -86,3 +86,16 @@ BOOST_AUTO_TEST_CASE(basic_encode_cli_test) BOOST_CHECK(find_in_order(output, { "Making DCP for", "Examining content", "OK", "Transcoding DCP", "OK" })); } + + +BOOST_AUTO_TEST_CASE(encode_cli_with_explicit_encode_command_test) +{ + auto content = content_factory("test/data/flat_red.png"); + auto film = new_test_film("basic_encode_cli_test", content); + film->write_metadata(); + + vector<string> output; + run({ "cli", "make-dcp", "build/test/basic_encode_cli_test" }, output); + + BOOST_CHECK(find_in_order(output, { "Making DCP for", "Examining content", "OK", "Transcoding DCP", "OK" })); +} |
