X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fblosxom.git;a=blobdiff_plain;f=t%2F04_plugin_dir.t;h=e42f28492598e14b628d01f9d1e7be551ad73a0f;hp=c27c35bbedd32a5493ed64d52e58e84d0f8245f9;hb=refs%2Fheads%2Fmaster;hpb=12352c94e4e3f56b9e99d38c52079c92a24ace59 diff --git a/t/04_plugin_dir.t b/t/04_plugin_dir.t deleted file mode 100644 index c27c35b..0000000 --- a/t/04_plugin_dir.t +++ /dev/null @@ -1,35 +0,0 @@ -# blosxom standard $plugin_dir testing - -use strict; -use Test::More tests => 1; -use Test::Differences; -use Cwd; -use IO::File; - -my $blosxom_root = 'plugin_dir'; -$blosxom_root = "t/$blosxom_root" if -d "t/$blosxom_root"; -$blosxom_root = cwd . "/$blosxom_root"; -die "cannot find root '$blosxom_root'" - unless -d $blosxom_root; - -my $blosxom_config_dir = "$blosxom_root/config"; -die "cannot find blosxom config dir '$blosxom_config_dir'" unless -d $blosxom_config_dir; -$ENV{BLOSXOM_CONFIG_DIR} = $blosxom_config_dir; - -my $blosxom_cgi = "$blosxom_root/../../blosxom.cgi"; -die "cannot find blosxom.cgi '$blosxom_cgi'" unless -f $blosxom_cgi; -die "blosxom.cgi '$blosxom_cgi' is not executable" unless -x $blosxom_cgi; - -my $fh = IO::File->new("$blosxom_root/expected.html", 'r') - or die "cannot open expected output file '$blosxom_root/expected.html': $!"; -my $expected; -{ - local $/ = undef; - $expected = <$fh>; - $fh->close; -} - -my $output = qx($blosxom_cgi); - -eq_or_diff($output, $expected, 'html output ok'); - diff --git a/t/04_plugin_dir.t b/t/04_plugin_dir.t new file mode 120000 index 0000000..e42f284 --- /dev/null +++ b/t/04_plugin_dir.t @@ -0,0 +1 @@ +driver \ No newline at end of file