diff options
author | unknown <jani@ua141d10.elisa.omakaista.fi> | 2005-03-08 18:32:31 +0200 |
---|---|---|
committer | unknown <jani@ua141d10.elisa.omakaista.fi> | 2005-03-08 18:32:31 +0200 |
commit | 5ff4f8e50356c43ff248ea68ae63fcbb21c1e7e6 (patch) | |
tree | 60134765e12c38ef685fc30bb4e4031afe1d8382 /mysql-test/mysql-test-run.sh | |
parent | ab0e3314360d648d394563a833d118376fb32759 (diff) | |
download | mariadb-git-5ff4f8e50356c43ff248ea68ae63fcbb21c1e7e6.tar.gz |
Added possibility to add disabled tests to mysql-test-run.
Diffstat (limited to 'mysql-test/mysql-test-run.sh')
-rw-r--r-- | mysql-test/mysql-test-run.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/mysql-test/mysql-test-run.sh b/mysql-test/mysql-test-run.sh index 36d434c57d4..8231742abef 100644 --- a/mysql-test/mysql-test-run.sh +++ b/mysql-test/mysql-test-run.sh @@ -817,6 +817,18 @@ skip_test() { $ECHO "$RES$RES_SPACE [ skipped ]" } + +disable_test() { + USERT=" ...." + SYST=" ...." + REALT=" ...." + pname=`$ECHO "$1 "|$CUT -c 1-24` + RES="$pname" + skip_inc + $ECHO "$RES$RES_SPACE [ disabled ] $2" +} + + report_current_test () { tname=$1 echo "CURRENT_TEST: $tname" >> $MASTER_MYERR @@ -1471,6 +1483,12 @@ run_testcase () if [ -n "$RESULT_EXT" -a \( x$RECORD = x1 -o -f "$result_file$RESULT_EXT" \) ] ; then result_file="$result_file$RESULT_EXT" fi + if [ -f "$TESTDIR/$tname.disabled" ] + then + comment=`$CAT $TESTDIR/$tname.disabled`; + disable_test $tname "$comment" + return + fi if [ "$USE_MANAGER" = 1 ] ; then many_slaves=`$EXPR \( \( $tname : rpl_failsafe \) != 0 \) \| \( \( $tname : rpl_chain_temp_table \) != 0 \)` fi |