Add a new test.
authorCarl Hetherington <cth@carlh.net>
Tue, 6 Sep 2022 10:44:28 +0000 (12:44 +0200)
committerCarl Hetherington <cth@carlh.net>
Tue, 6 Sep 2022 10:44:28 +0000 (12:44 +0200)
test/combine_test.cc

index 603cca62d7c9f3f1ada6ac1c8bcf13fb353d0c02..709ec080fea71bd18222346b1702c9e79f98e067 100644 (file)
@@ -189,6 +189,27 @@ BOOST_AUTO_TEST_CASE (combine_two_dcps_with_same_asset_filenames_test)
 }
 
 
+BOOST_AUTO_TEST_CASE(combine_two_dcps_one_with_interop_subs_test)
+{
+       using namespace boost::algorithm;
+       using namespace boost::filesystem;
+       boost::filesystem::path const out = "build/test/combine_two_dcps_one_with_interop_subs_test";
+
+       auto first = make_simple("build/test/combine_input1", 1, 24, dcp::Standard::INTEROP);
+       first->write_xml ();
+
+       auto second = make_simple_with_interop_subs("build/test/combine_input2");
+       second->write_xml ();
+
+       remove_all (out);
+       vector<path> inputs = {"build/test/combine_input1", "build/test/combine_input2"};
+       dcp::combine (inputs, out);
+
+       check_no_errors (out);
+       check_combined (inputs, out);
+}
+
+
 BOOST_AUTO_TEST_CASE (combine_two_dcps_with_interop_subs_test)
 {
        using namespace boost::algorithm;