12 use Net::Cmd qw(CMD_REJECT);
14 unless(@{$NetConfig{nntp_hosts}} && $NetConfig{test_hosts}) {
23 $nntp = Net::NNTP->new(Debug => 0)
24 or (print("not ok 1\n"), exit);
29 foreach $grp (qw(test alt.test control news.announce.newusers)) {
30 @grp = $nntp->group($grp);
34 if($nntp->status == CMD_REJECT) {
35 # Command was rejected, probably because we need authinfo
36 map { print "ok ",$_,"\n" } 2,3,4;
40 print "not " unless @grp;
44 if(@grp && $grp[2] > $grp[1]) {
45 $nntp->head($grp[1]) or print "not ";
50 $nntp->quit or print "not ";