[Patch] add TEST_EXTRA_ARGS to allow passing arguments to t/TEST thru make invocation
I am working on an Apache::Test based test framework, and being able to pass extra conditionnal arguments to t/TEST thru make test would be very much usefull. Since right now, you can only turn verbose on or off. $> make test TEST_EXTRA_ARGS="-port 8899 -debug=gdb" For instance. Otherwise, I end up creating other make targets that look like some_special_test: $(FULLPERL) -I$(INST_ARCHLIB) -I$(INST_LIB) \ t/TEST -port 8899 -bugreport -verbose=$(TEST_VERBOSE) $(TEST_FILES) Forcing me to duplicate too much code for my taste. Thoughts? Index: Apache-Test/lib/Apache/TestMM.pm === RCS file: /home/cvs/httpd-test/perl-framework/Apache-Test/lib/Apache/TestMM.pm,v retrieving revision 1.34 diff -u -I$Id -r1.34 TestMM.pm --- Apache-Test/lib/Apache/TestMM.pm16 Apr 2004 19:47:42 - 1.34 +++ Apache-Test/lib/Apache/TestMM.pm28 Jun 2004 20:11:47 - @@ -63,12 +63,12 @@ test_clean : $(FULLPERL) -I$(INST_ARCHLIB) -I$(INST_LIB) \ - t/TEST -clean + t/TEST $(TEST_EXTRA_ARGS) -clean run_tests : test_clean $(PASSENV) \ $(FULLPERL) -I$(INST_ARCHLIB) -I$(INST_LIB) \ - t/TEST -bugreport -verbose=$(TEST_VERBOSE) $(TEST_FILES) + t/TEST $(TEST_EXTRA_ARGS) -bugreport -verbose=$(TEST_VERBOSE) $(TEST_FILES) test :: pure_all run_tests test_clean -- Philippe M. Chiasson m/gozer\@(apache|cpan|ectoplasm)\.org/ GPG KeyID : 88C3A5A5 http://gozer.ectoplasm.org/ F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 88C3A5A5 signature.asc Description: OpenPGP digital signature
ANNOUNCE: MasonX::Interp::WithCallbacks
Hi All, I'm pleased to announce the release of MasonX::Interp::WithCallbacks 1.12. The only major change over version 1.11 is the conversion of the build process from ExtUtils::MakeMaker to Module::Build, using the newly released Apache::TestMB to integrate with Apache::Test. This is the first CPAN module to use Apache::TestMB, and I'm hoping that it will set an example for other modules needing to use Apache::Test and wanting to convert to Module::Build. Other than that, changes are minor. Here's a list of the recent changes: 1.12 2004-06-28T17:04:23 - Fixed Apache tests to eliminate failure under more recent versions of Apache::Test and LWP. - Changed "%PARAMS" to the correct Mason hash, "%ARGS", in the synopsis. Reported by Mike Dorman. - Ported installer from ExtUtils::MakeMaker to Module::Build using the newly released Apache::TestMB. 1.11 Wed Oct 8 20:12:20 2003 - Require Class::Container 0.09 or later. It seems that older versions don't work properly. - Updated Apache test to skip tests if the Apache server doesn't run mod_perl. Suggesed by Geoffrey Young. - Stopped checking for presence of LWP in Apache tests, since Apache::TestClient should work fine for the simple test requests. - The module now requires HTML::Mason 1.23, rather than just the requirements in Makefile.PL. - Require Params::CallbackRequest 1.11 or later to be in sync with request callback order of execution. - Fixed failing tests of notes functionality under Apache. Not sure how they ever passed, frankly. Enjoy! David Begin forwarded message: From: PAUSE <[EMAIL PROTECTED]> Date: June 28, 2004 10:07:00 AM PDT To: "David Wheeler" <[EMAIL PROTECTED]> Subject: CPAN Upload: D/DW/DWHEELER/MasonX-Interp-WithCallbacks-1.12.tar.gz Reply-To: cpan-testers@perl.org The uploaded file MasonX-Interp-WithCallbacks-1.12.tar.gz has entered CPAN as file: $CPAN/authors/id/D/DW/DWHEELER/MasonX-Interp-WithCallbacks-1.12.tar.gz size: 24303 bytes md5: 3627be57c1d26744a36657afb9a8705a No action is required on your part Request entered by: DWHEELER (David Wheeler) Request entered on: Mon, 28 Jun 2004 17:05:54 GMT Request completed: Mon, 28 Jun 2004 17:06:59 GMT Thanks, -- paused, v460
[ANNOUNCE] Apache-Test-1.12
The URL http://perl.apache.org/~geoff/Apache-Test-1.12.tar.gz has entered CPAN as file: $CPAN/authors/id/G/GE/GEOFF/Apache-Test-1.12.tar.gz size: 120719 bytes md5: 1db40538fd85be3544de8614552c385d --Geoff Changes since 1.11: Force projects that use Apache::TestReportPerl to implement report_to() if they use t/REPORT in their projects. [Stas] Add redirect tests [David Wheeler <[EMAIL PROTECTED]>] add -no-httpd runtime option to allow tests to run without configuring, starting, or stopping Apache. this essentially provides a direct Test::Harness interface through t/TEST, useful for running single tests that do not depend on Apache. [Geoffrey Young] Add support for Module::Build, with a new module: Apache::TestMB (a "clone" of Apache::TestMM for ExtUtils::MakeMaker). [David Wheeler <[EMAIL PROTECTED]>] switch the order of arguments in t_cmp() and t_is_equal() so that the order matches Test::More::is() and other Test::More functions. the new call is: t_cmp($received, $expected, $comment); support for $expected as the first argument marked as deprecated and will be removed in the course of the next few release cycles. [Geoffrey Young] add skip_reason() to Apache::Test, which provides a mechanism for user-specified skip messages [Geoffrey Young] Tweak Apache::TestRun to support test filenames starting with /(.\\)?t\\/ prefixes, windows style (needed for t/SMOKE) [Steve Hay]
Re: cvs commit: httpd-test/perl-framework/Apache-Test Changes
David Wheeler wrote: On Jun 28, 2004, at 6:14 AM, Geoffrey Young wrote: that's ok - I have rerolled a new candidate with these changes incorporated for you to test ;) if all looks good to you I'll release. All tests pass for me. I don't know if this was intentional, but the new tests I introduced last week aren't in the current tarball. It might just make sense to put t/redirect.t into MANIFEST after this release, so that there is some more testing of them between now and 1.13. Although they should just work, and where they don't it should identify bugs in the current code anyway...But I leave it up to you guys. Added. We used to not do that manually, since modperl-2.0 automatically generates MANIFEST. Not the case with A-T. Geoff, just go ahead and release it with the new MANIFEST. -- __ Stas BekmanJAm_pH --> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
Re: A::T - Running tests against multiple servers
On Fri, Jun 25, 2004 at 01:39:50PM +0300, Stas Bekman wrote: > You can do that easily: > > 1) start the server: > t/TEST -start > > 2) start as many clients as you want (e.g. 3 clients): > > t/TEST -run [tests] & > t/TEST -run [tests] & > t/TEST -run [tests] & Thanks Stas! I was finally able to get my tests to fail as I was seeing in the production server. That's a nice recipe for catching race conditions. William -- Knowmad Services Inc. http://www.knowmad.com
Re: cvs commit: httpd-test/perl-framework/Apache-Test Changes
On Jun 28, 2004, at 6:14 AM, Geoffrey Young wrote: that's ok - I have rerolled a new candidate with these changes incorporated for you to test ;) if all looks good to you I'll release. All tests pass for me. I don't know if this was intentional, but the new tests I introduced last week aren't in the current tarball. It might just make sense to put t/redirect.t into MANIFEST after this release, so that there is some more testing of them between now and 1.13. Although they should just work, and where they don't it should identify bugs in the current code anyway...But I leave it up to you guys. Regards, David
Re: cvs commit: httpd-test/perl-framework/Apache-Test Changes
Stas Bekman wrote: > [EMAIL PROTECTED] wrote: > >> stas2004/06/27 11:46:03 >> >> Modified:perl-framework/Apache-Test/lib/Apache TestReportPerl.pm >>perl-framework/Apache-Test Changes >> Log: >> Force projects that use Apache::TestReportPerl to implement >> report_to() if they use t/REPORT in their projects. > > > ay, didn't realize the candidate is still out there and wasn't released. > Sorry about that. Though these changes should be harmless :) that's ok - I have rerolled a new candidate with these changes incorporated for you to test ;) if all looks good to you I'll release. --Geoff
Reg Flood
HI, I have download the flood utility from the URL "http://apache.towardex.com/httpd/flood/"; I need the guidence how to configure , Install and Run this Flood Utility. The steps i used were i moved the entire source content into a linux m/c and if i give the " ./configure " it says as bad interpretter. Could you guide me pls Thanks, Raajesh This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com
Re: [RELEASE CANDIDATE] Apache-Test-1.12
On Jun 27, 2004, at 1:21 PM, Stas Bekman wrote: Heh, sorry. Should have been easily do-able with patch -p1, though. Ah, right, too many flags to remember :) it's easier when all patches are in the same format :) Yeah, -p is the only one I actually know, since I often get patches generated from different directories. Regards, David