Return-Path: Delivered-To: apmail-httpd-test-cvs-archive@www.apache.org Received: (qmail 47204 invoked from network); 12 Oct 2004 12:55:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 12 Oct 2004 12:55:29 -0000 Received: (qmail 28330 invoked by uid 500); 12 Oct 2004 12:55:29 -0000 Delivered-To: apmail-httpd-test-cvs-archive@httpd.apache.org Received: (qmail 28260 invoked by uid 500); 12 Oct 2004 12:55:28 -0000 Mailing-List: contact test-cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: test-dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list test-cvs@httpd.apache.org Received: (qmail 28246 invoked by uid 99); 12 Oct 2004 12:55:28 -0000 X-ASF-Spam-Status: No, hits=-10.0 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Tue, 12 Oct 2004 05:55:27 -0700 Received: (qmail 47138 invoked by uid 1462); 12 Oct 2004 12:55:26 -0000 Date: 12 Oct 2004 12:55:26 -0000 Message-ID: <20041012125526.47137.qmail@minotaur.apache.org> From: geoff@apache.org To: httpd-test-cvs@apache.org Subject: cvs commit: httpd-test/perl-framework/Apache-Test/lib/Apache TestMM.pm X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N geoff 2004/10/12 05:55:26 Modified: perl-framework/Apache-Test Changes perl-framework/Apache-Test/lib/Apache TestMM.pm Log: add 'testcover' make target for running tests with Devel::Cover Revision Changes Path 1.175 +3 -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.174 retrieving revision 1.175 diff -u -r1.174 -r1.175 --- Changes 12 Oct 2004 12:32:34 -0000 1.174 +++ Changes 12 Oct 2004 12:55:26 -0000 1.175 @@ -8,6 +8,9 @@ =item 1.15-dev +add 'testcover' make target for running tests with Devel::Cover +[Geoffrey Young] + 1.39 +25 -1 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.38 retrieving revision 1.39 diff -u -r1.38 -r1.39 --- TestMM.pm 15 Sep 2004 23:55:31 -0000 1.38 +++ TestMM.pm 12 Oct 2004 12:55:26 -0000 1.39 @@ -57,7 +57,31 @@ PASSENV = $env EOF - return $preamble . <<'EOF'; + my $cover; + + if (eval { require Devel::Cover }) { + + my $atdir = File::Spec->catfile($ENV{HOME}, '.apache-test'); + + $cover = <<"EOF" + +testcover : + -\@cover -delete + -\@HARNESS_PERL_SWITCHES=-MDevel::Cover=+inc,$atdir \ + APACHE_TEST_EXTRA_ARGS=-one-process \$(MAKE) test + -\@cover +EOF + } + else { + + $cover = <<'EOF'; + +testcover : + @echo "Cannot run testcover action unless Devel::Cover is installed" +EOF + } + + return $preamble . <<'EOF' . $cover; TEST_VERBOSE = 0 TEST_FILES =