1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-31 22:22:30 +03:00

Extended mysqltest with --commands and 'require'

Fixed test results.
Added mysqld variable 'have_isam'
This commit is contained in:
monty@donna.mysql.com
2000-12-27 03:31:06 +02:00
parent 988a98c393
commit 361067e915
93 changed files with 878 additions and 819 deletions

View File

@@ -189,6 +189,10 @@ fail_inc () {
TOT_FAIL=`$EXPR $TOT_FAIL + 1`
}
skip_inc () {
TOT_SKIP=`$EXPR $TOT_SKIP + 1`
}
total_inc () {
TOT_TEST=`$EXPR $TOT_TEST + 1`
}
@@ -463,9 +467,14 @@ run_testcase ()
$SETCOLOR_NORMAL && $ECHO -n "$pname $timestr"
total_inc
if [ $res != 0 ]; then
if [ $res == 0 ]; then
total_inc
pass_inc
echo "$RES_SPACE [ pass ]"
else
if [ $res == 1 ]; then
total_inc
fail_inc
echo "$RES_SPACE [ fail ]"
$ECHO "failed output"
@@ -481,12 +490,12 @@ run_testcase ()
echo "Restarting mysqld"
mysql_restart
echo "Resuming Tests"
else
pass_inc
echo "$RES_SPACE [ pass ]"
else
pass_inc
echo "$RES_SPACE [ skipped ]"
fi
fi
fi
}
@@ -525,7 +534,8 @@ then
done
fi
else
tf=$TESTDIR/$1.$TESTSUFFIX
tname=`$BASENAME $1 .test`
tf=$TESTDIR/$tname.$TESTSUFFIX
if [ -f $tf ] ; then
run_testcase $tf
else