#!/usr/bin/perl use warnings; use strict; use Test::More 'no_plan'; use IkiWiki; ok(! system("rm -rf t/tmp")); ok(mkdir "t/tmp"); ok(! system("cp -R t/tinyblog t/tmp/in")); ok(mkdir "t/tmp/in/post" or -d "t/tmp/in/post"); my $comment; $comment = <; close $fh or return undef; return $content; } my $content = slurp("t/tmp/out/post/index.html"); ok(defined $content); ok($content =~ m/I conquered.*I explored.*I landed/s);