[check_postgres] [commit] Add MRTG tests, plan

check_postgres at bucardo.org check_postgres at bucardo.org
Fri Apr 24 16:19:59 UTC 2009


Committed by Jeff Boes <jeff at endpoint.com>

Add MRTG tests, plan

---
 t/02_disabled_triggers.t |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/t/02_disabled_triggers.t b/t/02_disabled_triggers.t
index 1056a40..23507e2 100644
--- 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;
-- 
1.6.0.5



More information about the Check_postgres mailing list