8 if (!eval "require Socket") {
9 print "1..0 # no Socket\n"; exit 0;
11 if (ord('A') == 193 && !eval "require Convert::EBCDIC") {
12 print "1..0 # EBCDIC but no Convert::EBCDIC\n"; exit 0;
18 use Net::Cmd qw(CMD_REJECT);
20 unless(@{$NetConfig{nntp_hosts}} && $NetConfig{test_hosts}) {
29 $nntp = Net::NNTP->new(Debug => 0)
30 or (print("not ok 1\n"), exit);
35 foreach $grp (qw(test alt.test control news.announce.newusers)) {
36 @grp = $nntp->group($grp);
40 if($nntp->status == CMD_REJECT) {
41 # Command was rejected, probably because we need authinfo
42 map { print "ok ",$_,"\n" } 2,3,4;
46 print "not " unless @grp;
50 if(@grp && $grp[2] > $grp[1]) {
51 $nntp->head($grp[1]) or print "not ";
56 $nntp->quit or print "not ";