From: Ian Jackson Date: Wed, 28 Oct 2015 16:55:59 +0000 (+0000) Subject: Testing: Disable srcdump in tests by default X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=cgi-auth-flexible.git;a=commitdiff_plain;h=352a6b4904774e3368a4ed1dbccc28787d942bc5 Testing: Disable srcdump in tests by default We will want to introduce a new srcdump test, but that does not exist yet. In the meantime the srcdump_prepare runs during every test page load (because we have no fastcgi or speedy or similar), which makes the general (non-srcdump) tests unecessarily slow. Signed-off-by: Ian Jackson --- diff --git a/tests/autotest b/tests/autotest index 9c4f9c4..b3118d3 100755 --- a/tests/autotest +++ b/tests/autotest @@ -12,6 +12,7 @@ set pwd [pwd] set env(HOME) $tt set env(CAFTEST_CAF) $pwd set env(TERM) vt100 +set env(CAFTEST_NOSRCDUMP) 1 log_user 0 log_file -a $tt/expect.log diff --git a/tests/cgi b/tests/cgi index da7b2f7..e59d12a 100755 --- a/tests/cgi +++ b/tests/cgi @@ -32,6 +32,11 @@ my @verifier_params =( get_url => sub { return $url }, ); +push @verifier_params, ( + srcdump_prepare => sub { }, + ) + if $ENV{'CAFTEST_NOSRCDUMP'}; + my $verifier = CGI::Auth::Flexible->new_verifier(@verifier_params); END { $verifier->disconnect() if $verifier; }