diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-06-02 00:33:01 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-06-02 00:33:01 +0200 |
| commit | 3c59d07d90e85355e320ed6d30efa30242ed6c31 (patch) | |
| tree | c7ce8819deeda9afbba5a75726e425d8b5f3e705 /test | |
| parent | dd672d926e3b88cbe42b0778fda397d9e858b592 (diff) | |
Pass through CompositionMetadataAsset correctly.
We weren't saving Id, and were not quite handling FullContentText
correctly.
Diffstat (limited to 'test')
| -rw-r--r-- | test/combine_test.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/combine_test.cc b/test/combine_test.cc index 0dcfd2d3..e1512e41 100644 --- a/test/combine_test.cc +++ b/test/combine_test.cc @@ -397,5 +397,21 @@ BOOST_AUTO_TEST_CASE (combine_two_dcps_with_duplicated_asset) } +BOOST_AUTO_TEST_CASE (check_cpls_unchanged_after_combine) +{ + boost::filesystem::path in = "build/test/combine_one_dcp_with_composition_metadata_in"; + boost::filesystem::path out = "build/test/combine_one_dcp_with_composition_metadata_out"; + auto dcp = make_simple (in); + dcp->write_xml (); + + dcp::combine ({in}, out); + + BOOST_REQUIRE_EQUAL (dcp->cpls().size(), 1U); + auto cpl = dcp->cpls()[0]->file(); + BOOST_REQUIRE (cpl); + check_file (*cpl, out / cpl->filename()); +} + + /* XXX: same CPL names */ /* XXX: Interop PNG subs */ |
