mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-03 11:05:48 +00:00
Make test-bash-tool work with prove. Add .t for remaining bash tools.
This commit is contained in:
@@ -1,9 +1,17 @@
|
||||
#!/usr/bin/env perl
|
||||
#!/usr/bin/evn perl
|
||||
|
||||
BEGIN {
|
||||
die "The PERCONA_TOOLKIT_BRANCH environment variable is not set.\n"
|
||||
unless $ENV{PERCONA_TOOLKIT_BRANCH} && -d $ENV{PERCONA_TOOLKIT_BRANCH};
|
||||
unshift @INC, "$ENV{PERCONA_TOOLKIT_BRANCH}/lib";
|
||||
};
|
||||
|
||||
use strict;
|
||||
use warnings FATAL => 'all';
|
||||
use English qw(-no_match_vars);
|
||||
use Test::More;
|
||||
|
||||
use MaatkitTest;
|
||||
|
||||
print `ls *`;
|
||||
system("$trunk/util/test-bash-tool pt-mysql-summary @ARGV");
|
||||
|
||||
exit;
|
||||
|
17
t/pt-pmp/pt-pmp.t
Normal file
17
t/pt-pmp/pt-pmp.t
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/evn perl
|
||||
|
||||
BEGIN {
|
||||
die "The PERCONA_TOOLKIT_BRANCH environment variable is not set.\n"
|
||||
unless $ENV{PERCONA_TOOLKIT_BRANCH} && -d $ENV{PERCONA_TOOLKIT_BRANCH};
|
||||
unshift @INC, "$ENV{PERCONA_TOOLKIT_BRANCH}/lib";
|
||||
};
|
||||
|
||||
use strict;
|
||||
use warnings FATAL => 'all';
|
||||
use English qw(-no_match_vars);
|
||||
|
||||
use MaatkitTest;
|
||||
|
||||
system("$trunk/util/test-bash-tool pt-pmp @ARGV");
|
||||
|
||||
exit;
|
17
t/pt-summary/pt-summary.t
Normal file
17
t/pt-summary/pt-summary.t
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/evn perl
|
||||
|
||||
BEGIN {
|
||||
die "The PERCONA_TOOLKIT_BRANCH environment variable is not set.\n"
|
||||
unless $ENV{PERCONA_TOOLKIT_BRANCH} && -d $ENV{PERCONA_TOOLKIT_BRANCH};
|
||||
unshift @INC, "$ENV{PERCONA_TOOLKIT_BRANCH}/lib";
|
||||
};
|
||||
|
||||
use strict;
|
||||
use warnings FATAL => 'all';
|
||||
use English qw(-no_match_vars);
|
||||
|
||||
use MaatkitTest;
|
||||
|
||||
system("$trunk/util/test-bash-tool pt-summary @ARGV");
|
||||
|
||||
exit;
|
17
t/pt-usl/pt-usl.t
Normal file
17
t/pt-usl/pt-usl.t
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/evn perl
|
||||
|
||||
BEGIN {
|
||||
die "The PERCONA_TOOLKIT_BRANCH environment variable is not set.\n"
|
||||
unless $ENV{PERCONA_TOOLKIT_BRANCH} && -d $ENV{PERCONA_TOOLKIT_BRANCH};
|
||||
unshift @INC, "$ENV{PERCONA_TOOLKIT_BRANCH}/lib";
|
||||
};
|
||||
|
||||
use strict;
|
||||
use warnings FATAL => 'all';
|
||||
use English qw(-no_match_vars);
|
||||
|
||||
use MaatkitTest;
|
||||
|
||||
system("$trunk/util/test-bash-tool pt-usl @ARGV");
|
||||
|
||||
exit;
|
Reference in New Issue
Block a user