diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-09-17 22:32:04 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-09-17 22:32:04 +0200 |
| commit | b0fc1ec3b159b7a7fa917f2e338485921800374e (patch) | |
| tree | 2ba6fe1ba0d92e818b782b85cfd59c5856948693 /test/create_cli_test.cc | |
| parent | 0792f10d395c90532e8c778eab22145e746257e6 (diff) | |
Allow specification of the CPL ID to use in a DCP with _create (#2302).
Diffstat (limited to 'test/create_cli_test.cc')
| -rw-r--r-- | test/create_cli_test.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/create_cli_test.cc b/test/create_cli_test.cc index 97ac25374..71281a63e 100644 --- a/test/create_cli_test.cc +++ b/test/create_cli_test.cc @@ -184,4 +184,10 @@ BOOST_AUTO_TEST_CASE (create_cli_test) BOOST_CHECK_CLOSE (*cc.content[1].gain, -6, 0.001); BOOST_CHECK_EQUAL (cc.content[2].path, "sheila.wav"); BOOST_CHECK_CLOSE (*cc.content[2].gain, 2, 0.001); + + cc = run("dcpomatic2_create --cpl 123456-789-0 dcp"); + BOOST_REQUIRE_EQUAL(cc.content.size(), 1U); + BOOST_CHECK_EQUAL(cc.content[0].path, "dcp"); + BOOST_REQUIRE(static_cast<bool>(cc.content[0].cpl)); + BOOST_CHECK_EQUAL(*cc.content[0].cpl, "123456-789-0"); } |
