diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-11-28 20:00:09 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-11-29 01:10:16 +0100 |
| commit | f7610c3c202df736c518a826bef21da41df38aa4 (patch) | |
| tree | 2f1ca97a02b54ca02bcb89eaaf2cba85ab39f305 /test/create_cli_test.cc | |
| parent | 5f206d32ff60148ab72b35d5823f56bdbb7f50bf (diff) | |
Add --gain option to dcpomatic_create.
Diffstat (limited to 'test/create_cli_test.cc')
| -rw-r--r-- | test/create_cli_test.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/create_cli_test.cc b/test/create_cli_test.cc index dff10a11c..acc3f64b0 100644 --- a/test/create_cli_test.cc +++ b/test/create_cli_test.cc @@ -171,4 +171,13 @@ BOOST_AUTO_TEST_CASE (create_cli_test) cc = run ("dcpomatic2_create --channel foo fred.wav"); BOOST_REQUIRE (cc.error); BOOST_CHECK (boost::algorithm::starts_with(*cc.error, "dcpomatic2_create: foo is not valid for --channel")); + + cc = run ("dcpomatic2_create fred.wav --gain -6 jim.wav --gain 2 sheila.wav"); + BOOST_REQUIRE_EQUAL (cc.content.size(), 3U); + BOOST_CHECK_EQUAL (cc.content[0].path, "fred.wav"); + BOOST_CHECK (!cc.content[0].gain); + BOOST_CHECK_EQUAL (cc.content[1].path, "jim.wav"); + 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); } |
