X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/blobdiff_plain/823268e5c78be454f0da5013c1bfa7e5d936902d..b0a35c817e453a8d19fb3d52a093e3aee68c66aa:/t/relativity.t diff --git a/t/relativity.t b/t/relativity.t index ca1664f3c..0f7d014c5 100755 --- a/t/relativity.t +++ b/t/relativity.t @@ -18,6 +18,7 @@ BEGIN { use_ok("IkiWiki"); } +my $PERL5LIB = 'blib/lib:blib/arch'; my $pwd = getcwd(); # Black-box (ish) test for relative linking between CGI and static content @@ -80,6 +81,7 @@ cgi_wrappermode: 0754 add_plugins: - anonok anonok_pagespec: "*" +ENV: { 'PERL5LIB': '$PERL5LIB' } EOF ); @@ -177,6 +179,7 @@ cgi_wrappermode: 0754 add_plugins: - anonok anonok_pagespec: "*" +ENV: { 'PERL5LIB': '$PERL5LIB' } EOF ); @@ -268,6 +271,7 @@ cgi_wrappermode: 0754 add_plugins: - anonok anonok_pagespec: "*" +ENV: { 'PERL5LIB': '$PERL5LIB' } EOF ); @@ -372,6 +376,7 @@ cgi_wrappermode: 0754 add_plugins: - anonok anonok_pagespec: "*" +ENV: { 'PERL5LIB': '$PERL5LIB' } EOF ); @@ -483,6 +488,7 @@ cgi_wrappermode: 0754 add_plugins: - anonok anonok_pagespec: "*" +ENV: { 'PERL5LIB': '$PERL5LIB' } EOF ); @@ -515,11 +521,8 @@ run(["./t/tmp/ikiwiki.cgi"], \undef, \$content, init => sub { %bits = parse_cgi_content($content); like($bits{tophref}, qr{^(?:\Q$pwd\E/t/tmp/out|\.)/$}); like($bits{cgihref}, qr{^(?:file://)?/\$LIB/ikiwiki-w3m.cgi/ikiwiki.cgi$}); -TODO: { -local $TODO = "should be file:///"; like($bits{basehref}, qr{^(?:(?:file:)?//)?\Q$pwd\E/t/tmp/out/$}); like($bits{stylehref}, qr{^(?:(?:(?:file:)?//)?\Q$pwd\E/t/tmp/out|\.)/style.css$}); -} ####################################################################### # site 6: we're behind a reverse-proxy @@ -539,6 +542,7 @@ add_plugins: - anonok anonok_pagespec: "*" reverse_proxy: 1 +ENV: { 'PERL5LIB': '$PERL5LIB' } EOF );