From: Adam Sampson Date: Sun, 7 Jul 2013 16:49:24 +0000 (+0000) Subject: Test all the current page/item options. X-Git-Tag: v2.15rc1~2 X-Git-Url: http://git.ozo.com/?a=commitdiff_plain;h=9ca4b16d64c221e9ef316ba208a692f0f3be5e78;p=rawdog%2F.git Test all the current page/item options. --- diff --git a/test-rawdog b/test-rawdog index 96cc39d..ed9561d 100644 --- a/test-rawdog +++ b/test-rawdog @@ -667,13 +667,26 @@ run -w same $statedir/output.html.orig $statedir/output.html begin "pre-2.15 template options" +make_rss20 $httpdir/simple.rss +add "feed 0 $httpurl/simple.rss" +runs -uw +cp $statedir/output.html $statedir/output.html.orig run -t -echo hello world >$statedir/page +cp $outfile $statedir/page +run --show-template +same $outfile $statedir/page +run -T +cp $outfile $statedir/item +run --show-itemtemplate +same $outfile $statedir/item add "template page" +add "itemtemplate item" +run -w +same $statedir/output.html.orig $statedir/output.html +echo MAGIC1__items__ >$statedir/page +echo MAGIC2 >$statedir/item run -uw -if ! cmp $statedir/page $statedir/output.html; then - die "template not expanded" -fi +contains $statedir/output.html MAGIC1 MAGIC2 begin "item dates" # Debian bug 651080.