mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-28 17:15:19 +03:00 
			
		
		
		
	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
		
			
				
	
	
		
			66 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			66 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #! /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
 | |
| 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
 | |
| reject_file=$RESULT_DIR/$test_name.reject
 | |
| 
 | |
| [ -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 --local $test_name
 | |
| 
 | |
| if [ -f $reject_file ] ; then
 | |
|   echo "Below are the contents of the reject file:"
 | |
|   echo "-----start---------------------"
 | |
|   cat $reject_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
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 |