Commit b1520eb3 authored by unknown's avatar unknown

Merge neptunus.(none):/home/msvensson/mysql/mysql-4.1-maint

into  neptunus.(none):/home/msvensson/mysql/mysql-5.0-maint


mysql-test/mysql-test-run.pl:
  Auto merged
parents 39c8672f d3b049a6
...@@ -591,7 +591,7 @@ sub command_line_setup () { ...@@ -591,7 +591,7 @@ sub command_line_setup () {
'tmpdir=s' => \$opt_tmpdir, 'tmpdir=s' => \$opt_tmpdir,
'vardir=s' => \$opt_vardir, 'vardir=s' => \$opt_vardir,
'benchdir=s' => \$glob_mysql_bench_dir, 'benchdir=s' => \$glob_mysql_bench_dir,
'mem' => \$opt_mem, 'mem:s' => \$opt_mem,
# Misc # Misc
'comment=s' => \$opt_comment, 'comment=s' => \$opt_comment,
...@@ -734,17 +734,18 @@ sub command_line_setup () { ...@@ -734,17 +734,18 @@ sub command_line_setup () {
# -------------------------------------------------------------------------- # --------------------------------------------------------------------------
# Check if we should speed up tests by trying to run on tmpfs # Check if we should speed up tests by trying to run on tmpfs
# -------------------------------------------------------------------------- # --------------------------------------------------------------------------
if ( $opt_mem ) if ( defined $opt_mem )
{ {
mtr_error("Can't use --mem and --vardir at the same time ") mtr_error("Can't use --mem and --vardir at the same time ")
if $opt_vardir; if $opt_vardir;
mtr_error("Can't use --mem and --tmpdir at the same time ") mtr_error("Can't use --mem and --tmpdir at the same time ")
if $opt_tmpdir; if $opt_tmpdir;
# Use /dev/shm as the preferred location for vardir and # Search through list of locations that are known
# thus implicitly also tmpdir. Add other locations to list # to be "fast disks" to list to find a suitable location
my @tmpfs_locations= ($opt_mem, "/dev/shm"); # Use --mem=<dir> as first location to look.
# One could maybe use "mount" to find tmpfs location(s) my @tmpfs_locations= ($opt_mem, "/dev/shm", "/tmp");
foreach my $fs (@tmpfs_locations) foreach my $fs (@tmpfs_locations)
{ {
if ( -d $fs ) if ( -d $fs )
...@@ -4307,13 +4308,11 @@ sub run_mysqltest ($) { ...@@ -4307,13 +4308,11 @@ sub run_mysqltest ($) {
if ( $opt_ssl ) if ( $opt_ssl )
{ {
# Turn on SSL for _all_ test cases if option --ssl was used # Turn on SSL for _all_ test cases if option --ssl was used
mtr_add_arg($args, "--ssl", mtr_add_arg($args, "--ssl");
$glob_mysql_test_dir);
} }
elsif ( $opt_ssl_supported ) elsif ( $opt_ssl_supported )
{ {
mtr_add_arg($args, "--skip-ssl", mtr_add_arg($args, "--skip-ssl");
$glob_mysql_test_dir);
} }
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
...@@ -4648,9 +4647,12 @@ Options to control directories to use ...@@ -4648,9 +4647,12 @@ Options to control directories to use
vardir=DIR The directory where files generated from the test run vardir=DIR The directory where files generated from the test run
is stored (default: ./var). Specifying a ramdisk or is stored (default: ./var). Specifying a ramdisk or
tmpfs will speed up tests. tmpfs will speed up tests.
mem Run testsuite in "memory" using tmpfs if mem[=DIR] Run testsuite in "memory" using tmpfs or ramdisk
available(default: /dev/shm) Attempts to use DIR first if specified else
reads path from MTR_MEM environment variable uses as builtin list of standard locations
for tmpfs (/dev/shm)
The option can also be set using environment
variable MTR_MEM=[DIR]
Options to control what test suites or cases to run Options to control what test suites or cases to run
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment