Add a test with hard-linking.
authorCarl Hetherington <cth@carlh.net>
Tue, 30 May 2023 12:42:53 +0000 (14:42 +0200)
committerCarl Hetherington <cth@carlh.net>
Tue, 30 May 2023 12:42:53 +0000 (14:42 +0200)
test/map_cli_test.cc

index 4b212ea39a846fa02c7cc0140171d616d036d324..59d88386b559e0be81830adb20b22e19ddac6d71 100644 (file)
@@ -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<string> 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<string> const args = {
+       vector<string> 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<string> 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 */