summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <monty@hundin.mysql.fi>2001-10-12 00:41:31 +0300
committerunknown <monty@hundin.mysql.fi>2001-10-12 00:41:31 +0300
commitbe31ffa2e46cac314694452b51935ec841b8f06e (patch)
treef5efdfddc5ed01d9fee19200292d80dcdae54e03
parentd34950e8d2db7a28c92c5129edc63a11bba0792d (diff)
downloadmariadb-git-be31ffa2e46cac314694452b51935ec841b8f06e.tar.gz
Manual cleanups
mysql-test/mysql-test-run.sh: Make it default to not use the MySQL manager (until next MySQL release)
-rwxr-xr-xBuild-tools/Do-compile2
-rw-r--r--Docs/manual.texi4
-rw-r--r--mysql-test/mysql-test-run.sh19
3 files changed, 12 insertions, 13 deletions
diff --git a/Build-tools/Do-compile b/Build-tools/Do-compile
index 10d97dfbe82..76b94f314c8 100755
--- a/Build-tools/Do-compile
+++ b/Build-tools/Do-compile
@@ -215,7 +215,7 @@ if ($opt_stage <= 5 && !$opt_no_test && !$opt_no_mysqltest)
{
system("mkdir $bench_tmpdir") if (! -d $bench_tmpdir);
safe_cd("${test_dir}/mysql-test");
- check_system("./mysql-test-run --tmpdir=$bench_tmpdir --master_port=$mysql_tcp_port --slave_port=$slave_port --manager-port=$manager_port --sleep=10", "tests were successful");
+ check_system("./mysql-test-run --tmpdir=$bench_tmpdir --master_port=$mysql_tcp_port --slave_port=$slave_port --manager-port=$manager_port --no-manager --sleep=10", "tests were successful");
}
# Start the server if we are going to run any of the benchmarks
diff --git a/Docs/manual.texi b/Docs/manual.texi
index 951c57931ba..fb7fe288082 100644
--- a/Docs/manual.texi
+++ b/Docs/manual.texi
@@ -2433,7 +2433,7 @@ mysql> SHOW STATUS;
If a bug or problem occurs while running @strong{mysqld}, try to provide an
input script that will reproduce the anomaly. This script should include any
necessary source files. The more closely the script can reproduce your
-situation, the better. If you can make a repeatable test case, you should
+situation, the better. If you can make a reproduceable test case, you should
post this to @email{bugs@@lists.mysql.com} for a high priority treatment!
If you can't provide a script, you should at least include the output
@@ -4786,7 +4786,7 @@ Included in the MySQL distribution are two different testing suites,
@file{mysql-test-run} and
@uref{http://www.mysql.com/information/crash-me.php,crash-me}, as well
as a benchmark suite. The test system is actively updated with code to
-test each new feature and almost all repeatable bugs that have come to
+test each new feature and almost all reproduceable bugs that have come to
our attention. We test MySQL with these on a lot of platforms before
every release. These tests are more sophisticated than anything we have
seen from PostgreSQL, and they ensures that the MySQL is kept to a high
diff --git a/mysql-test/mysql-test-run.sh b/mysql-test/mysql-test-run.sh
index b601abce1fc..a7cbacc0aa8 100644
--- a/mysql-test/mysql-test-run.sh
+++ b/mysql-test/mysql-test-run.sh
@@ -12,7 +12,7 @@
DB=test
DBPASSWD=
VERBOSE=""
-NO_MANAGER=""
+USE_MANAGER=0
TZ=GMT-3; export TZ # for UNIX_TIMESTAMP tests to work
#++
@@ -163,9 +163,8 @@ while test $# -gt 0; do
--ssl-ca=$BASEDIR/SSL/cacert.pem \
--ssl-cert=$BASEDIR/SSL/server-cert.pem \
--ssl-key=$BASEDIR/SSL/server-key.pem" ;;
- --no-manager)
- NO_MANAGER=1
- ;;
+ --no-manager | --skip-manager) USE_MANAGER=0 ;;
+ --manager) USE_MANAGER=1 ;;
--skip-innobase)
EXTRA_MASTER_MYSQLD_OPT="$EXTRA_MASTER_MYSQLD_OPT --skip-innobase"
EXTRA_SLAVE_MYSQLD_OPT="$EXTRA_SLAVE_MYSQLD_OPT --skip-innobase" ;;
@@ -538,11 +537,12 @@ abort_if_failed()
start_manager()
{
- if [ -n "$NO_MANAGER" ] ; then
+ if [ $USE_MANAGER = 0 ] ; then
echo "Manager disabled, skipping manager start. Tests requiring manager will\
be skipped"
return
fi
+ $ECHO "Starting MySQL Manager"
MYSQL_MANAGER_PW=`$MYSQL_MANAGER_PWGEN -u $MYSQL_MANAGER_USER \
-o $MYSQL_MANAGER_PW_FILE`
$MYSQL_MANAGER --log=$MYSQL_MANAGER_LOG --port=$MYSQL_MANAGER_PORT \
@@ -560,7 +560,7 @@ start_manager()
stop_manager()
{
- if [ -n "$NO_MANAGER" ] ; then
+ if [ $USE_MANAGER = 0 ] ; then
return
fi
$MYSQL_MANAGER_CLIENT $MANAGER_QUIET_OPT -u$MYSQL_MANAGER_USER \
@@ -573,7 +573,7 @@ manager_launch()
{
ident=$1
shift
- if [ -n "$NO_MANAGER" ] ; then
+ if [ $USE_MANAGER = 0 ] ; then
$@ >$CUR_MYERR 2>&1 &
sleep 2 #hack
return
@@ -593,7 +593,7 @@ manager_term()
{
ident=$1
shift
- if [ -n "$NO_MANAGER" ] ; then
+ if [ $USE_MANAGER = 0 ] ; then
$MYSQLADMIN --no-defaults -uroot --socket=$MYSQL_TMP_DIR/$ident.sock -O \
connect_timeout=5 shutdown >/dev/null 2>&1
return
@@ -864,7 +864,7 @@ run_testcase ()
slave_init_script=$TESTDIR/$tname-slave.sh
slave_master_info_file=$TESTDIR/$tname-slave-master-info.opt
SKIP_SLAVE=`$EXPR \( $tname : rpl \) = 0`
- if [ -z "$NO_MANAGER" ] ; then
+ if [ $USE_MANAGER = 1 ] ; then
many_slaves=`$EXPR \( $tname : rpl_failsafe \) != 0`
fi
@@ -1040,7 +1040,6 @@ then
$MYSQLADMIN --no-defaults --socket=$SLAVE_MYSOCK -u root -O connect_timeout=5 shutdown > /dev/null 2>&1
$ECHO "Installing Test Databases"
mysql_install_db
- $ECHO "Starting MySQL Manager"
start_manager
#do not automagically start deamons if we are in gdb or running only one test
#case