From b511420d55c99fb72cf1ca5cd7dedf53010e8941 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 22 Dec 2012 22:32:07 +0000 Subject: Fix numerous bugs in subtitle XML generation. --- test/subs_in_out.cc | 17 +++++++++++++++++ test/wscript | 8 ++++++++ 2 files changed, 25 insertions(+) create mode 100644 test/subs_in_out.cc (limited to 'test') diff --git a/test/subs_in_out.cc b/test/subs_in_out.cc new file mode 100644 index 00000000..209602e5 --- /dev/null +++ b/test/subs_in_out.cc @@ -0,0 +1,17 @@ +#include +#include "subtitle_asset.h" + +using namespace std; + +int main (int argc, char* argv[]) +{ + if (argc < 2) { + cerr << "Syntax: " << argv[0] << " \n"; + exit (EXIT_FAILURE); + } + + libdcp::SubtitleAsset s ("foo", "bar", "baz"); + s.read_xml (argv[1]); + s.write_xml (cout); + return 0; +} diff --git a/test/wscript b/test/wscript index 14534bd9..f24683b7 100644 --- a/test/wscript +++ b/test/wscript @@ -23,3 +23,11 @@ def build(bld): obj.source = 'tests.cc' obj.target = 'tests' obj.install_path = '' + + obj = bld(features = 'cxx cxxprogram') + obj.name = 'subs_in_out' + obj.uselib = 'BOOST_TEST OPENJPEG' + obj.use = 'libdcp' + obj.source = 'subs_in_out.cc' + obj.target = 'subs_in_out' + obj.install_path = '' -- cgit v1.2.3