Return-Path: Delivered-To: apmail-httpd-test-dev-archive@www.apache.org Received: (qmail 44135 invoked from network); 22 Sep 2004 21:46:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 22 Sep 2004 21:46:49 -0000 Received: (qmail 40555 invoked by uid 500); 22 Sep 2004 21:46:48 -0000 Delivered-To: apmail-httpd-test-dev-archive@httpd.apache.org Received: (qmail 40494 invoked by uid 500); 22 Sep 2004 21:46:48 -0000 Mailing-List: contact test-dev-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-dev@httpd.apache.org Received: (qmail 40481 invoked by uid 99); 22 Sep 2004 21:46:48 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [195.154.174.52] (HELO mail.logilune.com) (195.154.174.52) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 22 Sep 2004 14:46:46 -0700 Received: from [127.0.0.1] (localhost.logilune.com [127.0.0.1]) by mail.logilune.com (Postfix) with ESMTP id 973F11E19A3 for ; Wed, 22 Sep 2004 23:46:43 +0200 (CEST) Message-ID: <4151F2C1.4050106@stason.org> Date: Wed, 22 Sep 2004 17:46:41 -0400 From: Stas Bekman Organization: Hope, Humanized User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040804 X-Accept-Language: en-us, en, he, ru MIME-Version: 1.0 To: test-dev@httpd.apache.org Subject: Re: -one-process configuration option References: <4150DC71.4080303@modperlcookbook.org> In-Reply-To: <4150DC71.4080303@modperlcookbook.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Geoffrey Young wrote: > hi all... > > I've found it necessary to toggle single server mode when using Apache-Test, > specifically for getting Devel::Cover to work with mod_perl 1.0 nicely. so, > I'd like to add an option for switching back to single server mode on demand > for a normal run. > > the problem is that TestServer, which controls how the server is started, > does not have access to TestRun parsed configuration options. TestServer > has access to TestConfig options, but all of those take arguments and > persist until the next time you run -clean, which isn't desirable. > > we've run into this issue before, wanting to give TestServer access to > per-run directives, but we never really had a decent solution. this one > just adds an Apache::TestRun object to the Apache::TestServer hash at the > appropriate times, which TestServer can then use if it so chooses. other > solutions welcome. +1, with the style fix below: > Index: Apache/TestServer.pm > + my $one_process = $self->{run}->{opts}->{'one-process'} ? > + $self->version_of(\%one_process) : > + ''; should be: my $one_process = $self->{run}->{opts}->{'one-process'} ? $self->version_of(\%one_process) : ''; -- __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:stas@stason.org http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com