Run all tests with lots of encoding threads.
authorCarl Hetherington <cth@carlh.net>
Sun, 17 May 2020 21:30:44 +0000 (23:30 +0200)
committerCarl Hetherington <cth@carlh.net>
Wed, 20 May 2020 19:56:28 +0000 (21:56 +0200)
test/data
test/digest_test.cc
test/test.cc
test/threed_test.cc

index 3b21196..ec3ae29 160000 (submodule)
--- a/test/data
+++ b/test/data
@@ -1 +1 @@
-Subproject commit 3b21196b894bfbc096a5e90ee11dcf5f50bd4bf9
+Subproject commit ec3ae2986682bb2cb45f0ab65cb90cee7d160c1f
index 68e4437..2911a43 100644 (file)
@@ -72,10 +72,9 @@ BOOST_AUTO_TEST_CASE (digest_test)
        film->set_reel_type (REELTYPE_BY_VIDEO_CONTENT);
        BOOST_REQUIRE (!wait_for_jobs());
 
-       Config::instance()->set_master_encoding_threads (4);
+       BOOST_CHECK (Config::instance()->master_encoding_threads() > 1);
        film->make_dcp ();
        BOOST_REQUIRE (!wait_for_jobs());
-       Config::instance()->set_master_encoding_threads (1);
 
        dcp::DCP dcp (film->dir (film->dcp_name ()));
        dcp.read ();
index 9be0d47..b6e017a 100644 (file)
@@ -77,7 +77,7 @@ boost::filesystem::path TestPaths::xsd = boost::filesystem::canonical(boost::fil
 void
 setup_test_config ()
 {
-       Config::instance()->set_master_encoding_threads (1);
+       Config::instance()->set_master_encoding_threads (boost::thread::hardware_concurrency());
        Config::instance()->set_server_encoding_threads (1);
        Config::instance()->set_server_port_base (61921);
        Config::instance()->set_default_isdcf_metadata (ISDCFMetadata ());
index 266b7bf..a2c0cfd 100644 (file)
@@ -105,8 +105,6 @@ BOOST_AUTO_TEST_CASE (threed_test3)
 
 BOOST_AUTO_TEST_CASE (threed_test4)
 {
-       Config::instance()->set_master_encoding_threads (8);
-
        shared_ptr<Film> film = new_test_film2 ("threed_test4");
        shared_ptr<FFmpegContent> L (new FFmpegContent(TestPaths::private_data / "LEFT_TEST_DCP3D4K.mov"));
        film->examine_and_add_content (L);
@@ -122,14 +120,10 @@ BOOST_AUTO_TEST_CASE (threed_test4)
        film->write_metadata ();
 
        BOOST_REQUIRE (!wait_for_jobs ());
-
-       Config::instance()->set_master_encoding_threads (8);
 }
 
 BOOST_AUTO_TEST_CASE (threed_test5)
 {
-       Config::instance()->set_master_encoding_threads (8);
-
        shared_ptr<Film> film = new_test_film2 ("threed_test5");
        shared_ptr<FFmpegContent> L (new FFmpegContent(TestPaths::private_data / "boon_telly.mkv"));
        film->examine_and_add_content (L);
@@ -145,8 +139,6 @@ BOOST_AUTO_TEST_CASE (threed_test5)
        film->write_metadata ();
 
        BOOST_REQUIRE (!wait_for_jobs ());
-
-       Config::instance()->set_master_encoding_threads (1);
 }
 
 BOOST_AUTO_TEST_CASE (threed_test6)