You are viewing a plain text version of this content. The canonical link for it is here.
Posted to test-cvs@httpd.apache.org by st...@apache.org on 2003/05/01 08:22:35 UTC

cvs commit: httpd-test/perl-framework/Apache-Test/lib/Apache TestMM.pm TestReport.pm TestRun.pm TestSmoke.pm

stas        2003/04/30 23:22:35

  Modified:    perl-framework/Apache-Test Changes
               perl-framework/Apache-Test/lib/Apache TestMM.pm
                        TestReport.pm TestRun.pm TestSmoke.pm
  Log:
  improved support for 3rd party modules test configuration setup:
  automatically include 'use blib' in autogenerated t/TEST
  
  Revision  Changes    Path
  1.15      +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.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- Changes	30 Apr 2003 05:03:36 -0000	1.14
  +++ Changes	1 May 2003 06:22:35 -0000	1.15
  @@ -8,6 +8,10 @@
   
   =item 1.01-dev
   
  +improved support for 3rd party modules test configuration setup:
  +automatically include 'use blib' in autogenerated t/TEST and add 'use
  +Apache2' in the startup file for mod_perl 2.0. [Stas]
  +
   new configuration option: -libmodperl [path/to/]mod_perl.so (so one
   can build several DSO objects, rename them, so several builds can
   co-exist under the same LIBEXECDIR and test them all. Mainly useful
  
  
  
  1.25      +4 -2      httpd-test/perl-framework/Apache-Test/lib/Apache/TestMM.pm
  
  Index: TestMM.pm
  ===================================================================
  RCS file: /home/cvs/httpd-test/perl-framework/Apache-Test/lib/Apache/TestMM.pm,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- TestMM.pm	27 Mar 2003 07:57:06 -0000	1.24
  +++ TestMM.pm	1 May 2003 06:22:35 -0000	1.25
  @@ -72,10 +72,12 @@
   
       unlink $file if -e $file;
   
  -    my $body = Apache::TestConfig->modperl_2_inc_fixup;
  +    my $body = "use blib;\n";
  +
  +    $body .= Apache::TestConfig->modperl_2_inc_fixup;
   
       if (@Apache::TestMM::Argv) {
  -        $body .= "\%Apache::TestConfig::Argv = qw(@Apache::TestMM::Argv);\n";
  +        $body .= "\n\%Apache::TestConfig::Argv = qw(@Apache::TestMM::Argv);\n";
       }
   
       my $in = Symbol::gensym();
  
  
  
  1.8       +1 -0      httpd-test/perl-framework/Apache-Test/lib/Apache/TestReport.pm
  
  Index: TestReport.pm
  ===================================================================
  RCS file: /home/cvs/httpd-test/perl-framework/Apache-Test/lib/Apache/TestReport.pm,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- TestReport.pm	27 Mar 2003 07:57:06 -0000	1.7
  +++ TestReport.pm	1 May 2003 06:22:35 -0000	1.8
  @@ -21,6 +21,7 @@
       $file ||= catfile 't', 'REPORT';
   
       my $content = join "\n",
  +        "use blib;",
           Apache::TestConfig->modperl_2_inc_fixup,
           Apache::TestConfig->perlscript_header,
           "use $class;",
  
  
  
  1.108     +4 -2      httpd-test/perl-framework/Apache-Test/lib/Apache/TestRun.pm
  
  Index: TestRun.pm
  ===================================================================
  RCS file: /home/cvs/httpd-test/perl-framework/Apache-Test/lib/Apache/TestRun.pm,v
  retrieving revision 1.107
  retrieving revision 1.108
  diff -u -r1.107 -r1.108
  --- TestRun.pm	30 Apr 2003 03:29:00 -0000	1.107
  +++ TestRun.pm	1 May 2003 06:22:35 -0000	1.108
  @@ -838,10 +838,12 @@
   
       $file ||= catfile 't', 'TEST';
   
  -    my $body = Apache::TestConfig->modperl_2_inc_fixup;
  +    my $body = "use blib;\n";
  +
  +    $body .= Apache::TestConfig->modperl_2_inc_fixup;
   
       if (@Apache::TestMM::Argv) {
  -        $body .= "\%Apache::TestConfig::Argv = qw(@Apache::TestMM::Argv);\n";
  +        $body .= "\n\%Apache::TestConfig::Argv = qw(@Apache::TestMM::Argv);\n";
       }
   
       my $header = Apache::TestConfig->perlscript_header;
  
  
  
  1.19      +1 -0      httpd-test/perl-framework/Apache-Test/lib/Apache/TestSmoke.pm
  
  Index: TestSmoke.pm
  ===================================================================
  RCS file: /home/cvs/httpd-test/perl-framework/Apache-Test/lib/Apache/TestSmoke.pm,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- TestSmoke.pm	27 Mar 2003 07:57:06 -0000	1.18
  +++ TestSmoke.pm	1 May 2003 06:22:35 -0000	1.19
  @@ -461,6 +461,7 @@
       $file ||= catfile 't', 'SMOKE';
   
       my $content = join "\n",
  +        "use blib;",
           Apache::TestConfig->modperl_2_inc_fixup,
           Apache::TestConfig->perlscript_header,
           "use $class;",