You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
1.5 KiB

new EXPLAIN fixed bug in mysql-test/create-test-result fixed bug in union-subselect engine mysql-test/create-test-result: fixed bug in reject file name assembling mysql-test/r/compare.result: new EXPLAIN mysql-test/r/create.result: new EXPLAIN mysql-test/r/distinct.result: new EXPLAIN mysql-test/r/explain.result: new EXPLAIN mysql-test/r/group_by.result: new EXPLAIN mysql-test/r/heap.result: new EXPLAIN mysql-test/r/heap_btree.result: new EXPLAIN mysql-test/r/heap_hash.result: new EXPLAIN mysql-test/r/innodb.result: new EXPLAIN mysql-test/r/join_outer.result: new EXPLAIN mysql-test/r/key_diff.result: new EXPLAIN mysql-test/r/key_primary.result: new EXPLAIN mysql-test/r/merge.result: new EXPLAIN mysql-test/r/myisam.result: new EXPLAIN mysql-test/r/null_key.result: new EXPLAIN mysql-test/r/odbc.result: new EXPLAIN mysql-test/r/order_by.result: new EXPLAIN mysql-test/r/range.result: new EXPLAIN mysql-test/r/select.result: new EXPLAIN mysql-test/r/subselect.result: new EXPLAIN mysql-test/r/type_datetime.result: new EXPLAIN mysql-test/r/union.result: new EXPLAIN mysql-test/r/user_var.result: new EXPLAIN mysql-test/r/varbinary.result: new EXPLAIN mysql-test/t/subselect.test: new EXPLAIN mysql-test/t/union.test: new EXPLAIN sql/mysql_priv.h: new EXPLAIN sql/sql_class.cc: new EXPLAIN sql/sql_class.h: new EXPLAIN sql/sql_derived.cc: new EXPLAIN sql/sql_lex.h: new EXPLAIN sql/sql_parse.cc: new EXPLAIN sql/sql_select.cc: new EXPLAIN sql/sql_union.cc: fixed bug in subselect-UNION engine sql/table.h: new EXPLAIN
24 years ago
  1. #! /bin/sh
  2. # This script is a hack for lazy developers who want to get a quick
  3. # start on the result file. The code here is rather dirty, but it works
  4. # If you have a spare moment feel free to improve it - the right way is
  5. # to start mysqld yourself and run mysqltest -r
  6. RESULT_DIR=r
  7. if [ -z "$EDITOR" ] ; then
  8. EDITOR=vi
  9. fi
  10. function die()
  11. {
  12. echo $1
  13. exit 1
  14. }
  15. function usage()
  16. {
  17. echo "Usage: $0 test_name"
  18. exit 1
  19. }
  20. test_name=$1
  21. [ -z "$test_name" ] && usage
  22. result_file=$RESULT_DIR/$test_name.result
  23. reject_file=$RESULT_DIR/$test_name.reject
  24. [ -f $result_file ] && die "result file $result_file has already been created"
  25. touch $result_file
  26. echo "Running the test case against empty file, will fail, but don't worry"
  27. ./mysql-test-run --local $test_name
  28. if [ -f $reject_file ] ; then
  29. echo "Below are the contents of the reject file:"
  30. echo "-----start---------------------"
  31. cat $reject_file
  32. echo "-----end-----------------------"
  33. echo "Is this the output you expected from your test case?(y/n)[n]"
  34. read yes_no
  35. if [ x$yes_no = xy ] ; then
  36. echo "Press any key to edit it in $EDITOR, or Ctrl-C to abort"
  37. read junk
  38. $EDITOR $reject_file
  39. edited="edited"
  40. fi
  41. echo "Save $edited file as master result? (y/n)[y]"
  42. read yes_no
  43. if [ x$yes_no != xn ]; then
  44. mv $reject_file $result_file
  45. fi
  46. else
  47. echo "Your test failed so bad, it did not even produce a reject file"
  48. echo "You need to fix your bugs in the test case, the code, or both"
  49. exit 1
  50. fi