From: Jeff Boes Date: Thu, 23 Apr 2009 20:56:37 +0000 (-0400) Subject: Add MRTG tests, plan X-Git-Tag: 2.9.0~84 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=c4915f69c469d2870ff2a366e14f0eb45b7572fa;p=check_postgres.git Add MRTG tests, plan --- diff --git a/t/02_disabled_triggers.t b/t/02_disabled_triggers.t index 1056a409c..23507e26f 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;