summaryrefslogtreecommitdiff
path: root/test/client_server_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/client_server_test.cc')
-rw-r--r--test/client_server_test.cc20
1 files changed, 15 insertions, 5 deletions
diff --git a/test/client_server_test.cc b/test/client_server_test.cc
index 596668aae..ded3a5dfc 100644
--- a/test/client_server_test.cc
+++ b/test/client_server_test.cc
@@ -20,15 +20,12 @@
/** @file test/client_server_test.cc
- * @brief Test the server class.
+ * @brief Test the remote encoding code.
* @ingroup feature
- *
- * Create a test image and then encode it using the standard mechanism
- * and also using a EncodeServer object running on localhost. Compare the resulting
- * encoded data to check that they are the same.
*/
+#include "lib/content_factory.h"
#include "lib/cross.h"
#include "lib/dcp_video.h"
#include "lib/dcpomatic_log.h"
@@ -315,3 +312,16 @@ BOOST_AUTO_TEST_CASE (client_server_test_j2k)
}
+BOOST_AUTO_TEST_CASE(real_encode_with_server)
+{
+ auto content = content_factory(TestPaths::private_data() / "dolby_aurora.vob");
+ auto film = new_test_film2("real_encode_with_server", content);
+
+ EncodeServer server(true, 4);
+ thread server_thread(boost::bind(&EncodeServer::run, &server));
+
+ make_and_verify_dcp(film);
+
+ BOOST_CHECK(server.frames_encoded() > 0);
+}
+