2
$ENV{TEST_SANDBOX_HOME}="$ENV{PWD}/t/test_sb";
3
$ENV{PERL5LIB}="$ENV{PWD}/lib";
4
$ENV{PATH}="$ENV{PWD}/bin:$ENV{PATH}";
9
my $test_version = $ENV{TEST_VERSION} || '5.0.77';
12
# accepts either a bare version
15
# (e.g. $HOME/downloads/mysql-5.0.79-osx10.5-x86.tar.gz)
16
# or the path to a directory containing binaries
17
# (e.g. $HOME/opt/mysql/5.0.79)
19
if ( ( -d $test_version)
20
or (( -f $test_version ) && ($test_version =~ /\.tar\.gz$/) )
21
or ( -d "$ENV{HOME}/opt/mysql/$test_version")) {
22
warn "Testing <$test_version>. Please wait. This will take a few minutes\n";
27
print "ok 1 # skip - no binaries found for $test_version"
28
. " - See the README under 'TESTING' for more options.\n";
33
system("test_sandbox --versions=$test_version --tests=sbtool");
3
test_sandbox( 'test_sandbox --tests=sbtool', 34);