aboutsummaryrefslogtreecommitdiff
path: root/src/test/modules/libpq_pipeline/t/001_libpq_pipeline.pl
blob: 0213f21ee81e2daf9b1bd4e54d594385ab06b4bd (plain)
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
use strict;
use warnings;

use Config;
use PostgresNode;
use TestLib;
use Test::More tests => 8;
use Cwd;

my $node = get_new_node('main');
$node->init;
$node->start;

my $numrows = 10000;
$ENV{PATH} = "$ENV{PATH}:" . getcwd();

my ($out, $err) = run_command(['libpq_pipeline', 'tests']);
die "oops: $err" unless $err eq '';
my @tests = split(/\s+/, $out);

for my $testname (@tests)
{
	$node->command_ok(
		[ 'libpq_pipeline', $testname, $node->connstr('postgres'), $numrows ],
		"libpq_pipeline $testname");
}

$node->stop('fast');