From: Greg Sabino Mullane Date: Wed, 9 Feb 2011 18:06:22 +0000 (-0500) Subject: New test stub. X-Git-Tag: 2.18.0~88 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=ecde6797f07c623a0df2529670698135c427bf31;p=check_postgres.git New test stub. --- diff --git a/t/02_new_version_tnm.t b/t/02_new_version_tnm.t new file mode 100644 index 000000000..a03c0b269 --- /dev/null +++ b/t/02_new_version_tnm.t @@ -0,0 +1,27 @@ +#!perl + +## Test the "new_version_tnm" action + +use 5.006; +use strict; +use warnings; +use Data::Dumper; +use Test::More tests => 1; +use lib 't','.'; +use CP_Testing; + +use vars qw/$dbh $t/; + +my $cp = CP_Testing->new( {default_action => 'new_version_tnm'} ); + +$dbh = $cp->test_database_handle(); + +my $S = q{Action 'new_version_tnm'}; +my $label = 'POSTGRES_NEW_VERSION_TNM'; + +$t=qq{$S fails when called with an invalid option}; +like ($cp->run('foobar=12'), qr{^\s*Usage:}, $t); + +## No other tests for now + +exit;