diff options
author | unknown <sasha@mysql.sashanet.com> | 2000-11-24 19:49:13 -0700 |
---|---|---|
committer | unknown <sasha@mysql.sashanet.com> | 2000-11-24 19:49:13 -0700 |
commit | 1ef81b2165e5bd416bcb5b6dc91d0cbb64e4af17 (patch) | |
tree | 8369a6e73770b40358d3b22b40c94e58de8913e4 /mysql-test/create-test-result | |
parent | 85a61b2cce24448f7ea24c75584a6f7061fd94e5 (diff) | |
download | mariadb-git-1ef81b2165e5bd416bcb5b6dc91d0cbb64e4af17.tar.gz |
slave master.info FILE -> IO_CACHE
send_file() is more stack-friendly - changed large static buffer to alloc_root()
fixed my_b_seek() to work with WRITE_CACHE
test case to make sure the slave starts correctly after being stopped
truncated words file so the replication tests will take less time
mysql-test/r/3.23/rpl000001.b.result:
truncated words file
mysql-test/r/3.23/rpl000004.b.result:
truncated words file
mysql-test/std_data/words:
truncated words file
BitKeeper/etc/ignore:
Added mysql-test/rpl000011.test mysql-test/var/lib/mysql-bin.007 sql/share/norwegian/errmsg.sys sql/share/norwegian-ny/errmsg.sys to the ignore list
mysys/mf_iocache2.c:
got my_b_seek() to work with WRITE_CACHE, at least the one used by the slave
sql/share/romanian/errmsg.sys:
accidently touched the file
sql/slave.cc:
converted FILE to IO_CACHE for master.info
sql/slave.h:
FILE -> IO_CACHE for master.info
sql/sql_repl.cc:
be nice to the stack - change a large stack buffer to be alloced with
alloc_root in send_file()
Diffstat (limited to 'mysql-test/create-test-result')
-rwxr-xr-x | mysql-test/create-test-result | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/mysql-test/create-test-result b/mysql-test/create-test-result new file mode 100755 index 00000000000..08ca7a71921 --- /dev/null +++ b/mysql-test/create-test-result @@ -0,0 +1,66 @@ +#! /bin/sh + +# This script is a hack for lazy developers who want to get a quick +# start on the result file. The code here is rather dirty, but it works +# If you have a spare moment feel free to improve it - the right way is +# to start mysqld yourself and run mysqltest -r + +RESULT_DIR=r/3.23 +if [ -z $EDITOR] then; + EDITOR=vi +fi + +function die() +{ + echo $1 + exit 1 +} + +function usage() +{ + echo "Usage: $0 test_name" + exit 1 +} + +test_name=$1 + +[ -z $test_name ] && usage + +result_file=$result_dir/$test_name.result + +[ -f $result_file ] && die "result file $result_file has already been created" + +touch $result_file +echo "Running the test case against empty file, will fail, but don't worry" +./mysql-test-run $test_name + +reject_file=$result_file.reject + +if [ -f $reject_file ] ; then + echo "Below are the contents of the reject file:" + echo "-----start---------------------" + cat $result_file. + echo "-----end-----------------------" + echo "Is this the output you expected from your test case?(y/n)[n]" + read yes_no + if [ x$yes_no = xy ] then; + echo "Press any key to edit it in $EDITOR, or Ctrl-C to abort" + read junk + $EDITOR $reject_file + edited="edited" + fi + echo "Save $edited file as master result? (y/n)[y]" + read yes_no + if [ x$yes_no != xn ]; then + mv $reject_file $result_file + fi +else + echo "Your test failed so bad, it did not even produce a reject file" + echo "You need to fix your bugs in the test case, the code, or both" + exit 1 +fi + + + + + |