aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2014-10-05 15:19:12 +0100
committerSimon McVittie <smcv@debian.org>2014-10-05 15:19:12 +0100
commit210bf742b92bde3baf1ca6d7af9f847d052a0691 (patch)
treeb9200aa81c7513e3c190d36b7fb14e2a597cf1c6 /t
parent04aec8ea6098076834540428cdd249a87c89e642 (diff)
downloadikiwiki-210bf742b92bde3baf1ca6d7af9f847d052a0691.tar
ikiwiki-210bf742b92bde3baf1ca6d7af9f847d052a0691.tar.gz
relative URLs test: pass an appropriate PERL5LIB through
We were previously using the system copy of IkiWiki, because the CGI resets its environment.
Diffstat (limited to 't')
-rwxr-xr-xt/relativity.t7
1 files changed, 7 insertions, 0 deletions
diff --git a/t/relativity.t b/t/relativity.t
index ca1664f3c..8903d03cc 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
);
@@ -539,6 +545,7 @@ add_plugins:
- anonok
anonok_pagespec: "*"
reverse_proxy: 1
+ENV: { 'PERL5LIB': '$PERL5LIB' }
EOF
);