1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
#!perl
## Test the "new_version_bc" action
use 5.008;
use strict;
use warnings;
use Data::Dumper;
use Test::More;
use lib 't','.';
use CP_Testing;
use vars qw/$dbh $t/;
if ($ENV{SKIP_NETWORK_TESTS}) {
plan (skip_all => 'Skipped because environment variable SKIP_NETWORK_TESTS is set');
} else {
plan tests => 1;
}
my $cp = CP_Testing->new( {default_action => 'new_version_bc'} );
$dbh = $cp->test_database_handle();
my $S = q{Action 'new_version_bc'};
my $label = 'POSTGRES_NEW_VERSION_BC';
$t=qq{$S fails when called with an invalid option};
like ($cp->run('foobar=12'), qr{Usage:}, $t);
## No other tests for now
exit;
|