diff options
author | monty@hundin.mysql.fi <> | 2002-08-21 22:04:22 +0300 |
---|---|---|
committer | monty@hundin.mysql.fi <> | 2002-08-21 22:04:22 +0300 |
commit | 03b0179af9f3492c4682dbc85542529215010a7c (patch) | |
tree | 75f29bea26c7fd21a45f22fd906c7a1545aaee91 /mysql-test/mysql-test-run.sh | |
parent | a5edb200421018ee967045903b2802c2d5c1bd75 (diff) | |
download | mariadb-git-03b0179af9f3492c4682dbc85542529215010a7c.tar.gz |
Use our version of RWLOCKS on UNIXWARE 7
More DBUG info for replication
Better error messages from replication
Fixed bug in replication code when connecting to 'localhost' (time was not released properly)
Block ALARM signal on Linux for signal handler thread (Fixes problem with running mysqld with --debug)
Removed warning when setting an AUTO_INCREMENT field to NULL
Diffstat (limited to 'mysql-test/mysql-test-run.sh')
-rw-r--r-- | mysql-test/mysql-test-run.sh | 38 |
1 files changed, 25 insertions, 13 deletions
diff --git a/mysql-test/mysql-test-run.sh b/mysql-test/mysql-test-run.sh index a4e9b0ea08a..770a827f103 100644 --- a/mysql-test/mysql-test-run.sh +++ b/mysql-test/mysql-test-run.sh @@ -93,7 +93,7 @@ FIND=find GCOV=`which gcov | $SED q` PRINTF=printf RM=rm -TIME=time +TIME=`which time | $SED q` TR=tr XARGS=`which xargs | $SED q` @@ -391,7 +391,12 @@ if [ x$SOURCE_DIST = x1 ] ; then CHARSETSDIR="$BASEDIR/sql/share/charsets" INSTALL_DB="./install_test_db" else - MYSQLD="$BASEDIR/bin/mysqld" + if test -x "$BASEDIR/libexec/mysqld" + then + MYSQLD="$BASEDIR/libexec/mysqld" + else + MYSQLD="$BASEDIR/bin/mysqld" + fi MYSQL_TEST="$BASEDIR/bin/mysqltest" MYSQLADMIN="$BASEDIR/bin/mysqladmin" MYSQL_MANAGER="$BASEDIR/bin/mysqlmanager" @@ -530,6 +535,18 @@ total_inc () { TOT_TEST=`$EXPR $TOT_TEST + 1` } + +skip_test() { + USERT=" ...." + SYST=" ...." + REALT=" ...." + timestr="$USERT $SYST $REALT" + pname=`$ECHO "$1 "|$CUT -c 1-24` + RES="$pname $timestr" + skip_inc + $ECHO "$RES$RES_SPACE [ skipped ]" +} + report_stats () { if [ $TOT_FAIL = 0 ]; then $ECHO "All $TOT_TEST tests were successful." @@ -567,7 +584,7 @@ mysql_install_db () { for slave_num in 1 2 ; do - $RM -rf var/slave$slave_num-data/ + $RM -rf var/slave$slave_num-data mkdir -p var/slave$slave_num-data/mysql mkdir -p var/slave$slave_num-data/test cp var/slave-data/mysql/* var/slave$slave_num-data/mysql @@ -1026,7 +1043,8 @@ run_testcase () SKIP_THIS_TEST=`$EXPR \( $tname : "$SKIP_TEST" \) != 0` if [ x$SKIP_THIS_TEST = x1 ] ; then - return; + skip_test $tname; + return; fi fi @@ -1034,21 +1052,15 @@ run_testcase () DO_THIS_TEST=`$EXPR \( $tname : "$DO_TEST" \) != 0` if [ x$DO_THIS_TEST = x0 ] ; then - return; + skip_test $tname; + return; fi fi if [ x${NO_SLAVE}x$SKIP_SLAVE = x1x0 ] ; then - USERT=" ...." - SYST=" ...." - REALT=" ...." - timestr="$USERT $SYST $REALT" - pname=`$ECHO "$tname "|$CUT -c 1-24` - RES="$pname $timestr" - skip_inc - $ECHO "$RES$RES_SPACE [ skipped ]" + skip_test $tname; return fi |