httpd-test-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ge...@apache.org
Subject cvs commit: httpd-test/perl-framework/Apache-Test/lib/Apache Test.pm
Date Sat, 31 Jul 2004 01:35:25 GMT
geoff       2004/07/30 18:35:25

  Modified:    perl-framework/Apache-Test Changes
               perl-framework/Apache-Test/lib/Apache Test.pm
  Log:
  add have_php() which will return true when either mod_php4 or mod_php5
  is available, providing functionality similar to have_cgi()
  
  Revision  Changes    Path
  1.151     +4 -0      httpd-test/perl-framework/Apache-Test/Changes
  
  Index: Changes
  ===================================================================
  RCS file: /home/cvs/httpd-test/perl-framework/Apache-Test/Changes,v
  retrieving revision 1.150
  retrieving revision 1.151
  diff -u -r1.150 -r1.151
  --- Changes	28 Jul 2004 21:58:53 -0000	1.150
  +++ Changes	31 Jul 2004 01:35:25 -0000	1.151
  @@ -8,6 +8,10 @@
   
   =item 1.13-dev
   
  +add have_php() which will return true when either mod_php4 or mod_php5
  +is available, providing functionality similar to have_cgi().
  +[Geoffrey Young]
  +
   Add APACHE_TEST_EXTRA_ARGS make variable to all invocations to t/TEST
   to allow passing extra arguments from the command line. [Gozer]
   
  
  
  
  1.87      +12 -1     httpd-test/perl-framework/Apache-Test/lib/Apache/Test.pm
  
  Index: Test.pm
  ===================================================================
  RCS file: /home/cvs/httpd-test/perl-framework/Apache-Test/lib/Apache/Test.pm,v
  retrieving revision 1.86
  retrieving revision 1.87
  diff -u -r1.86 -r1.87
  --- Test.pm	8 Jul 2004 02:54:04 -0000	1.86
  +++ Test.pm	31 Jul 2004 01:35:25 -0000	1.87
  @@ -29,7 +29,8 @@
                have_cgi have_access have_auth have_module have_apache
                have_min_apache_version have_apache_version have_perl 
                have_min_perl_version have_min_module_version
  -             have_threads under_construction skip_reason have_apache_mpm);
  +             have_threads under_construction skip_reason have_apache_mpm
  +             have_php);
   
   # everything but ok(), skip(), and plan() - Test::More provides these
   my @test_more_exports = grep { ! /^(ok|skip|plan)$/ } @EXPORT;
  @@ -259,6 +260,10 @@
       have_module('cgi') || have_module('cgid');
   }
   
  +sub have_php {
  +    have_module('php4') || have_module('php5');
  +}
  +
   sub have_access {
       have_module('access') || have_module('authz_host');
   }
  @@ -574,6 +579,12 @@
     plan tests => 5, &have_cgi;
   
   Requires mod_cgi or mod_cgid to be installed.
  +
  +=item have_php
  +
  +  plan tests => 5, have_php;
  +
  +Requires mod_php4 or mod_php5 to be installed.
   
   =item have_apache
   
  
  
  

Mime
View raw message