Manual cleanups
mysql-test/mysql-test-run.sh: Make it default to not use the MySQL manager (until next MySQL release)
This commit is contained in:
parent
d34950e8d2
commit
be31ffa2e4
@ -215,7 +215,7 @@ if ($opt_stage <= 5 && !$opt_no_test && !$opt_no_mysqltest)
|
|||||||
{
|
{
|
||||||
system("mkdir $bench_tmpdir") if (! -d $bench_tmpdir);
|
system("mkdir $bench_tmpdir") if (! -d $bench_tmpdir);
|
||||||
safe_cd("${test_dir}/mysql-test");
|
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
|
# Start the server if we are going to run any of the benchmarks
|
||||||
|
@ -2433,7 +2433,7 @@ mysql> SHOW STATUS;
|
|||||||
If a bug or problem occurs while running @strong{mysqld}, try to provide an
|
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
|
input script that will reproduce the anomaly. This script should include any
|
||||||
necessary source files. The more closely the script can reproduce your
|
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!
|
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
|
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
|
@file{mysql-test-run} and
|
||||||
@uref{http://www.mysql.com/information/crash-me.php,crash-me}, as well
|
@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
|
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
|
our attention. We test MySQL with these on a lot of platforms before
|
||||||
every release. These tests are more sophisticated than anything we have
|
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
|
seen from PostgreSQL, and they ensures that the MySQL is kept to a high
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
DB=test
|
DB=test
|
||||||
DBPASSWD=
|
DBPASSWD=
|
||||||
VERBOSE=""
|
VERBOSE=""
|
||||||
NO_MANAGER=""
|
USE_MANAGER=0
|
||||||
TZ=GMT-3; export TZ # for UNIX_TIMESTAMP tests to work
|
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-ca=$BASEDIR/SSL/cacert.pem \
|
||||||
--ssl-cert=$BASEDIR/SSL/server-cert.pem \
|
--ssl-cert=$BASEDIR/SSL/server-cert.pem \
|
||||||
--ssl-key=$BASEDIR/SSL/server-key.pem" ;;
|
--ssl-key=$BASEDIR/SSL/server-key.pem" ;;
|
||||||
--no-manager)
|
--no-manager | --skip-manager) USE_MANAGER=0 ;;
|
||||||
NO_MANAGER=1
|
--manager) USE_MANAGER=1 ;;
|
||||||
;;
|
|
||||||
--skip-innobase)
|
--skip-innobase)
|
||||||
EXTRA_MASTER_MYSQLD_OPT="$EXTRA_MASTER_MYSQLD_OPT --skip-innobase"
|
EXTRA_MASTER_MYSQLD_OPT="$EXTRA_MASTER_MYSQLD_OPT --skip-innobase"
|
||||||
EXTRA_SLAVE_MYSQLD_OPT="$EXTRA_SLAVE_MYSQLD_OPT --skip-innobase" ;;
|
EXTRA_SLAVE_MYSQLD_OPT="$EXTRA_SLAVE_MYSQLD_OPT --skip-innobase" ;;
|
||||||
@ -538,11 +537,12 @@ abort_if_failed()
|
|||||||
|
|
||||||
start_manager()
|
start_manager()
|
||||||
{
|
{
|
||||||
if [ -n "$NO_MANAGER" ] ; then
|
if [ $USE_MANAGER = 0 ] ; then
|
||||||
echo "Manager disabled, skipping manager start. Tests requiring manager will\
|
echo "Manager disabled, skipping manager start. Tests requiring manager will\
|
||||||
be skipped"
|
be skipped"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
$ECHO "Starting MySQL Manager"
|
||||||
MYSQL_MANAGER_PW=`$MYSQL_MANAGER_PWGEN -u $MYSQL_MANAGER_USER \
|
MYSQL_MANAGER_PW=`$MYSQL_MANAGER_PWGEN -u $MYSQL_MANAGER_USER \
|
||||||
-o $MYSQL_MANAGER_PW_FILE`
|
-o $MYSQL_MANAGER_PW_FILE`
|
||||||
$MYSQL_MANAGER --log=$MYSQL_MANAGER_LOG --port=$MYSQL_MANAGER_PORT \
|
$MYSQL_MANAGER --log=$MYSQL_MANAGER_LOG --port=$MYSQL_MANAGER_PORT \
|
||||||
@ -560,7 +560,7 @@ start_manager()
|
|||||||
|
|
||||||
stop_manager()
|
stop_manager()
|
||||||
{
|
{
|
||||||
if [ -n "$NO_MANAGER" ] ; then
|
if [ $USE_MANAGER = 0 ] ; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
$MYSQL_MANAGER_CLIENT $MANAGER_QUIET_OPT -u$MYSQL_MANAGER_USER \
|
$MYSQL_MANAGER_CLIENT $MANAGER_QUIET_OPT -u$MYSQL_MANAGER_USER \
|
||||||
@ -573,7 +573,7 @@ manager_launch()
|
|||||||
{
|
{
|
||||||
ident=$1
|
ident=$1
|
||||||
shift
|
shift
|
||||||
if [ -n "$NO_MANAGER" ] ; then
|
if [ $USE_MANAGER = 0 ] ; then
|
||||||
$@ >$CUR_MYERR 2>&1 &
|
$@ >$CUR_MYERR 2>&1 &
|
||||||
sleep 2 #hack
|
sleep 2 #hack
|
||||||
return
|
return
|
||||||
@ -593,7 +593,7 @@ manager_term()
|
|||||||
{
|
{
|
||||||
ident=$1
|
ident=$1
|
||||||
shift
|
shift
|
||||||
if [ -n "$NO_MANAGER" ] ; then
|
if [ $USE_MANAGER = 0 ] ; then
|
||||||
$MYSQLADMIN --no-defaults -uroot --socket=$MYSQL_TMP_DIR/$ident.sock -O \
|
$MYSQLADMIN --no-defaults -uroot --socket=$MYSQL_TMP_DIR/$ident.sock -O \
|
||||||
connect_timeout=5 shutdown >/dev/null 2>&1
|
connect_timeout=5 shutdown >/dev/null 2>&1
|
||||||
return
|
return
|
||||||
@ -864,7 +864,7 @@ run_testcase ()
|
|||||||
slave_init_script=$TESTDIR/$tname-slave.sh
|
slave_init_script=$TESTDIR/$tname-slave.sh
|
||||||
slave_master_info_file=$TESTDIR/$tname-slave-master-info.opt
|
slave_master_info_file=$TESTDIR/$tname-slave-master-info.opt
|
||||||
SKIP_SLAVE=`$EXPR \( $tname : rpl \) = 0`
|
SKIP_SLAVE=`$EXPR \( $tname : rpl \) = 0`
|
||||||
if [ -z "$NO_MANAGER" ] ; then
|
if [ $USE_MANAGER = 1 ] ; then
|
||||||
many_slaves=`$EXPR \( $tname : rpl_failsafe \) != 0`
|
many_slaves=`$EXPR \( $tname : rpl_failsafe \) != 0`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -1040,7 +1040,6 @@ then
|
|||||||
$MYSQLADMIN --no-defaults --socket=$SLAVE_MYSOCK -u root -O connect_timeout=5 shutdown > /dev/null 2>&1
|
$MYSQLADMIN --no-defaults --socket=$SLAVE_MYSOCK -u root -O connect_timeout=5 shutdown > /dev/null 2>&1
|
||||||
$ECHO "Installing Test Databases"
|
$ECHO "Installing Test Databases"
|
||||||
mysql_install_db
|
mysql_install_db
|
||||||
$ECHO "Starting MySQL Manager"
|
|
||||||
start_manager
|
start_manager
|
||||||
#do not automagically start deamons if we are in gdb or running only one test
|
#do not automagically start deamons if we are in gdb or running only one test
|
||||||
#case
|
#case
|
||||||
|
Loading…
x
Reference in New Issue
Block a user