xref: /onnv-gate/usr/src/cmd/perl/5.8.4/distrib/lib/Net/t/require.t (revision 0:68f95e015346)
1*0Sstevel@tonic-gate#!./perl -w
2*0Sstevel@tonic-gate
3*0Sstevel@tonic-gateBEGIN {
4*0Sstevel@tonic-gate    unless (-d 'blib') {
5*0Sstevel@tonic-gate	chdir 't' if -d 't';
6*0Sstevel@tonic-gate	@INC = '../lib';
7*0Sstevel@tonic-gate    }
8*0Sstevel@tonic-gate    if (!eval "require Socket") {
9*0Sstevel@tonic-gate	print "1..0 # no Socket\n"; exit 0;
10*0Sstevel@tonic-gate    }
11*0Sstevel@tonic-gate    if (ord('A') == 193 && !eval "require Convert::EBCDIC") {
12*0Sstevel@tonic-gate        print "1..0 # EBCDIC but no Convert::EBCDIC\n"; exit 0;
13*0Sstevel@tonic-gate    }
14*0Sstevel@tonic-gate}
15*0Sstevel@tonic-gate
16*0Sstevel@tonic-gateprint "1..9\n";
17*0Sstevel@tonic-gatemy $i = 1;
18*0Sstevel@tonic-gateeval { require Net::Config; } || print "not "; print "ok ",$i++,"\n";
19*0Sstevel@tonic-gateeval { require Net::Domain; } || print "not "; print "ok ",$i++,"\n";
20*0Sstevel@tonic-gateeval { require Net::Cmd; }    || print "not "; print "ok ",$i++,"\n";
21*0Sstevel@tonic-gateeval { require Net::Netrc; }  || print "not "; print "ok ",$i++,"\n";
22*0Sstevel@tonic-gateeval { require Net::FTP; }    || print "not "; print "ok ",$i++,"\n";
23*0Sstevel@tonic-gateeval { require Net::SMTP; }   || print "not "; print "ok ",$i++,"\n";
24*0Sstevel@tonic-gateeval { require Net::NNTP; }   || print "not "; print "ok ",$i++,"\n";
25*0Sstevel@tonic-gateeval { require Net::POP3; }   || print "not "; print "ok ",$i++,"\n";
26*0Sstevel@tonic-gateeval { require Net::Time; }   || print "not "; print "ok ",$i++,"\n";
27*0Sstevel@tonic-gate
28*0Sstevel@tonic-gate
29