readd ... got lost somewhere
This commit is contained in:
commit
93a62a8f1b
52 changed files with 15071 additions and 0 deletions
34
tests/full.t
Executable file
34
tests/full.t
Executable file
|
|
@ -0,0 +1,34 @@
|
|||
#!/usr/bin/perl -w
|
||||
# $Id: full.t.in,v 1.6 2006/03/10 13:12:36 rockyb Exp $
|
||||
# Some count checks
|
||||
use strict;
|
||||
use Test::More;
|
||||
use Config;
|
||||
|
||||
if ('cygwin' eq $Config{osname}) {
|
||||
plan( tests => 1);
|
||||
} else {
|
||||
plan( tests => 2);
|
||||
}
|
||||
|
||||
my $test='full';
|
||||
|
||||
my $srcdir = $ENV{srcdir} ? $ENV{srcdir} : '.';
|
||||
my @output = `/usr/bin/perl ../ps-watcher --log --sleep -1 --nodaemon --config ${srcdir}/$test.cnf 2>&1`;
|
||||
|
||||
# First line is Id line. This doesn't count in testing.
|
||||
shift @output;
|
||||
|
||||
my $i=1;
|
||||
foreach (@output) {
|
||||
if (/^.+:\s+.*ok/) {
|
||||
s/.+:\s+//;
|
||||
my $result = sprintf "ok %d", $i;
|
||||
$i++;
|
||||
ok($_ =~ m{$result});
|
||||
}
|
||||
}
|
||||
|
||||
#;;; Local Variables: ***
|
||||
#;;; mode:perl ***
|
||||
#;;; End: ***
|
||||
Loading…
Add table
Add a link
Reference in a new issue