summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-09-06 12:44:28 +0200
committerCarl Hetherington <cth@carlh.net>2022-09-06 12:44:28 +0200
commitb36f9bf7922a7eb2cdbe97613460d81cff79b65b (patch)
tree10125bd83ae241551e37e03a69803e2b4c4936c8
parentaf0e0577cc671ba3bd6332453826a5cd789cf915 (diff)
Add a new test.
-rw-r--r--test/combine_test.cc21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/combine_test.cc b/test/combine_test.cc
index 603cca62..709ec080 100644
--- a/test/combine_test.cc
+++ b/test/combine_test.cc
@@ -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;