Re: Can Apache::TestMB suppress APXS warnings?
[prev]
[thread]
[next]
[Date index for 2004/12/21]
On Mon, 20 Dec 2004, Stas Bekman wrote:
> Joshua Hoblitt wrote:
>> Hi Folks,
>>
>> I've been unable to figure out how to get Apache::TestMB to setup my
>> build
>> environment in such a way as to suppress APXS warnings during a test run.
>> e.g.
>>
>> --
>> t/10_client_new........................APXS (/usr/local/apache/bin/apxs)
>> query for SBINDIR failed
>> APXS (/usr/local/apache/bin/apxs) query for SYSCONFDIR failed
>> APXS (/usr/local/apache/bin/apxs) query for PREFIX failed
>> t/10_client_new........................ok
>> t/11_client_create.....................APXS (/usr/local/apache/bin/apxs)
>> query for SBINDIR failed
>> APXS (/usr/local/apache/bin/apxs) query for SYSCONFDIR failed
>> APXS (/usr/local/apache/bin/apxs) query for PREFIX failed
>> t/11_client_create.....................ok
>> t/12_client_replicate..................APXS (/usr/local/apache/bin/apxs)
>> query for SBINDIR failed
>> APXS (/usr/local/apache/bin/apxs) query for SYSCONFDIR failed
>> APXS (/usr/local/apache/bin/apxs) query for PREFIX failed
>> t/12_client_replicate..................ok
>> t/13_client_cull.......................APXS (/usr/local/apache/bin/apxs)
>> query for SBINDIR failed
>> APXS (/usr/local/apache/bin/apxs) query for SYSCONFDIR failed
>> APXS (/usr/local/apache/bin/apxs) query for PREFIX failed
>> t/13_client_cull.......................ok
>> --
>>
>> Is it possible to silence these gratuitous warnings?
>
> which modperl is that?
"Apache/1.3.33 (Unix) mod_perl/1.29" and I'm using Apache::Test/Apache::TestMB 1.17.
> what code do you have in your tests that invokes those?
Any of the .t files that have "use Apache::Test qw( -withtestmore );" in them.
The test files that only use just Test::More don't give any APXS errors
(although they are all being run by Apache::TestRunPerl). It also displays a
number of APXS warnings at the begnning of the test run.
Here is the complete output of a test run:
--
$ make test
/usr/bin/perl5.8.5 Build --makefile_env_macros 1 test
/usr/bin/perl5.8.5 -I /home/moa/jhoblitt/docs/perl/dev/modules/PS-IPP-IData/blib/lib -I /home/moa/jhoblitt/docs/perl/dev/modules/PS-IPP-IData/blib/arch t/TEST -clean
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/bin/perl5.8.5 /home/moa/jhoblitt/docs/perl/dev/modules/PS-IPP-IData/t/TEST -clean
/usr/bin/perl5.8.5 -I /home/moa/jhoblitt/docs/perl/dev/modules/PS-IPP-IData/blib/lib -I /home/moa/jhoblitt/docs/perl/dev/modules/PS-IPP-IData/blib/arch t/TEST -bugreport -verbose=0
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/bin/perl5.8.5 /home/moa/jhoblitt/docs/perl/dev/modules/PS-IPP-IData/t/TEST -bugreport -verbose=0
APXS (/usr/local/apache/bin/apxs) query for SBINDIR failed
APXS (/usr/local/apache/bin/apxs) query for TARGET failed
APXS (/usr/local/apache/bin/apxs) query for SYSCONFDIR failed
APXS (/usr/local/apache/bin/apxs) query for PREFIX failed
APXS (/usr/local/apache/bin/apxs) query for LIBEXECDIR failed
APXS (/usr/local/apache/bin/apxs) query for LIBEXECDIR failed
APXS (/usr/local/apache/bin/apxs) query for LIBEXECDIR failed
/usr/local/apache/bin/httpd -d /home/moa/jhoblitt/docs/perl/dev/modules/PS-IPP-IData/t -f /home/moa/jhoblitt/docs/perl/dev/modules/PS-IPP-IData/t/conf/httpd.conf -D APACHE1
using Apache/1.3.33
waiting 60 seconds for server to start: .
waiting 60 seconds for server to start: ok (waited 0 secs)
server moa:8529 started
t/01_load.......................ok
t/02_server_setup...............ok
t/03_server_create_object.......ok
t/04_server_replicate_object....ok
t/05_server_lock_object.........ok
t/06_server_unlock_object.......ok
t/07_server_find_instances......ok
t/08_server_delete_instance.....ok
t/09_server_stat_object.........ok
t/10_client_new.................APXS (/usr/local/apache/bin/apxs) query for SBINDIR failed
APXS (/usr/local/apache/bin/apxs) query for SYSCONFDIR failed
APXS (/usr/local/apache/bin/apxs) query for PREFIX failed
t/10_client_new.................ok
t/11_client_create..............APXS (/usr/local/apache/bin/apxs) query for SBINDIR failed
APXS (/usr/local/apache/bin/apxs) query for SYSCONFDIR failed
APXS (/usr/local/apache/bin/apxs) query for PREFIX failed
t/11_client_create..............ok
t/12_client_replicate...........APXS (/usr/local/apache/bin/apxs) query for SBINDIR failed
APXS (/usr/local/apache/bin/apxs) query for SYSCONFDIR failed
APXS (/usr/local/apache/bin/apxs) query for PREFIX failed
t/12_client_replicate...........ok
t/13_client_cull................APXS (/usr/local/apache/bin/apxs) query for SBINDIR failed
APXS (/usr/local/apache/bin/apxs) query for SYSCONFDIR failed
APXS (/usr/local/apache/bin/apxs) query for PREFIX failed
t/13_client_cull................ok
6/15 skipped: unsure if this should be part of the API
t/14_client_lock................APXS (/usr/local/apache/bin/apxs) query for SBINDIR failed
APXS (/usr/local/apache/bin/apxs) query for SYSCONFDIR failed
APXS (/usr/local/apache/bin/apxs) query for PREFIX failed
t/14_client_lock................ok
t/15_client_unlock..............APXS (/usr/local/apache/bin/apxs) query for SBINDIR failed
APXS (/usr/local/apache/bin/apxs) query for SYSCONFDIR failed
APXS (/usr/local/apache/bin/apxs) query for PREFIX failed
t/15_client_unlock..............ok
t/16_client_find_instances......APXS (/usr/local/apache/bin/apxs) query for SBINDIR failed
APXS (/usr/local/apache/bin/apxs) query for SYSCONFDIR failed
APXS (/usr/local/apache/bin/apxs) query for PREFIX failed
t/16_client_find_instances......ok
7/7 skipped: need to write a module to validate URIs
All tests successful, 13 subtests skipped.
Files=16, Tests=163, 39 wallclock secs ( 4.39 cusr + 0.67 csys = 5.06 CPU)
[warning] server moa:8529 shutdown
--
Cheers,
-J
--
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html
 |
(message missing)
|