X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Fsubrip_test.cc;h=0827005c166050c1be1b212388c5184c59d1ba49;hb=6b4fdbdabeb7b6010b5d558fb231e5d4e69487fc;hp=84ad7f25d4148b87e4ae5471e06263769ef2e3a5;hpb=cc27c2716f755305d67f1e1ba828ecf37f8405dd;p=dcpomatic.git diff --git a/test/subrip_test.cc b/test/subrip_test.cc index 84ad7f25d..0827005c1 100644 --- a/test/subrip_test.cc +++ b/test/subrip_test.cc @@ -202,11 +202,18 @@ BOOST_AUTO_TEST_CASE (subrip_render_test) check_file ("build/test/subrip_render_test.png", "test/data/subrip_render_test.png"); } -/** Test of reading a typical .srt */ -BOOST_AUTO_TEST_CASE (subrip_read_test) +static void +test (boost::filesystem::path p) { - shared_ptr film = new_test_film ("subrip_read_test"); - boost::filesystem::path p = private_data / "sintel_en.srt"; - shared_ptr s (new SubRipContent (film, p)); + shared_ptr film = new_test_film ("subrip_read_test_" + p.string ()); + boost::filesystem::path t = private_data / p; + shared_ptr s (new SubRipContent (film, t)); s->examine (shared_ptr ()); } + +/** Test of reading some typical .srt files */ +BOOST_AUTO_TEST_CASE (subrip_read_test) +{ + test ("sintel_en.srt"); + test ("Fight.Club.1999.720p.BRRip.x264-x0r.srt"); +}