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
40596fa0
Commit
40596fa0
authored
Feb 11, 2006
by
kent@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
64818ead
5fe2e8fd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
16 deletions
+36
-16
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+29
-14
mysql-test/mysql-test-run.sh
mysql-test/mysql-test-run.sh
+7
-2
No files found.
mysql-test/mysql-test-run.pl
View file @
40596fa0
...
@@ -512,15 +512,26 @@ sub command_line_setup () {
...
@@ -512,15 +512,26 @@ sub command_line_setup () {
my
$im_mysqld1_port
=
9312
;
my
$im_mysqld1_port
=
9312
;
my
$im_mysqld2_port
=
9314
;
my
$im_mysqld2_port
=
9314
;
#
# To make it easier for different devs to work on the same host,
# an environment variable can be used to control all ports. A small
# number is to be used, 0 - 16 or similar.
#
# Note the MASTER_MYPORT has to be set the same in all 4.x and 5.x
# versions of this script, else a 4.0 test run might conflict with a
# 5.1 test run, even if different MTR_BUILD_THREAD is used. This means
# all port numbers might not be used in this version of the script.
#
if
(
$ENV
{'
MTR_BUILD_THREAD
'}
)
if
(
$ENV
{'
MTR_BUILD_THREAD
'}
)
{
{
$opt_master_myport
=
$ENV
{'
MTR_BUILD_THREAD
'}
*
40
+
8120
;
# Up to two masters, up to three slaves
$opt_slave_myport
=
$opt_master_myport
+
16
;
$opt_master_myport
=
$ENV
{'
MTR_BUILD_THREAD
'}
*
10
+
10000
;
# and 1
$opt_ndbcluster_port
=
$opt_master_myport
+
24
;
$opt_slave_myport
=
$opt_master_myport
+
2
;
# and 3 4
$opt_ndbcluster_port_slave
=
$opt_master_myport
+
32
;
$opt_ndbcluster_port
=
$opt_master_myport
+
5
;
$im_port
=
$opt_master_myport
+
10
;
$opt_ndbcluster_port_slave
=
$opt_master_myport
+
6
;
$im_mysqld1_port
=
$opt_master_myport
+
12
;
$im_port
=
$opt_master_myport
+
7
;
$im_mysqld2_port
=
$opt_master_myport
+
14
;
$im_mysqld1_port
=
$opt_master_myport
+
8
;
$im_mysqld2_port
=
$opt_master_myport
+
9
;
}
}
# Read the command line
# Read the command line
...
@@ -1131,6 +1142,7 @@ sub environment_setup () {
...
@@ -1131,6 +1142,7 @@ sub environment_setup () {
$ENV
{'
NDBCLUSTER_PORT_SLAVE
'}
=
$opt_ndbcluster_port_slave
;
$ENV
{'
NDBCLUSTER_PORT_SLAVE
'}
=
$opt_ndbcluster_port_slave
;
$ENV
{'
IM_PATH_PID
'}
=
$instance_manager
->
{
path_pid
};
$ENV
{'
IM_PATH_PID
'}
=
$instance_manager
->
{
path_pid
};
$ENV
{'
IM_PORT
'}
=
$instance_manager
->
{
port
};
$ENV
{'
IM_MYSQLD1_SOCK
'}
=
$instance_manager
->
{
instances
}
->
[
0
]
->
{
path_sock
};
$ENV
{'
IM_MYSQLD1_SOCK
'}
=
$instance_manager
->
{
instances
}
->
[
0
]
->
{
path_sock
};
$ENV
{'
IM_MYSQLD1_PORT
'}
=
$instance_manager
->
{
instances
}
->
[
0
]
->
{
port
};
$ENV
{'
IM_MYSQLD1_PORT
'}
=
$instance_manager
->
{
instances
}
->
[
0
]
->
{
port
};
...
@@ -1149,15 +1161,18 @@ sub environment_setup () {
...
@@ -1149,15 +1161,18 @@ sub environment_setup () {
}
}
}
}
$ENV
{
MTR_BUILD_THREAD
}
=
0
unless
$ENV
{
MTR_BUILD_THREAD
};
# Set if not set
# We are nice and report a bit about our settings
# We are nice and report a bit about our settings
print
"
Using MTR_BUILD_THREAD
=
",
$ENV
{
MTR_BUILD_THREAD
}
||
0
,"
\n
";
print
"
Using MTR_BUILD_THREAD
=
$ENV
{MTR_BUILD_THREAD}
\n
";
print
"
Using MASTER_MYPORT =
$ENV
{MASTER_MYPORT}
\n
";
print
"
Using MASTER_MYPORT =
$ENV
{MASTER_MYPORT}
\n
";
print
"
Using MASTER_MYPORT1 =
$ENV
{MASTER_MYPORT1}
\n
";
print
"
Using MASTER_MYPORT1 =
$ENV
{MASTER_MYPORT1}
\n
";
print
"
Using SLAVE_MYPORT =
$ENV
{SLAVE_MYPORT}
\n
";
print
"
Using SLAVE_MYPORT =
$ENV
{SLAVE_MYPORT}
\n
";
print
"
Using NDBCLUSTER_PORT =
$ENV
{NDBCLUSTER_PORT}
\n
";
print
"
Using NDBCLUSTER_PORT =
$ENV
{NDBCLUSTER_PORT}
\n
";
print
"
Using NDBCLUSTER_PORT_SLAVE =
$ENV
{NDBCLUSTER_PORT_SLAVE}
\n
";
print
"
Using NDBCLUSTER_PORT_SLAVE =
$ENV
{NDBCLUSTER_PORT_SLAVE}
\n
";
print
"
Using IM_MYSQLD1_PORT =
$ENV
{'IM_MYSQLD1_PORT'}
\n
";
print
"
Using IM_PORT =
$ENV
{IM_PORT}
\n
";
print
"
Using IM_MYSQLD2_PORT =
$ENV
{'IM_MYSQLD2_PORT'}
\n
";
print
"
Using IM_MYSQLD1_PORT =
$ENV
{IM_MYSQLD1_PORT}
\n
";
print
"
Using IM_MYSQLD2_PORT =
$ENV
{IM_MYSQLD2_PORT}
\n
";
}
}
...
...
mysql-test/mysql-test-run.sh
View file @
40596fa0
...
@@ -247,11 +247,16 @@ MYSQL_MANAGER_USER=root
...
@@ -247,11 +247,16 @@ MYSQL_MANAGER_USER=root
# an environment variable can be used to control all ports. A small
# an environment variable can be used to control all ports. A small
# number is to be used, 0 - 16 or similar.
# number is to be used, 0 - 16 or similar.
#
#
# Note the MASTER_MYPORT has to be set the same in all 4.x and 5.x
# versions of this script, else a 4.0 test run might conflict with a
# 5.1 test run, even if different MTR_BUILD_THREAD is used. This means
# all port numbers might not be used in this version of the script.
#
if
[
-n
"
$MTR_BUILD_THREAD
"
]
;
then
if
[
-n
"
$MTR_BUILD_THREAD
"
]
;
then
MASTER_MYPORT
=
`
expr
$MTR_BUILD_THREAD
'*'
5
+ 10000
`
MASTER_MYPORT
=
`
expr
$MTR_BUILD_THREAD
'*'
10
+ 10000
`
MYSQL_MANAGER_PORT
=
`
expr
$MASTER_MYPORT
+ 2
`
MYSQL_MANAGER_PORT
=
`
expr
$MASTER_MYPORT
+ 2
`
SLAVE_MYPORT
=
`
expr
$MASTER_MYPORT
+ 3
`
SLAVE_MYPORT
=
`
expr
$MASTER_MYPORT
+ 3
`
NDBCLUSTER_PORT
=
`
expr
$MASTER_MYPORT
+
4
`
NDBCLUSTER_PORT
=
`
expr
$MASTER_MYPORT
+
6
`
echo
"Using MTR_BUILD_THREAD =
$MTR_BUILD_THREAD
"
echo
"Using MTR_BUILD_THREAD =
$MTR_BUILD_THREAD
"
echo
"Using MASTER_MYPORT =
$MASTER_MYPORT
"
echo
"Using MASTER_MYPORT =
$MASTER_MYPORT
"
...
...
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