Test outputfile.
authorAdam Sampson <ats@offog.org>
Wed, 31 Jul 2013 17:17:32 +0000 (17:17 +0000)
committerAdam Sampson <ats@offog.org>
Wed, 31 Jul 2013 17:17:32 +0000 (17:17 +0000)
NEWS
test-rawdog

diff --git a/NEWS b/NEWS
index 20ceba2287c2913ac89aa4d73487ed97748fa915..0c7b64ef487010ec7020cebd9846741ed40c9cdf 100644 (file)
--- 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.)
index 0c5c8be30e25492fa140cdf1f2e0129fb145c4e5..0e088e81e8b70759327ef57568a591854c7b0529 100644 (file)
@@ -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"