From 9ca4b16d64c221e9ef316ba208a692f0f3be5e78 Mon Sep 17 00:00:00 2001 From: Adam Sampson Date: Sun, 7 Jul 2013 16:49:24 +0000 Subject: [PATCH] Test all the current page/item options. --- test-rawdog | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) 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. -- 2.35.1