From: Carl Hetherington Date: Tue, 30 May 2023 12:42:53 +0000 (+0200) Subject: Add a test with hard-linking. X-Git-Tag: v2.16.58~16 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=6fc484fddc32ea7160ec8d9e16ffe1465c3be3ab Add a test with hard-linking. --- diff --git a/test/map_cli_test.cc b/test/map_cli_test.cc index 4b212ea39..59d88386b 100644 --- a/test/map_cli_test.cc +++ b/test/map_cli_test.cc @@ -211,7 +211,7 @@ BOOST_AUTO_TEST_CASE(map_simple_interop_dcp_with_subs) static void -test_map_ov_vf_copy() +test_map_ov_vf_copy(vector extra_args = {}) { string const name = "map_ov_vf_copy"; string const out = String::compose("build/test/%1_out", name); @@ -230,7 +230,7 @@ test_map_ov_vf_copy() auto const vf_dir = vf_film->dir(vf_film->dcp_name()); - vector const args = { + vector args = { "map_cli", "-o", out, "-d", ov_dir.string(), @@ -238,6 +238,8 @@ test_map_ov_vf_copy() find_cpl(vf_dir).string() }; + args.insert(std::end(args), std::begin(extra_args), std::end(extra_args)); + boost::filesystem::remove_all(out); vector output_messages; @@ -256,6 +258,7 @@ test_map_ov_vf_copy() BOOST_AUTO_TEST_CASE(map_ov_vf_copy) { test_map_ov_vf_copy(); + test_map_ov_vf_copy({"-l"}); } /** Map a single DCP into a new DCP using the rename option */