chiark / gitweb /
Testing: Disable srcdump in tests by default
authorIan Jackson <ian.jackson@eu.citrix.com>
Wed, 28 Oct 2015 16:55:59 +0000 (16:55 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 28 Oct 2015 16:55:59 +0000 (16:55 +0000)
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 <Ian.Jackson@eu.citrix.com>
tests/autotest
tests/cgi

index 9c4f9c4..b3118d3 100755 (executable)
@@ -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
index da7b2f7..e59d12a 100755 (executable)
--- 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; }