chiark / gitweb /
Testing: test.cgi: Honour CAFTEST_URL
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 27 Oct 2015 16:49:15 +0000 (16:49 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 27 Oct 2015 17:15:43 +0000 (17:15 +0000)
No-one sets this yet.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
test.cgi

index d6de399..3261842 100755 (executable)
--- a/test.cgi
+++ b/test.cgi
@@ -24,6 +24,10 @@ my @verifier_params =(
     debug => sub { print STDERR "DEBUG ", @_[2..@_-1]; },
     );
 
+push @verifier_params, (
+    get_url => sub { return $ENV{'CAFTEST_URL'}; },
+    ) if $ENV{'CAFTEST_URL'};
+
 my $verifier = CGI::Auth::Flexible->new_verifier(@verifier_params);
 
 END { $verifier->disconnect() if $verifier; }