Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: Dev

make test w/ TEST_FILES

 

 

ModPerl dev RSS feed   Index | Next | Previous | View Threaded


pgollucci at p6m7g8

Oct 29, 2005, 8:59 PM

Post #1 of 6 (1061 views)
Permalink
make test w/ TEST_FILES

Hi,

make test TEST_FILES="t/apache/content_length_header.t"

does stuff

now the ModPerl-Registry test suite tries to run
the test isn't found thats an error.

It also slows you down a lot if you're trying to run a single test file on 50
different configurations/combinations of httpd2, perl, and mod_perl2.

I assume this a well known annoyance, is there anything we can do about it
before I invest time in looking into this ?





--
END
------------------------------------------------------------
What doesn't kill us can only make us stronger.
Nothing is impossible.

Philip M. Gollucci (pgollucci[at]p6m7g8.com) 301.254.5198
Consultant / http://p6m7g8.net/Resume/
Senior Developer / Liquidity Services, Inc.
http://www.liquidityservicesinc.com
http://www.liquidation.com
http://www.uksurplus.com
http://www.govliquidation.com
http://www.gowholesale.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe[at]perl.apache.org
For additional commands, e-mail: dev-help[at]perl.apache.org


stas at stason

Oct 29, 2005, 10:06 PM

Post #2 of 6 (1033 views)
Permalink
Re: make test w/ TEST_FILES [In reply to]

Philip M. Gollucci wrote:
> Hi,
>
> make test TEST_FILES="t/apache/content_length_header.t"
>
> does stuff
>
> now the ModPerl-Registry test suite tries to run
> the test isn't found thats an error.
>
> It also slows you down a lot if you're trying to run a single test file
> on 50 different configurations/combinations of httpd2, perl, and mod_perl2.
>
> I assume this a well known annoyance, is there anything we can do about
> it before I invest time in looking into this ?

I never use that approach. make test is a way too slow if you need to do
repetitive testing. I always do:

t/TEST t/apache/content_length_header.t

In which case it'll never descend into sub-dirs.

--
_____________________________________________________________
Stas Bekman mailto:stas[at]stason.org http://stason.org/
MailChannels: Assured Messaging(TM) http://mailchannels.com/
The "Practical mod_perl" book http://modperlbook.org/
http://perl.apache.org/ http://perl.org/ http://logilune.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe[at]perl.apache.org
For additional commands, e-mail: dev-help[at]perl.apache.org


pgollucci at p6m7g8

Oct 29, 2005, 10:20 PM

Post #3 of 6 (1031 views)
Permalink
Re: make test w/ TEST_FILES [In reply to]

Stas Bekman wrote:
> I never use that approach. make test is a way too slow if you need to do
> repetitive testing. I always do:
>
> t/TEST t/apache/content_length_header.t
>
> In which case it'll never descend into sub-dirs.
Agreed. Me too, but assuming for some reason someone did want make test to do
what I hoped it would do.

--
END
------------------------------------------------------------
What doesn't kill us can only make us stronger.
Nothing is impossible.

Philip M. Gollucci (pgollucci[at]p6m7g8.com) 301.254.5198
Consultant / http://p6m7g8.net/Resume/
Senior Developer / Liquidity Services, Inc.
http://www.liquidityservicesinc.com
http://www.liquidation.com
http://www.uksurplus.com
http://www.govliquidation.com
http://www.gowholesale.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe[at]perl.apache.org
For additional commands, e-mail: dev-help[at]perl.apache.org


stas at stason

Oct 29, 2005, 11:08 PM

Post #4 of 6 (1028 views)
Permalink
Re: make test w/ TEST_FILES [In reply to]

Philip M. Gollucci wrote:
> Stas Bekman wrote:
>
>> I never use that approach. make test is a way too slow if you need to
>> do repetitive testing. I always do:
>>
>> t/TEST t/apache/content_length_header.t
>>
>> In which case it'll never descend into sub-dirs.
>
> Agreed. Me too, but assuming for some reason someone did want make test
> to do what I hoped it would do.

Well, you can always fix it not to propogate the TEST_FILES argument. You
will probably have to dig into makemaker's guts to figure out how.


--
_____________________________________________________________
Stas Bekman mailto:stas[at]stason.org http://stason.org/
MailChannels: Assured Messaging(TM) http://mailchannels.com/
The "Practical mod_perl" book http://modperlbook.org/
http://perl.apache.org/ http://perl.org/ http://logilune.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe[at]perl.apache.org
For additional commands, e-mail: dev-help[at]perl.apache.org


geoff at modperlcookbook

Oct 30, 2005, 7:06 AM

Post #5 of 6 (1029 views)
Permalink
Re: make test w/ TEST_FILES [In reply to]

Stas Bekman wrote:
> Philip M. Gollucci wrote:
>
>> Stas Bekman wrote:
>>
>>> I never use that approach. make test is a way too slow if you need to
>>> do repetitive testing. I always do:
>>>
>>> t/TEST t/apache/content_length_header.t
>>>
>>> In which case it'll never descend into sub-dirs.
>>
>>
>> Agreed. Me too, but assuming for some reason someone did want make
>> test to do what I hoped it would do.
>
>
> Well, you can always fix it not to propogate the TEST_FILES argument.
> You will probably have to dig into makemaker's guts to figure out how.

please, please don't do that. well, at least not anywhere in Apache-Test :)

some of us use TEST_FILES insanely frequently, so removing that is kinda out
of the question.

I'm not sure if it will help in your specific case, but instead of 'make
test' you can 'make run_tests' which skips the config/reclean part, making
life a bit quicker. if you're doing non-apache related stuff for your test
you can also -no-httpd (via APACHE_TEST_EXTRA_ARGS if using make) to skip
httpd config, stop, and start. that plus run_tests gives you back minutes
of your testing life if using A-T to run your test suite, are stuck with
make for running tests, and want to test a non-httpd-oriented test...

HTH

--Geoff

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe[at]perl.apache.org
For additional commands, e-mail: dev-help[at]perl.apache.org


stas at stason

Oct 30, 2005, 8:54 AM

Post #6 of 6 (1029 views)
Permalink
Re: make test w/ TEST_FILES [In reply to]

Geoffrey Young wrote:
>
> Stas Bekman wrote:
>
>>Philip M. Gollucci wrote:
>>
>>
>>>Stas Bekman wrote:
>>>
>>>
>>>>I never use that approach. make test is a way too slow if you need to
>>>>do repetitive testing. I always do:
>>>>
>>>> t/TEST t/apache/content_length_header.t
>>>>
>>>>In which case it'll never descend into sub-dirs.
>>>
>>>
>>>Agreed. Me too, but assuming for some reason someone did want make
>>>test to do what I hoped it would do.
>>
>>
>>Well, you can always fix it not to propogate the TEST_FILES argument.
>>You will probably have to dig into makemaker's guts to figure out how.
>
>
> please, please don't do that. well, at least not anywhere in Apache-Test :)
>
> some of us use TEST_FILES insanely frequently, so removing that is kinda out
> of the question.

My suggestion was to not propogate the TEST_FILES argument from the mp2's
top-level to its sub-dirs. Not ignore it.

--
_____________________________________________________________
Stas Bekman mailto:stas[at]stason.org http://stason.org/
MailChannels: Assured Messaging(TM) http://mailchannels.com/
The "Practical mod_perl" book http://modperlbook.org/
http://perl.apache.org/ http://perl.org/ http://logilune.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe[at]perl.apache.org
For additional commands, e-mail: dev-help[at]perl.apache.org

ModPerl dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.