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