diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-12-22 22:32:07 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-12-22 22:32:07 +0000 |
| commit | b511420d55c99fb72cf1ca5cd7dedf53010e8941 (patch) | |
| tree | 7a2c721dc63d3e53771f33c0c812626449194bf0 /test | |
| parent | e3303378742e2a0c9474135915aa8ec61f094d3d (diff) | |
Fix numerous bugs in subtitle XML generation.
Diffstat (limited to 'test')
| -rw-r--r-- | test/subs_in_out.cc | 17 | ||||
| -rw-r--r-- | test/wscript | 8 |
2 files changed, 25 insertions, 0 deletions
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 <iostream> +#include "subtitle_asset.h" + +using namespace std; + +int main (int argc, char* argv[]) +{ + if (argc < 2) { + cerr << "Syntax: " << argv[0] << " <subtitle file>\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 = '' |
