projects
/
check_postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b0cca8
)
Add MRTG tests, plan
author
Jeff Boes
<jeff@endpoint.com>
Thu, 23 Apr 2009 20:56:37 +0000
(16:56 -0400)
committer
Jeff Boes
<jeff@endpoint.com>
Thu, 23 Apr 2009 22:03:06 +0000
(18:03 -0400)
t/02_disabled_triggers.t
patch
|
blob
|
blame
|
history
diff --git
a/t/02_disabled_triggers.t
b/t/02_disabled_triggers.t
index 1056a409c43aad9dc0a05c774b3cee8810cb4984..23507e26f8bb0691a2b0a86f12ec0c2bfa954e53 100644
(file)
--- a/
t/02_disabled_triggers.t
+++ b/
t/02_disabled_triggers.t
@@
-6,8
+6,7
@@
use strict;
use warnings;
use Data::Dumper;
use DBI;
-use Test::More qw(no_plan);
-END { diag "don't forget to make a plan!" }
+use Test::More tests => 13;
use lib 't','.';
use CP_Testing;
@@
-73,3
+72,8
@@
$dbh->do(qq{ALTER TABLE "$testtbl" DISABLE TRIGGER "${testtrig_prefix}1"});
$dbh->do(qq{ALTER TABLE "$testtbl" DISABLE TRIGGER "${testtrig_prefix}2"});
$dbh->commit;
like ($cp->run(qq{-c 2}), qr/$label CRITICAL:.*?Disabled triggers: 2 /, $t);
+
+$t .= ' (MRTG)';
+is ($cp->run(qq{-c 2 --output=mrtg}), qq{2\n0\n\n\n}, $t);
+
+exit;