8 if (ord('A') == 193 && !eval "require Convert::EBCDIC") {
9 print "1..0 # EBCDIC but no Convert::EBCDIC\n"; exit 0;
15 use Net::Cmd qw(CMD_REJECT);
17 unless(@{$NetConfig{nntp_hosts}} && $NetConfig{test_hosts}) {
26 $nntp = Net::NNTP->new(Debug => 0)
27 or (print("not ok 1\n"), exit);
32 foreach $grp (qw(test alt.test control news.announce.newusers)) {
33 @grp = $nntp->group($grp);
37 if($nntp->status == CMD_REJECT) {
38 # Command was rejected, probably because we need authinfo
39 map { print "ok ",$_,"\n" } 2,3,4;
43 print "not " unless @grp;
47 if(@grp && $grp[2] > $grp[1]) {
48 $nntp->head($grp[1]) or print "not ";
53 $nntp->quit or print "not ";