This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Integrate CPAN release of version.pm 0.9905
[perl5.git] / cpan / libnet / t / require.t
CommitLineData
302cc833
GB
1#!./perl -w
2
3BEGIN {
4 unless (-d 'blib') {
5 chdir 't' if -d 't';
6 @INC = '../lib';
7 }
1a8dcddb
JH
8 if (!eval "require Socket") {
9 print "1..0 # no Socket\n"; exit 0;
10 }
8b14f033
JH
11 if (ord('A') == 193 && !eval "require Convert::EBCDIC") {
12 print "1..0 # EBCDIC but no Convert::EBCDIC\n"; exit 0;
13 }
302cc833 14}
406c51ee 15
85657ebf 16print "1..9\n";
406c51ee
JH
17my $i = 1;
18eval { require Net::Config; } || print "not "; print "ok ",$i++,"\n";
19eval { require Net::Domain; } || print "not "; print "ok ",$i++,"\n";
20eval { require Net::Cmd; } || print "not "; print "ok ",$i++,"\n";
21eval { require Net::Netrc; } || print "not "; print "ok ",$i++,"\n";
22eval { require Net::FTP; } || print "not "; print "ok ",$i++,"\n";
23eval { require Net::SMTP; } || print "not "; print "ok ",$i++,"\n";
24eval { require Net::NNTP; } || print "not "; print "ok ",$i++,"\n";
406c51ee
JH
25eval { require Net::POP3; } || print "not "; print "ok ",$i++,"\n";
26eval { require Net::Time; } || print "not "; print "ok ",$i++,"\n";
27
28