diff options
author | unknown <kent@mysql.com> | 2005-10-25 02:27:55 +0200 |
---|---|---|
committer | unknown <kent@mysql.com> | 2005-10-25 02:27:55 +0200 |
commit | e17b176e9b9a2589a54e972bdede1138937317cc (patch) | |
tree | a7cb555863d0372b98447a339f926654d3f38d43 /mysql-test/mysql-test-run.sh | |
parent | 124b0a594c0082ebd2fd59ef2e3ac64a2b0468ae (diff) | |
download | mariadb-git-e17b176e9b9a2589a54e972bdede1138937317cc.tar.gz |
Makefile.am:
Option to set environment variable MTR_BUILD_THREAD to a small
number, from what mysql-test-run calculate port numbers that
will not conflict with other runs with different thread num
Makefile.am:
Option to set environment variable MTR_BUILD_THREAD to a small
number, from what mysql-test-run calculate port numbers that
will not conflict with other runs with different thread num
Diffstat (limited to 'mysql-test/mysql-test-run.sh')
-rw-r--r-- | mysql-test/mysql-test-run.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/mysql-test/mysql-test-run.sh b/mysql-test/mysql-test-run.sh index b760309bb5b..9a2c4345bae 100644 --- a/mysql-test/mysql-test-run.sh +++ b/mysql-test/mysql-test-run.sh @@ -201,6 +201,23 @@ MYSQL_MANAGER_PORT=9305 # needs to be out of the way of slaves MYSQL_MANAGER_PW_FILE=$MYSQL_TEST_DIR/var/tmp/manager.pwd MYSQL_MANAGER_LOG=$MYSQL_TEST_DIR/var/log/manager.log MYSQL_MANAGER_USER=root + +# +# 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. +# +if [ -n "$MTR_BUILD_THREAD" ] ; then + MASTER_MYPORT=`expr $MTR_BUILD_THREAD '*' 40 + 8120` + SLAVE_MYPORT=`expr $MASTER_MYPORT + 16` + MYSQL_MANAGER_PORT=`expr $MASTER_MYPORT + 2` + + echo "Using MTR_BUILD_THREAD = $MTR_BUILD_THREAD" + echo "Using MASTER_MYPORT = $MASTER_MYPORT" + echo "Using MYSQL_MANAGER_PORT = $MYSQL_MANAGER_PORT" + echo "Using SLAVE_MYPORT = $SLAVE_MYPORT" +fi + NO_SLAVE=0 USER_TEST= FAILED_CASES= |