Re: Skipped tests marked as failed?

2001-11-10 Thread Stas Bekman
; and then the code will look like: my $skip_reason = missing foo; if ($skip_reason) { skip $skip_reason, 3; } else { # do something ok 1; ok 1; ok 1; } let us know if that's needed. _ Stas Bekman JAm_pH

Re: [patch take3] add test skipping reasoning

2001-11-09 Thread Stas Bekman
Doug MacEachern wrote: On Thu, 8 Nov 2001, Stas Bekman wrote: patch doesn't apply for me, but looks good so just commit and .. done +my @reasons = (); for (@modules) { +my $reason; if (/^[a-z0-9_]+$/) { not sure if your mail has munged the patch, but indentation looks

Re: Skipping subtests?

2001-11-08 Thread Stas Bekman
} that's according to Test::Harness manpage. May be you have different versions? _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto

[patch take2] add test skipping reasoning

2001-11-07 Thread Stas Bekman
); -plan tests = @pods + keys(%other_files), sub { $perlpod }; +plan tests = @pods + keys(%other_files), +sub { $perlpod ? 1 : dir $vars-{perlpod} doesn't exist}; my $location = /getfiles-perl-pod; _ Stas Bekman JAm_pH

Re: cvs commit: httpd-test/perl-framework/t/conf extra.conf.in

2001-11-03 Thread Stas Bekman
. _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://ticketmaster.com http://apacheweek.com http://singlesheaven.com http://perl.apache.org http

Re: cvs commit: httpd-test/perl-framework/t/conf extra.conf.in

2001-11-03 Thread Stas Bekman
and then will do all these things. I also plan to change t_cmp to trace only if there is a mismatch, or it's run under a special debug mode. Otherwise big tests generate too much clutter. _ Stas Bekman JAm_pH

Re: cvs commit: httpd-test/perl-framework/t/apache limits.t

2001-11-03 Thread Stas Bekman
be: ok t_cmp(($goodbad eq 'fail' ? 400 : 200), GET_RC(/, %fields), Testing LimitRequestFields; should $goodbad ); _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org

Re: example of a t/SKIP file?

2001-10-23 Thread Stas Bekman
1..0\n. _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://ticketmaster.com http://apacheweek.com http

Re: cvs commit: httpd-test/perl-framework/Apache-Test/lib/Apache TestServer.pm

2001-10-21 Thread Stas Bekman
=! 1 and WIN32 and we can solve it later. Or does it mean that the tests that require 1+ servers need to skip on WIN32? _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide

Re: cvs commit: httpd-test/perl-framework/t/modules env.t

2001-10-20 Thread Stas Bekman
/$_.shtml; -chomp $actual; +$actual =~ s/[\r\n]+$//s; print $_: EXPECT -$expected- ACTUAL -$actual-\n; return $actual eq $expected; }; -- _ Stas Bekman JAm_pH

[important] you must prefix printed debug/info comments in Perl tests with #

2001-10-20 Thread Stas Bekman
. _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://ticketmaster.com http://apacheweek.com http://singlesheaven.com http://perl.apache.org http://perlmonth.com/

Re: cvs commit: httpd-test/perl-framework/Apache-Test/lib/Apache TestUtil.pm

2001-10-20 Thread Stas Bekman
methods in this module? Or is it ok, since it's not exported? _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED

Re: [important] you must prefix printed debug/info comments in Perl tests with #

2001-10-20 Thread Stas Bekman
Rodent of Unusual Size wrote: Stas Bekman wrote: Which means that we should gradually change all the tests to start the comments with '#', or they may break in the future. Does that include things like the debug: messages in expires.t? Or are such immune or don't count? Anything that you print

Re: Apache-Test breakage

2001-10-18 Thread Stas Bekman
On Wed, 17 Oct 2001, Doug MacEachern wrote: On Wed, 17 Oct 2001, Stas Bekman wrote: t/TEST -proxy t/foo/bar.t ... I see exactly the same behavior with my patch and without, so I guess it was broken before. yup, i already told you the same in private email. but see the commit message

[patch] hint why the test was skipped

2001-10-18 Thread Stas Bekman
if $@; +return {0 = missing $_} if $@; } -return 1; +return {1 = undef}; } sub have_cgi { _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http

Re: Apache-Test breakage

2001-10-18 Thread Stas Bekman
Doug MacEachern wrote: On Thu, 18 Oct 2001, Stas Bekman wrote: is there anything else we need to do with opts parsing at this stage? now that we know all args and which are meant as test files, anything else should throw an error. for example what ken saw: % t/TEST t/notexist currently ignores

Re: Writing tests with Apache::Test doc has been started

2001-10-17 Thread Stas Bekman
available on the web and link to them from httpd.apache.org/test/ If you have something to contribute to the existing doc, please go ahead -- it still needs a lot of work. Thanks Geoff! _ Stas Bekman JAm_pH

Re: prob with lib path in Apache-Test

2001-10-10 Thread Stas Bekman
to point it there. So yes, you have to add a few 'lib' pragmas, but that's normal. You have to do it in any Perl code that uses modules that aren't located in the standard location. I'm glad you've solved this problem. _ Stas

Re: clean_files() where is it?

2001-10-05 Thread Stas Bekman
. _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://ticketmaster.com http://apacheweek.com http://singlesheaven.com http

Re: having probs setting @inc under Apache-test

2001-10-05 Thread Stas Bekman
the module first!! Yup, you got it right. I'll fix the docs. _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http

Re: some thing in the docs

2001-10-05 Thread Stas Bekman
clayton cottingham wrote: Stas Bekman wrote: 563PREOP = 'pod2text lib/Apache/Amazing.pm README', should it bePREOP = `pod2text lib/Apache/Amazing.pm README`, {back ticked?} nope wierd it only works backticked for me strange? what's the point of PREOP than? May be your version

Re: cvs commit: httpd-test/perl-framework/Apache-Test/lib/Apache TestConfigPerl.pm

2001-09-18 Thread Stas Bekman
Doug MacEachern wrote: i don't feel strongly enough either way to debate further. i'll leave the decision to you stas. neither do I, so I'm just leaving the way it's ($class, $self). _ Stas Bekman JAm_pH

Re: cvs commit: httpd-test/perl-framework/Apache-Test/lib/Apache TestConfigPerl.pm

2001-09-17 Thread Stas Bekman
that APACHE_TEST_* subs will be all functions and not OO methods, therefore I think that passing $module is just confusing. But if you think it may be of use in the future, sure let's keep it that way. _ Stas Bekman

Re: How to deal with PerlModule?

2001-09-17 Thread Stas Bekman
/Bar.pm hope that answers your question _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://apachetoday.com http

Re: Initial version of website up...

2001-09-17 Thread Stas Bekman
project. The source can be seen here: http://cvs.apache.org/viewcvs.cgi/modperl-docs/src/devel/writing_tests/writing_tests.pod thanks. _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org

Re: [patch] a cleaner make clean

2001-09-09 Thread Stas Bekman
On Sat, 8 Sep 2001, Doug MacEachern wrote: On Sat, 8 Sep 2001, Stas Bekman wrote: all autogenerated files should be cleaned. true. +my @clean_conf = map { t/conf/$_ } +qw(*.conf apache_test_config.pm ssl/ssl.conf); but we should really hook into calling 't/TEST -clean' via

Re: Bundle::ApacheTest

2001-09-06 Thread Stas Bekman
On Wed, 5 Sep 2001, Doug MacEachern wrote: On Sun, 2 Sep 2001, Stas Bekman wrote: I was thinking about creating two bundles: Bundle::ApacheTestMin (to include the absolute minimum required to run basic tests) and Bundle::ApacheTestMax to include everything that's needed to run all

Re: forcing cleanup

2001-09-06 Thread Stas Bekman
On Wed, 5 Sep 2001, Doug MacEachern wrote: On Sun, 2 Sep 2001, Stas Bekman wrote: this works for me. I had to exit on reconfiguration, since otherwise it'd fail to continue. Should I reconfigure in a different way, so I won't have to exit? great. you can use refresh() to reconfigure

Re: cvs commit: httpd-test/perl-framework/Apache-Test/lib/Apache TestConfig.pm TestConfigParse.pm

2001-09-06 Thread Stas Bekman
_ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://apachetoday.com http://eXtropia.com/ http://singlesheaven.com http://perl.apache.org http

Re: cvs commit: httpd-test/perl-framework/Apache-Test/lib/Apache TestConfig.pm TestRun.pm

2001-09-06 Thread Stas Bekman
. =-) -- justin I've just screwed up with stray -m tag :( must go and eat something... I am reverting it now :( _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http

Re: Bundle::ApacheTest

2001-09-06 Thread Stas Bekman
up? _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://apachetoday.com http://eXtropia.com/ http

Re: cvs commit: httpd-test/perl-framework/Apache-Test/lib/Apache TestConfig.pm TestConfigParse.pm

2001-09-06 Thread Stas Bekman
, portability issue. How about: $ENV{PATH} = ''; We use full paths anyway. _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL

Re: cvs commit: httpd-test/perl-framework/Apache-Test/lib/Apache TestConfig.pm TestConfigParse.pm

2001-09-06 Thread Stas Bekman
the perlsec manpage: % perldoc perlsec or as the mod_perl guide suggests: http://perl.apache.org/guide/help.html#Get_help_with_Perl_CGI: http://www.gunther.web66.com/FAQS/taintmode.html _ Stas Bekman JAm_pH

Re: cvs commit: httpd-test/perl-framework/Apache-Test/lib/Apache TestConfig.pm TestConfigParse.pm

2001-09-06 Thread Stas Bekman
/to/httpd-and-apxs:$PATH so I was ruining it. So would the empty path will be OK? local $ENV{PATH} = ''; _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http

new helper module Apache::TestUtil

2001-09-02 Thread Stas Bekman
$actual = GET_BODY $cgi_uri, Host = $_; chomp $actual; ok t_cmp_str($cgi_string $_, $actual, VirtualScriptAlias test ); } _ Stas Bekman JAm_pH -- Just

Re: forcing cleanup

2001-09-02 Thread Stas Bekman
On Fri, 31 Aug 2001, Doug MacEachern wrote: On Fri, 31 Aug 2001, Stas Bekman wrote: When you cvs update, make sure to run './t/TEST -clean'. I've noticed that one of the subtests in alias.t was failing. It was because extra.conf.in has been changed, but the stale autogenerated extra.conf

expect_ok sub?

2001-08-31 Thread Stas Bekman
for the test writers for free. _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://localhost/ http

forcing cleanup

2001-08-31 Thread Stas Bekman
or not, to cause less errors and questions? sorry Doug :) _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http

[patch] ./t/modules/vhost_alias.t

2001-08-31 Thread Stas Bekman
; } -rmdir htdocs/modules/vhost_alias; _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://localhost/ http

Re: 2.0.26?

2001-08-31 Thread Stas Bekman
written. Some variables weren't initialized and used while undef. which tests do you have this problem with? please report to the test-dev list, so their respective owners can fix these. Thanks. _ Stas Bekman JAm_pH

Apache/TestConfig.pm patch

2001-08-13 Thread Stas Bekman
}; $thaw-{vars}-{$key} = $self-{vars}-{$key}; $changed = 1; } _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto

tests documentation?

2001-08-11 Thread Stas Bekman
of map would be of immense value for people who join the tests project, and useful for the current contributors as the number of tests grow. Thank you. _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http

Re: t/modules/rewrite tweaking

2001-08-09 Thread Stas Bekman
On Wed, Aug 08, 2001 at 10:28:24AM +0800, Stas Bekman wrote: + + OK, so why not to do: /^[1-6]$/ ? this wouldnt test for the right thing. + I'd do it even more flexible: + + my $pat = join '', @num; + /^[$pat]$/ + + so now you can change @num and not to worry about forgetting adjusting

Re: t/modules/rewrite tweaking

2001-08-08 Thread Stas Bekman
:) _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://apachetoday.com http://eXtropia.com/ http://singlesheaven.com

cvs commit emails?

2001-08-08 Thread Stas Bekman
How do I get to see cvs commits for test-dev? _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http

t/modules/rewrite tweaking

2001-08-07 Thread Stas Bekman
operation if not, rather then report failure. In addition during the skip, you can print a note, how to add the missing feature. _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org

Re: t/modules/rewrite tweaking

2001-08-07 Thread Stas Bekman
On Tue, 7 Aug 2001, john sachs wrote: it is a range. so according to the error: Invalid [] range -6 before HERE mark in regex what kind of range -6 is? On Tue, Aug 07, 2001 at 02:13:35PM +0800, Stas Bekman wrote: + perl t/TEST httpd /home/stas/httpd-2.0/bin/httpd -run t/modules/rewrite.t

<    2   3   4   5   6   7