using std::vector;
using std::min;
using std::cout;
+using std::cerr;
using boost::shared_ptr;
using boost::thread;
using boost::dynamic_pointer_cast;
BOOST_GLOBAL_FIXTURE (TestConfig);
-boost::filesystem::path
+static boost::filesystem::path
test_film_dir (string name)
{
boost::filesystem::path p;
return p;
}
-shared_ptr<Film>
+static shared_ptr<Film>
new_test_film (string name)
{
boost::filesystem::path p = test_film_dir (name);
return f;
}
-void
+static void
check_file (string ref, string check)
{
uintmax_t N = boost::filesystem::file_size (ref);
cout << n << "\n";
}
-void
+static void
check_dcp (string ref, string check)
{
libdcp::DCP ref_dcp (ref);
BOOST_CHECK (ref_dcp.equals (check_dcp, options, boost::bind (note, _1, _2)));
}
+void
+wait_for_jobs ()
+{
+ JobManager* jm = JobManager::instance ();
+ while (jm->work_to_do ()) {}
+ if (jm->errors ()) {
+ for (list<shared_ptr<Job> >::iterator i = jm->_jobs.begin(); i != jm->_jobs.end(); ++i) {
+ cerr << (*i)->error_summary () << "\n"
+ << (*i)->error_details () << "\n";
+ }
+ }
+
+ BOOST_CHECK (!jm->errors());
+}
+
+#include "play_test.cc"
+#include "frame_rate_test.cc"
+#include "silence_padding_test.cc"
+#include "audio_delay_test.cc"
#include "ffmpeg_pts_offset.cc"
#include "ffmpeg_examiner_test.cc"
#include "black_fill_test.cc"
#include "stream_test.cc"
#include "util_test.cc"
#include "ffmpeg_dcp_test.cc"
-#include "frame_rate_test.cc"
#include "job_test.cc"
#include "client_server_test.cc"
#include "image_test.cc"