summaryrefslogtreecommitdiff
path: root/mysql-test/mysql-test-run.sh
diff options
context:
space:
mode:
authorunknown <sasha@mysql.sashanet.com>2001-04-12 13:46:19 -0600
committerunknown <sasha@mysql.sashanet.com>2001-04-12 13:46:19 -0600
commit4d4dbc94c2f386c36c5bcb64213bebb5693af208 (patch)
tree6b6eccc0d4314f9fdf07f9dfbc2a30d22af14870 /mysql-test/mysql-test-run.sh
parentfa30245c81d8a4412d4d10a44d84fb43cc6c6b1e (diff)
downloadmariadb-git-4d4dbc94c2f386c36c5bcb64213bebb5693af208.tar.gz
BitKeeper/triggers/post-commit
do REAL_EMAIL magic mysql-test/mysql-test-run.sh added show_failed_diffs mysql-test/r/bench_count_distinct.result tired of waiting :-) mysql-test/r/rpl000001.result new test results after implementing Monty's Hack (TM) mysql-test/t/bench_count_distinct.test tired of waiting mysql-test/t/rpl000001.test implemented Monty's Hack (TM) to kill a query in the middle of update without generating a table with 30,000 rows. This will also avoice the timing uncertainty BitKeeper/triggers/post-commit: do REAL_EMAIL magic mysql-test/mysql-test-run.sh: added show_failed_diffs mysql-test/r/bench_count_distinct.result: tired of waiting :-) mysql-test/r/rpl000001.result: new test results after implementing Monty's Hack (TM) mysql-test/t/bench_count_distinct.test: tired of waiting mysql-test/t/rpl000001.test: implemented Monty's Hack (TM) to kill a query in the middle of update without generating a table with 30,000 rows. This will also avoice the timing uncertainty
Diffstat (limited to 'mysql-test/mysql-test-run.sh')
-rw-r--r--mysql-test/mysql-test-run.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/mysql-test/mysql-test-run.sh b/mysql-test/mysql-test-run.sh
index 1ee2786e2a2..9342e30f1a1 100644
--- a/mysql-test/mysql-test-run.sh
+++ b/mysql-test/mysql-test-run.sh
@@ -44,6 +44,7 @@ which ()
# No paths below as we can't be sure where the program is!
BASENAME=`which basename | head -1`
+DIFF=`which diff | head -1`
CAT=cat
CUT=cut
TAIL=tail
@@ -283,6 +284,20 @@ prompt_user ()
read unused
}
+show_failed_diff ()
+{
+ reject_file=r/$1.reject
+ result_file=r/$1.result
+ if [ -x "$DIFF" ] && [ -f $reject_file ]
+ then
+ echo "Below are the diffs between actual and expected results:"
+ echo "-------------------------------------------------------"
+ $DIFF -u $result_file $reject_file
+ echo "-------------------------------------------------------"
+ echo "Please e-mail the above, along with the output of mysqlbug"
+ echo "and any other relevant info to bugs@lists.mysql.com"
+ fi
+}
error () {
$ECHO "Error: $1"
@@ -675,6 +690,7 @@ run_testcase ()
$ECHO "$RES$RES_SPACE [ fail ]"
$ECHO
error_is
+ show_failed_diff $tname
$ECHO
if [ x$FORCE != x1 ] ; then
$ECHO "Aborting. To continue, re-run with '--force'."