From: Adam Sampson Date: Wed, 31 Jul 2013 17:17:32 +0000 (+0000) Subject: Test outputfile. X-Git-Tag: v2.17~6 X-Git-Url: http://git.ozo.com/?a=commitdiff_plain;h=7ec69139030ce67eb23cc23f5fcba6c4d9b160ce;p=rawdog%2F.git Test outputfile. --- diff --git a/NEWS b/NEWS index 20ceba2..0c7b64e 100644 --- a/NEWS +++ b/NEWS @@ -22,7 +22,7 @@ varying locales and timezones; RSS 1.0 support; --dump, -c, -f, -l, -N, -v and -W; include; plugin loading; feed format and id options; author formatting; template conditionals: broken 301 redirects; useids; content vs. summary; daysections/timesections; removing articles from a feed; -keeping comments; numthreads; various error messages. +keeping comments; numthreads; outputfile; various error messages. Make subclasses of Persistable call Persistable's constructor. (Identified by coverage analysis.) diff --git a/test-rawdog b/test-rawdog index 0c5c8be..0e088e8 100644 --- a/test-rawdog +++ b/test-rawdog @@ -871,6 +871,20 @@ make_n 6 $httpdir/feed.rss runs -uw output_n 6 +begin "outputfile" +make_rss20 $httpdir/feed.rss +add "feed 0 $httpurl/feed.rss" +add "outputfile second.html" +runs -uw +contains $statedir/second.html example-feed-title + +begin "outputfile -" +make_rss20 $httpdir/feed.rss +add "feed 0 $httpurl/feed.rss" +add "outputfile -" +run -uw +contains $outfile example-feed-title + begin "maxarticles 10" make_n 20 $httpdir/feed.rss add "maxarticles 10"