mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Merge branch '5.5' into 10.0
This commit is contained in:
@@ -1036,15 +1036,7 @@ sub ignore_option {
|
||||
|
||||
# Setup any paths that are $opt_vardir related
|
||||
sub set_vardir {
|
||||
my ($vardir)= @_;
|
||||
if(IS_WINDOWS)
|
||||
{
|
||||
$opt_vardir= $vardir;
|
||||
}
|
||||
else
|
||||
{
|
||||
$opt_vardir= realpath($vardir);
|
||||
}
|
||||
($opt_vardir)= @_;
|
||||
|
||||
$path_vardir_trace= $opt_vardir;
|
||||
# Chop off any "c:", DBUG likes a unix path ex: c:/src/... => /src/...
|
||||
@@ -1478,7 +1470,7 @@ sub command_line_setup {
|
||||
# Search through list of locations that are known
|
||||
# to be "fast disks" to find a suitable location
|
||||
# Use --mem=<dir> as first location to look.
|
||||
my @tmpfs_locations= ($opt_mem, "/dev/shm", "/tmp");
|
||||
my @tmpfs_locations= ($opt_mem,"/run/shm", "/dev/shm", "/tmp");
|
||||
|
||||
foreach my $fs (@tmpfs_locations)
|
||||
{
|
||||
@@ -1494,20 +1486,11 @@ sub command_line_setup {
|
||||
# --------------------------------------------------------------------------
|
||||
# Set the "var/" directory, the base for everything else
|
||||
# --------------------------------------------------------------------------
|
||||
if(defined $ENV{MTR_BINDIR})
|
||||
{
|
||||
$default_vardir= "$ENV{MTR_BINDIR}/mysql-test/var";
|
||||
}
|
||||
else
|
||||
{
|
||||
$default_vardir= "$glob_mysql_test_dir/var";
|
||||
}
|
||||
unless (IS_WINDOWS) {
|
||||
my $realpath = realpath($default_vardir);
|
||||
die "realpath('$default_vardir') failed: $!\n"
|
||||
unless defined($realpath) && $realpath ne '';
|
||||
$default_vardir = $realpath;
|
||||
}
|
||||
my $vardir_location= (defined $ENV{MTR_BINDIR}
|
||||
? "$ENV{MTR_BINDIR}/mysql-test"
|
||||
: $glob_mysql_test_dir);
|
||||
$vardir_location= realpath $vardir_location unless IS_WINDOWS;
|
||||
$default_vardir= "$vardir_location/var";
|
||||
|
||||
if ( ! $opt_vardir )
|
||||
{
|
||||
@@ -6448,7 +6431,7 @@ Options to control directories to use
|
||||
mem Run testsuite in "memory" using tmpfs or ramdisk
|
||||
Attempts to find a suitable location
|
||||
using a builtin list of standard locations
|
||||
for tmpfs (/dev/shm)
|
||||
for tmpfs (/run/shm, /dev/shm, /tmp)
|
||||
The option can also be set using environment
|
||||
variable MTR_MEM=[DIR]
|
||||
clean-vardir Clean vardir if tests were successful and if
|
||||
|
||||
Reference in New Issue
Block a user