Return-Path: Delivered-To: apmail-httpd-test-dev-archive@httpd.apache.org Received: (qmail 48280 invoked by uid 500); 13 May 2002 08:43:07 -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 48264 invoked from network); 13 May 2002 08:43:06 -0000 Message-ID: <3CDF7CA5.7010203@stason.org> Date: Mon, 13 May 2002 16:43:17 +0800 From: Stas Bekman Organization: Hope, Humanized User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc1) Gecko/00200203 X-Accept-Language: en-us, en MIME-Version: 1.0 To: httpd-test-dev list Cc: Alessandro Forghieri Subject: figuring out the t/TEST invocation arguments on windows Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N In Apache::TestSmoke we use t/TEST to start the test suite, however this doesn't work in windows, where one has to start the program via nmake or making the program a .bat file (pl2pbat) Alessandro Forghieri doesn't seem to make it working because of this. I've suggested to use: use Config; $cur_perl_path = (-x $^X) ? $^X : $Config{perlpath}; and then start t/TEST with: $cur_perl_path t/TEST but then Alessandro says it does not work the same as running via nmake. Can somebody help us here to make it work properly crossplatform? -------- Original Message -------- Subject: RE: mod_perl2: nmake test crashes apache Date: Mon, 13 May 2002 10:04:44 +0200 From: Alessandro Forghieri To: "'Stas Bekman'" [...] > But you don't really need -Mblib? If you don't we can use $^X || > $Config{perl} to figure out the path to the perl we are running under. > > can you replace perl in your patch with: > > use Config; > $cur_perl_path = (-x $^X) ? $^X : $Config{perlpath}; > > does it work for you? I tested this: use Config; my $cur_perl_path=(-x $^X) ? $^X : $Config{perlpath}; $self->{base_command} = "$cur_perl_path t/TEST"; #ALF and it appears to work... however: while D:\builds\modperl-2.0> perl t\TEST behaves differently than nmake test (that uses -Mblib). Specifically while nmake test (old CVS snapshot: I am downloading the new one right now) exhibits the crash that started this thread, 'perl t\TEST' hangs at conftree. Note that I am running in compatibility mode (Apache2) so I am wondering if this may be determining the difference in behavior. __________________________________________________________________ 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