Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

[r419]: trunk / t / 06-modules.t Maximize Restore History

Download this file

06-modules.t    40 lines (35 with data), 1.1 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/env perl
BEGIN {
unless(grep /blib/, @INC) {
chdir 't' if -d 't';
unshift @INC, '../lib' if -d '../lib';
}
}
use strict;
use Test::More qw(no_plan);
my @modules = qw(SOAP::Lite
SOAP::Transport::HTTP
SOAP::Transport::MAILTO
SOAP::Transport::FTP
SOAP::Transport::TCP
SOAP::Transport::IO
SOAP::Transport::LOCAL
SOAP::Transport::POP3
XML::Parser::Lite
UDDI::Lite XMLRPC::Lite
XMLRPC::Transport::HTTP
XMLRPC::Transport::TCP
XMLRPC::Transport::POP3
SOAP::Packager
SOAP::Transport::MQ SOAP::Transport::JABBER
);
foreach (@modules) {
eval "require $_";
if ($@ =~ /(Can\'t locate)|(XML::Parser::Lite requires)|(this is only version)|(load mod_perl)/) {
SKIP: {
skip("Module $_ does not exist or is breaking in an expected way", 1);
}
next;
}
is($@, '', "use $_") or warn $@;
}