skip "Static tests require 'expected' directory", 1 unless $expected;
$expected = "$blosxom_config_dir/../$expected" unless $expected =~ m!^/!;
skip "Static tests 'expected' directory is missing", 1 unless -d $expected;
- skip "Static tests 'static_dir' directory is missing", 1 unless -d $static_dir;
+ -d $static_dir or mkdir $static_dir
+ or die "mkdir on static_dir '$static_dir' failed: $!";
File::Remove::remove(\1, "$static_dir/*");
my ($a_short, $b_short) = ($a, $b);
$a_short =~ s!^.*\.\./!! if $a_short;
$b_short =~ s!^.*\.\./!! if $b_short;
- return if $b =~ m! /CVS$ !x;
+ return if $b && $b =~ m! /CVS$ !x;
if (! $b) {
fail("$a_short has no corresponding file");
} elsif (! $a) {
<description>Yet another Blosxom weblog.</description>
<language>en</language>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
- <generator>blosxom/2.1.0</generator>
+ <generator>blosxom/2.1.2+dev</generator>
<item>
<title>Lorem ipsum</title>
<pubDate>Wed, 19 Jul 2006 22:54:00 +0000</pubDate>
<link>http://localhost/2006/07/19#1</link>
<category></category>
- <guid isPermaLink="false">/1</guid>
+ <guid isPermaLink="false">http://localhost/1</guid>
<description>Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso
facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit
amet ipso facto.Lorem ipsum dolor sit amet ipso facto.
<description>Yet another Blosxom weblog.</description>
<language>en</language>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
- <generator>blosxom/2.1.0</generator>
+ <generator>blosxom/2.1.2+dev</generator>
<item>
<title>Lorem ipsum</title>
<pubDate>Wed, 19 Jul 2006 22:54:00 +0000</pubDate>
<link>http://localhost/2006/07/19#1</link>
<category></category>
- <guid isPermaLink="false">/1</guid>
+ <guid isPermaLink="false">http://localhost/1</guid>
<description>Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso
facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit
amet ipso facto.Lorem ipsum dolor sit amet ipso facto.
<description>Yet another Blosxom weblog.</description>
<language>en</language>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
- <generator>blosxom/2.1.0</generator>
+ <generator>blosxom/2.1.2+dev</generator>
<item>
<title>Lorem ipsum</title>
<pubDate>Wed, 19 Jul 2006 22:54:00 +0000</pubDate>
<link>http://localhost/2006/07/19#1</link>
<category></category>
- <guid isPermaLink="false">/1</guid>
+ <guid isPermaLink="false">http://localhost/1</guid>
<description>Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso
facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit
amet ipso facto.Lorem ipsum dolor sit amet ipso facto.
<description>Yet another Blosxom weblog.</description>
<language>en</language>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
- <generator>blosxom/2.1.0</generator>
+ <generator>blosxom/2.1.2+dev</generator>
<item>
<title>Lorem ipsum</title>
<pubDate>Wed, 19 Jul 2006 22:54:00 +0000</pubDate>
<link>http://localhost/2006/07/19#1</link>
<category></category>
- <guid isPermaLink="false">/1</guid>
+ <guid isPermaLink="false">http://localhost/1</guid>
<description>Lorem ipsum dolor sit amet ipso facto.Lorem ipsum dolor sit amet ipso
facto.Lorem ipsum dolor sit amet ipso facto. Lorem ipsum dolor sit
amet ipso facto.Lorem ipsum dolor sit amet ipso facto.