]> sipb.mit.edu Git - ikiwiki.git/commitdiff
relative URLs test: pass an appropriate PERL5LIB through
authorSimon McVittie <smcv@debian.org>
Sun, 5 Oct 2014 14:19:12 +0000 (15:19 +0100)
committerSimon McVittie <smcv@debian.org>
Sun, 5 Oct 2014 14:19:12 +0000 (15:19 +0100)
We were previously using the system copy of IkiWiki, because the CGI
resets its environment.

t/relativity.t

index ca1664f3ca53621a5b0d029d3faa76bef72da7f3..8903d03cc05bbf6c963ccd960e56715967662f9c 100755 (executable)
@@ -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
 );
 
@@ -539,6 +545,7 @@ add_plugins:
 - anonok
 anonok_pagespec: "*"
 reverse_proxy: 1
+ENV: { 'PERL5LIB': '$PERL5LIB' }
 EOF
 );