mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-30 19:00:29 +08:00
parent
6837078687
commit
2c059c86ba
@ -13,6 +13,8 @@ $node->start;
|
||||
# invoke pgbench
|
||||
sub pgbench
|
||||
{
|
||||
local $Test::Builder::Level = $Test::Builder::Level + 1;
|
||||
|
||||
my ($opts, $stat, $out, $err, $name, $files) = @_;
|
||||
my @cmd = ('pgbench', split /\s+/, $opts);
|
||||
my @filenames = ();
|
||||
@ -798,6 +800,8 @@ pgbench(
|
||||
# check log contents and cleanup
|
||||
sub check_pgbench_logs
|
||||
{
|
||||
local $Test::Builder::Level = $Test::Builder::Level + 1;
|
||||
|
||||
my ($prefix, $nb, $min, $max, $re) = @_;
|
||||
|
||||
my @logs = glob "$prefix.*";
|
||||
|
@ -20,6 +20,8 @@ mkdir $testdir
|
||||
# invoke pgbench
|
||||
sub pgbench
|
||||
{
|
||||
local $Test::Builder::Level = $Test::Builder::Level + 1;
|
||||
|
||||
my ($opts, $stat, $out, $err, $name) = @_;
|
||||
print STDERR "opts=$opts, stat=$stat, out=$out, err=$err, name=$name";
|
||||
command_checks_all([ 'pgbench', split(/\s+/, $opts) ],
|
||||
@ -30,6 +32,8 @@ sub pgbench
|
||||
# invoke pgbench with scripts
|
||||
sub pgbench_scripts
|
||||
{
|
||||
local $Test::Builder::Level = $Test::Builder::Level + 1;
|
||||
|
||||
my ($opts, $stat, $out, $err, $name, $files) = @_;
|
||||
my @cmd = ('pgbench', split /\s+/, $opts);
|
||||
my @filenames = ();
|
||||
|
Loading…
Reference in New Issue
Block a user