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
6ffad4ad
Commit
6ffad4ad
authored
Jan 25, 2010
by
Bjorn Munch
Browse files
Options
Browse Files
Download
Plain Diff
upmerge 50182, 50540
parents
eb20a69f
e6f532f6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+20
-2
No files found.
mysql-test/mysql-test-run.pl
View file @
6ffad4ad
...
@@ -208,7 +208,9 @@ our $opt_experimental;
...
@@ -208,7 +208,9 @@ our $opt_experimental;
our
$experimental_test_cases
;
our
$experimental_test_cases
;
my
$baseport
;
my
$baseport
;
# $opt_build_thread may later be set from $opt_port_base
my
$opt_build_thread
=
$ENV
{'
MTR_BUILD_THREAD
'}
||
"
auto
";
my
$opt_build_thread
=
$ENV
{'
MTR_BUILD_THREAD
'}
||
"
auto
";
my
$opt_port_base
=
$ENV
{'
MTR_PORT_BASE
'}
||
"
auto
";
my
$build_thread
=
0
;
my
$build_thread
=
0
;
my
$opt_record
;
my
$opt_record
;
...
@@ -855,6 +857,7 @@ sub command_line_setup {
...
@@ -855,6 +857,7 @@ sub command_line_setup {
# Specify ports
# Specify ports
'
build-thread|mtr-build-thread=i
'
=>
\
$opt_build_thread
,
'
build-thread|mtr-build-thread=i
'
=>
\
$opt_build_thread
,
'
port-base|mtr-port-base=i
'
=>
\
$opt_port_base
,
# Test case authoring
# Test case authoring
'
record
'
=>
\
$opt_record
,
'
record
'
=>
\
$opt_record
,
...
@@ -1117,6 +1120,16 @@ sub command_line_setup {
...
@@ -1117,6 +1120,16 @@ sub command_line_setup {
$opt_mem
=
undef
;
$opt_mem
=
undef
;
}
}
if
(
$opt_port_base
ne
"
auto
")
{
if
(
my
$rem
=
$opt_port_base
%
10
)
{
mtr_warning
("
Port base
$opt_port_base
rounded down to multiple of 10
");
$opt_port_base
-=
$rem
;
}
$opt_build_thread
=
$opt_port_base
/
10
-
1000
;
}
# --------------------------------------------------------------------------
# --------------------------------------------------------------------------
# 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
# --------------------------------------------------------------------------
# --------------------------------------------------------------------------
...
@@ -1804,11 +1817,11 @@ sub environment_setup {
...
@@ -1804,11 +1817,11 @@ sub environment_setup {
{
{
push
(
@ld_library_paths
,
"
$basedir
/libmysql/.libs/
",
push
(
@ld_library_paths
,
"
$basedir
/libmysql/.libs/
",
"
$basedir
/libmysql_r/.libs/
",
"
$basedir
/libmysql_r/.libs/
",
"
$basedir
/zlib.libs/
");
"
$basedir
/zlib
/
.libs/
");
}
}
else
else
{
{
push
(
@ld_library_paths
,
"
$basedir
/lib
");
push
(
@ld_library_paths
,
"
$basedir
/lib
"
,
"
$basedir
/lib/mysql
"
);
}
}
}
}
...
@@ -5392,6 +5405,11 @@ Options to control what test suites or cases to run
...
@@ -5392,6 +5405,11 @@ Options to control what test suites or cases to run
Options that specify ports
Options that specify ports
mtr-port-base=# Base for port numbers, ports from this number to
port-base=# number+9 are reserved. Should be divisible by 10;
if not it will be rounded down. May be set with
environment variable MTR_PORT_BASE. If this value is
set and is not "auto", it overrides build-thread.
mtr-build-thread=# Specify unique number to calculate port number(s) from.
mtr-build-thread=# Specify unique number to calculate port number(s) from.
build-thread=# Can be set in environment variable MTR_BUILD_THREAD.
build-thread=# Can be set in environment variable MTR_BUILD_THREAD.
Set MTR_BUILD_THREAD="auto" to automatically aquire
Set MTR_BUILD_THREAD="auto" to automatically aquire
...
...
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