4
die "The PERCONA_TOOLKIT_BRANCH environment variable is not set.\n"
5
unless $ENV{PERCONA_TOOLKIT_BRANCH} && -d $ENV{PERCONA_TOOLKIT_BRANCH};
6
unshift @INC, "$ENV{PERCONA_TOOLKIT_BRANCH}/lib";
10
use warnings FATAL => 'all';
11
use English qw(-no_match_vars);
15
my ($tool) = $PROGRAM_NAME =~ m/([\w-]+)\.t$/;
16
push @ARGV, "$trunk/t/lib/bash/*.sh" unless @ARGV;
18
$ENV{BIN_DIR} = "$trunk/bin";
19
$ENV{LIB_DIR} = "$trunk/lib/bash";
20
$ENV{T_LIB_DIR} = "$trunk/t/lib";
21
$ENV{SANDBOX_VERSION} = "$sandbox_version";
23
system("$trunk/util/test-bash-functions $trunk/t/lib/samples/bash/dummy.sh @ARGV");