From: Martin K. <mar...@fe...> - 2008-03-02 23:27:22
|
The test_perls.pl won't help without the perls installed - it's actually as simple as use Test::More; my @perl_from = ( '/opt/perl5.6.2/bin/perl', '/opt/perl-5.8.7/bin/perl', '/opt/perl5.10/bin/perl', '/usr/bin/perl' ); plan tests => scalar @perl_from; for my $perl (@perl_from) { ok ! system("make clean > /dev/null 2>&1; \\ $perl Makefile.PL --noprompt > /dev/null 2>&1 \\ && make > /dev/null 2>&1 \\ && make test > /dev/null 2>&1") ), $perl; } Martin Am Sonntag, den 02.03.2008, 22:57 +0000 schrieb Robbie Bow: > Excellent! There's a couple that fail on one of my machines - > > not ok 73 - Syntax check ../lib/SOAP/Transport/JABBER.pm > # Can't locate Net/Jabber.pm in @INC (@INC contains: ../lib > /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi > > not ok 75 - Syntax check ../lib/SOAP/Transport/MQ.pm > # Can't locate MQClient/MQSeries.pm in @INC (@INC contains: ../lib > .....) at ../lib/SOAP/Transport/MQ.pm line 17. > > As these are optional, what would be the best way to check for the > required dependencies and gracefully bow out if they aren't installed? > I was thinking something along the lines of: > > eval "use Net::Jabber"; > die "Problem loading pre-requisite Net::Jabber - is this installed?" if $@; > > Or I suppose we could add them to the prerequisites for SOAP::Lite anyway? > > Also, could you give me a copy of your test_perls.pl script? Sounds handy. > > Robbie > > On Sun, Mar 2, 2008 at 10:46 PM, Martin Kutter <mar...@fe...> wrote: > > Well done: Test suite passes under all my perls. > > > > martin@cyclops:~/workspace/SOAP-Lite$ perl test_perls.pl > > 1..4 > > ok 1 - /opt/perl5.6.2/bin/perl > > ok 2 - /opt/perl-5.8.7/bin/perl > > ok 3 - /opt/perl5.10/bin/perl > > ok 4 - /usr/bin/perl (5.8.8) > > > > Martin > > > > Am Sonntag, den 02.03.2008, 13:35 -0800 schrieb > > rob...@us...: > > > > > > > Revision: 208 > > > http://soaplite.svn.sourceforge.net/soaplite/?rev=208&view=rev > > > Author: robbiebow > > > Date: 2008-03-02 13:35:00 -0800 (Sun, 02 Mar 2008) > > > > > > Log Message: > > > ----------- > > > Added strict and syntax checking for lib/ and t/ directories. Modified files to pass these tests > > > > > > Modified Paths: > > > -------------- > > > trunk/lib/SOAP/Cloneable.pm > > > trunk/lib/SOAP/Constants.pm > > > trunk/lib/SOAP/Data.pm > > > trunk/lib/SOAP/Lite/Deserializer/XMLSchemaSOAP1_2.pm > > > trunk/lib/SOAP/Lite.pm > > > trunk/lib/SOAP/Utils.pm > > > trunk/lib/XMLRPC/Lite.pm > > > trunk/t/01-core.t > > > trunk/t/013-array-deserialization.t > > > trunk/t/014_UNIVERSAL_use.t > > > trunk/t/015_UNIVERSAL_can.t > > > trunk/t/02-payload.t > > > trunk/t/03-server.t > > > trunk/t/04-attach.t > > > trunk/t/05-customxml.t > > > trunk/t/06-modules.t > > > trunk/t/07-xmlrpc_payload.t > > > trunk/t/08-schema.t > > > trunk/t/099_pod_coverage.t > > > trunk/t/11-cgi.t > > > trunk/t/12-cgi_https.t > > > trunk/t/13-mod_perl.t > > > trunk/t/14-cgi_apache.t > > > trunk/t/15-daemon.t > > > trunk/t/16-tcp.t > > > trunk/t/17-mod_soap.t > > > trunk/t/19-apachesoap.t > > > trunk/t/21-public.t > > > trunk/t/22-interop_apache.t > > > trunk/t/23-ppm.t > > > trunk/t/24-wsdl.t > > > trunk/t/25-uddi.t > > > trunk/t/26-xmlrpc.t > > > trunk/t/27-xmlparserlite.t > > > trunk/t/28-uddi_search.t > > > trunk/t/29-uddi_publishing.t > > > trunk/t/36-leaks.t > > > trunk/t/37-mod_xmlrpc.t > > > trunk/t/38-packager.t > > > trunk/t/SOAP/Lite/Deserializer/XMLSchema1999.t > > > trunk/t/SOAP/Lite/Deserializer/XMLSchema2001.t > > > trunk/t/SOAP/Lite/Deserializer/XMLSchemaSOAP1_1.t > > > trunk/t/SOAP/Lite/Deserializer/XMLSchemaSOAP1_2.t > > > trunk/t/SOAP/Schema/WSDL.t > > > trunk/t/TEST.pl > > > > > > Added Paths: > > > ----------- > > > trunk/lib/OldDocs/SOAP/Lite.pod > > > trunk/lib/OldDocs/SOAP/Transport/FTP.pod > > > trunk/lib/OldDocs/SOAP/Transport/HTTP.pod > > > trunk/lib/OldDocs/SOAP/Transport/IO.pod > > > trunk/lib/OldDocs/SOAP/Transport/JABBER.pod > > > trunk/lib/OldDocs/SOAP/Transport/LOCAL.pod > > > trunk/lib/OldDocs/SOAP/Transport/MAILTO.pod > > > trunk/lib/OldDocs/SOAP/Transport/MQ.pod > > > trunk/lib/OldDocs/SOAP/Transport/POP3.pod > > > trunk/lib/OldDocs/SOAP/Transport/TCP.pod > > > trunk/t/00-strict.t > > > > > > Removed Paths: > > > ------------- > > > trunk/lib/OldDocs/SOAP/Lite.pm > > > trunk/lib/OldDocs/SOAP/Transport/FTP.pm > > > trunk/lib/OldDocs/SOAP/Transport/HTTP.pm > > > trunk/lib/OldDocs/SOAP/Transport/IO.pm > > > trunk/lib/OldDocs/SOAP/Transport/JABBER.pm > > > trunk/lib/OldDocs/SOAP/Transport/LOCAL.pm > > > trunk/lib/OldDocs/SOAP/Transport/MAILTO.pm > > > trunk/lib/OldDocs/SOAP/Transport/MQ.pm > > > trunk/lib/OldDocs/SOAP/Transport/POP3.pm > > > trunk/lib/OldDocs/SOAP/Transport/TCP.pm > > > > > > > > > This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by: Microsoft > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > _______________________________________________ > > > soaplite-commit mailing list > > > soa...@li... > > > https://lists.sourceforge.net/lists/listinfo/soaplite-commit > > > > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Soaplite-devel mailing list > Soa...@li... > https://lists.sourceforge.net/lists/listinfo/soaplite-devel > |