Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
90d8d7b5
Commit
90d8d7b5
authored
Nov 08, 2006
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update of --mem flag after comments
parent
174bfe9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+13
-9
No files found.
mysql-test/mysql-test-run.pl
View file @
90d8d7b5
...
@@ -667,7 +667,7 @@ sub command_line_setup () {
...
@@ -667,7 +667,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
,
...
@@ -747,17 +747,18 @@ sub command_line_setup () {
...
@@ -747,17 +747,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
)
...
@@ -4630,9 +4631,12 @@ Options to control directories to use
...
@@ -4630,9 +4631,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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment