diff options
author | unknown <kent@mysql.com> | 2006-02-10 19:47:46 +0100 |
---|---|---|
committer | unknown <kent@mysql.com> | 2006-02-10 19:47:46 +0100 |
commit | a183a425abd7c2a65e289e5ee4d0e080eebec2db (patch) | |
tree | 3964afc752023e6ece5cf50cf861f65e762f40a4 /mysql-test/mysql-test-run.pl | |
parent | b2b4e18f7b0879d22cd7fab456a728836c523520 (diff) | |
parent | 34d8502a51851caeed8e9f24ce3c20de9288ec25 (diff) | |
download | mariadb-git-a183a425abd7c2a65e289e5ee4d0e080eebec2db.tar.gz |
Merge
mysql-test/mysql-test-run.sh:
Auto merged
ndb/src/kernel/blocks/dbdih/DbdihMain.cpp:
Auto merged
ndb/src/kernel/blocks/dblqh/DblqhMain.cpp:
Auto merged
mysql-test/mysql-test-run.pl:
Rearranged the port numbers to fit into the range
Diffstat (limited to 'mysql-test/mysql-test-run.pl')
-rwxr-xr-x | mysql-test/mysql-test-run.pl | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index ae277c4a554..0fdfcb467f2 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -496,14 +496,25 @@ sub command_line_setup () { my $im_mysqld1_port= 9312; 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'} ) { - $opt_master_myport= $ENV{'MTR_BUILD_THREAD'} * 40 + 8120; - $opt_slave_myport= $opt_master_myport + 16; - $opt_ndbcluster_port= $opt_master_myport + 24; - $im_port= $opt_master_myport + 10; - $im_mysqld1_port= $opt_master_myport + 12; - $im_mysqld2_port= $opt_master_myport + 14; + # Up to two masters, up to three slaves + $opt_master_myport= $ENV{'MTR_BUILD_THREAD'} * 10 + 10000; # and 1 + $opt_slave_myport= $opt_master_myport + 2; + $opt_ndbcluster_port= $opt_master_myport + 3; # and 4 5 + $im_port= $opt_master_myport + 6; + $im_mysqld1_port= $opt_master_myport + 7; + $im_mysqld2_port= $opt_master_myport + 8; } # Read the command line |