5 use Net::Cmd qw(CMD_REJECT);
7 unless(@{$NetConfig{nntp_hosts}} && $NetConfig{test_hosts}) {
16 $nntp = Net::NNTP->new(Debug => 0)
17 or (print("not ok 1\n"), exit);
22 foreach $grp (qw(test alt.test control news.announce.newusers)) {
23 @grp = $nntp->group($grp);
27 if($nntp->status == CMD_REJECT) {
28 # Command was rejected, probably because we need authinfo
29 map { print "ok ",$_,"\n" } 2,3,4;
33 print "not " unless @grp;
37 if(@grp && $grp[2] > $grp[1]) {
38 $nntp->head($grp[1]) or print "not ";
43 $nntp->quit or print "not ";