From 6fc484fddc32ea7160ec8d9e16ffe1465c3be3ab Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 30 May 2023 14:42:53 +0200 Subject: [PATCH] Add a test with hard-linking. --- test/map_cli_test.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 */ -- 2.30.2