Imported Upstream version 1.4.5
This commit is contained in:
parent
62d1e7d5fe
commit
6a280f6f24
412 changed files with 168642 additions and 0 deletions
25
plugins/t/check_users.t
Normal file
25
plugins/t/check_users.t
Normal file
|
@ -0,0 +1,25 @@
|
|||
#! /usr/bin/perl -w -I ..
|
||||
#
|
||||
# Logged in Users Tests via check_users
|
||||
#
|
||||
# $Id: check_users.t,v 1.2 2005/07/25 01:47:15 illumino Exp $
|
||||
#
|
||||
|
||||
use strict;
|
||||
use Test;
|
||||
use NPTest;
|
||||
|
||||
use vars qw($tests);
|
||||
BEGIN {$tests = 4; plan tests => $tests}
|
||||
|
||||
my $successOutput = '/^USERS OK - [0-9]+ users currently logged in/';
|
||||
my $failureOutput = '/^USERS CRITICAL - [0-9]+ users currently logged in/';
|
||||
|
||||
my $t;
|
||||
|
||||
$t += checkCmd( "./check_users 1000 1000", 0, $successOutput );
|
||||
$t += checkCmd( "./check_users 0 0", 2, $failureOutput );
|
||||
|
||||
exit(0) if defined($Test::Harness::VERSION);
|
||||
exit($tests - $t);
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue