THEN("^the result should be only (.+) in the content list$") {
REGEX_PARAM(string, entry);
ScenarioScope<DoMCtx> context;
- vector<string> content = context->content_list ();
+ auto content = context->content_list ();
BOOST_CHECK_EQUAL (content.size(), 1);
BOOST_CHECK_EQUAL (content.front(), entry);
}
#!/bin/bash
export LD_LIBRARY_PATH=build/src/lib:build/src/wx:$LD_LIBRARY_PATH
+export DCPOMATIC_GRAPHICS=$DIR/../graphics
build/features/dcpomatic_cucumber &
sleep 5
: Job (film)
, _content (c)
{
-
+ std::cout << "ECJ star.\n";
}
void
Film::examine_and_add_content (shared_ptr<Content> content, bool disable_audio_analysis)
{
+ std::cout << "hello mum.\n";
if (dynamic_pointer_cast<FFmpegContent> (content) && _directory) {
- run_ffprobe (content->path(0), file("ffprobe.log"));
+ // run_ffprobe (content->path(0), file("ffprobe.log"));
}
+ std::cout << "fuck\n";
+ auto x = shared_from_this();
+ std::cout << "sft worked.\n";
auto j = make_shared<ExamineContentJob>(shared_from_this(), content);
+ std::cout << "shit\n";
_job_connections.push_back (
j->Finished.connect (bind (&Film::maybe_add_content, this, weak_ptr<Job>(j), weak_ptr<Content>(content), disable_audio_analysis))
);
+ std::cout << "muthefucka";
JobManager::instance()->add (j);
}
, _progress (0)
, _rate_limit_progress(true)
{
-
+ std::cout << "uzi lover.\n";
}
#ifdef DCPOMATIC_CUCUMBER
void cucumber_add_content_file (string filename) {
+ std::cout << ".cucumber_add_content_file\n";
_film_editor->cucumber_add_content_file (filename);
}
/* Could be called from any thread */
std::string cucumber_get_content_list () {
+ std::cout << ".cucumber_get_content_list\n";
return _film_editor->cucumber_get_content_list();
}
#endif
try {
for (auto i: paths) {
+ std::cout << "here I am adding " << i << "\n";
for (auto j: content_factory(i)) {
+ std::cout << "add " << j << "\n";
_film->examine_and_add_content (j);
+ std::cout << "add done.\n";
}
+ std::cout << "that's done.\n";
}
} catch (exception& e) {
+ std::cout << "that threw.\n";
error_dialog (_parent, e.what());
}
}
void
ContentPanel::cucumber_add_content_file (string filename)
{
+ std::cout << "CP::cucumber_add_content_file\n";
add_files ({filename});
auto jm = JobManager::instance ();
while (jm->work_to_do()) {
+ std::cout << "work to do.\n";
while (signal_manager->ui_idle()) {}
dcpomatic_sleep_seconds (1);
}
- while (signal_manager->ui_idle()) {}
+ while (signal_manager->ui_idle()) {
+ std::cout << "ui idle.\n";
+ }
+ std::cout << "CP::cucumber_add_content_file done\n";
}
nanomsg.send (CUCUMBER_BRIDGE_READY "\n", -1);
while (true) {
- optional<string> message = nanomsg.receive (-1);
+ auto message = nanomsg.receive (-1);
if (!message) {
continue;
}
+ std::cout << "CB receives " << *message << "\n";
+
if (*message == CUCUMBER_BRIDGE_CLICK_BUTTON) {
emit (bind(boost::ref(ClickButton), get_parameter(nanomsg)));
} else if (*message == CUCUMBER_BRIDGE_SELECT_MENU) {
string
CucumberBridge::get_parameter (Nanomsg& nanomsg)
{
- optional<string> p = nanomsg.receive (100);
+ auto p = nanomsg.receive (100);
DCPOMATIC_ASSERT (p);
return *p;
}