mirror of
https://github.com/postgres/postgres.git
synced 2026-04-29 10:11:47 -04:00
This makes the log files easier to follow when investigating a test failure. Author: Michael Paquier Review: Noah Misch
23 lines
489 B
Perl
23 lines
489 B
Perl
use strict;
|
|
use warnings;
|
|
|
|
use PostgresNode;
|
|
use TestLib;
|
|
use Test::More tests => 11;
|
|
|
|
program_help_ok('droplang');
|
|
program_version_ok('droplang');
|
|
program_options_handling_ok('droplang');
|
|
|
|
my $node = get_new_node('main');
|
|
$node->init;
|
|
$node->start;
|
|
|
|
$node->issues_sql_like(
|
|
[ 'droplang', 'plpgsql', 'postgres' ],
|
|
qr/statement: DROP EXTENSION "plpgsql"/,
|
|
'SQL DROP EXTENSION run');
|
|
|
|
$node->command_fails(
|
|
[ 'droplang', 'nonexistent', 'postgres' ],
|
|
'fails with nonexistent language');
|