~drizzle-trunk/drizzle/development

0.67.305 by Bernt M. Johnsen
Copyright headres and license added
1
# Copyright (C) 2008 Sun Microsystems, Inc. All rights reserved.  Use
2
# is subject to license terms.
3
#
4
# This program is free software; you can redistribute it and/or modify
5
# it under the terms of the GNU General Public License as published by
6
# the Free Software Foundation; version 2 of the License.
7
#
8
# This program is distributed in the hope that it will be useful, but
9
# WITHOUT ANY WARRANTY; without even the implied warranty of
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
# General Public License for more details.
12
#
13
# You should have received a copy of the GNU General Public License
14
# along with this program; if not, write to the Free Software
15
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
16
# USA
17
0.67.206 by Bernt M. Johnsen
simplify-mysqltest_template.cfg added
18
# Configuration file template for  util/simplify-mysqltest.pl
19
#
20
# Please
0.67.303 by Matthias Leich
Minor modifications
21
# - copy this file to for example simplify-mysqltest_1.cfg and
0.67.206 by Bernt M. Johnsen
simplify-mysqltest_template.cfg added
22
# - adjust the settings so that they fit to your usage case and
23
#   environment
24
#
25
26
{
0.67.207 by Matthias Leich
- Add comments
27
28
# base_dir
29
#---------
30
# Directory where your MySQL release is installed.
0.67.286 by John H. Embretsen
New feature in simplify-mysqltest.pl utility script: Specify basedir2 in order to simplify a test case based on result differences between two servers.
31
#
32
# If you want to simplify based on result differences between two server versions
33
# instead of looking for expected output from a single server, specify both
34
# basedir and basedir2 below.
0.67.298 by Philip Stoev
faster mysqltest simplification
35
#
36
# Unless you are looking for an assertion, use a non-debug build for faster processing
37
#
0.67.207 by Matthias Leich
- Add comments
38
0.67.298 by Philip Stoev
faster mysqltest simplification
39
    basedir => '/build/bzr/mysql-5.1-rep+3',
0.67.207 by Matthias Leich
- Add comments
40
0.67.206 by Bernt M. Johnsen
simplify-mysqltest_template.cfg added
41
# input_file
0.67.207 by Matthias Leich
- Add comments
42
#-----------
43
# File which should be used as the base for the simplification process.
0.67.209 by Matthias Leich
- minor corrections
44
# This could be a
45
# - script (extension .test) for processing via mysq-ltest-run.pl
46
# - statement log (extension .CSV)
0.67.218 by Matthias Leich
Improve comments
47
#   Example: <basedir>/var/master-data/mysql/general_log.CSV
0.67.209 by Matthias Leich
- minor corrections
48
#
0.67.207 by Matthias Leich
- Add comments
49
0.67.300 by Philip Stoev
final simplification adjustments
50
    input_file => '/tmp/general_log.CSV',
0.67.207 by Matthias Leich
- Add comments
51
0.67.206 by Bernt M. Johnsen
simplify-mysqltest_template.cfg added
52
# expected_mtr_output
0.67.207 by Matthias Leich
- Add comments
53
#--------------------
0.67.209 by Matthias Leich
- minor corrections
54
# Pattern which needs to occur within the MTR output after a successful
55
# simplification. The search pattern is usually derived from a backtrace.
0.67.303 by Matthias Leich
Minor modifications
56
# Not needed if two basedirs (servers) are specified (file comparison is used
0.67.286 by John H. Embretsen
New feature in simplify-mysqltest.pl utility script: Specify basedir2 in order to simplify a test case based on result differences between two servers.
57
# instead).
0.67.209 by Matthias Leich
- minor corrections
58
#
0.67.218 by Matthias Leich
Improve comments
59
# Some hints:
60
# "."   matches any character including newline (the search command uses the "s" modifier)
61
# "{<min>,<max>}"   Minimum match count <min> , Maximum match count <max>
62
# So the example pattern causes basically a search for
63
# "safe_cond_timedwait" with a distance of less than 151 characters to a following
64
# "thr_mutex.c" with a distance of less than 51 characters to a following ...
0.67.303 by Matthias Leich
Minor modifications
65
# Example:
66
#   'safe_cond_timedwait.{0,150}thr_mutex\.c.{0,50}Item_func_sleep::val_int.{0,3000}SELECT 1,SLEEP\(10\)',
67
#
0.67.209 by Matthias Leich
- minor corrections
68
0.67.300 by Philip Stoev
final simplification adjustments
69
    expected_mtr_output => 'HA_ERR_END_OF_FILE',
0.67.209 by Matthias Leich
- minor corrections
70
0.67.218 by Matthias Leich
Improve comments
71
# Please be careful when using addresses or source file line numbers in search patterns.
72
# - They increase the selectivity of the search.
73
# - A minor change of the server startup options, source files etc. could cause that the search fails.
0.67.207 by Matthias Leich
- Add comments
74
0.67.303 by Matthias Leich
Minor modifications
75
# header
76
#-------
0.67.298 by Philip Stoev
faster mysqltest simplification
77
# The header is prepended to each test case and is not influenced by simplification.
78
# If replication is enabled, --source include/master-slave.inc will also be used.
0.67.303 by Matthias Leich
Minor modifications
79
#
80
81
    header => [
0.67.307 by Philip Stoev
further fixes to mysqltest simplification
82
#	'--source include/master-slave.inc',		# Enable this for replication
0.67.303 by Matthias Leich
Minor modifications
83
        '--disable_abort_on_error',
0.67.307 by Philip Stoev
further fixes to mysqltest simplification
84
        '--disable_warnings',
85
	'--disable_query_log',
86
	'--disable_result_log'
0.67.303 by Matthias Leich
Minor modifications
87
    ],
88
89
# footer
90
#-------
0.67.298 by Philip Stoev
faster mysqltest simplification
91
# The footer is appended to each test case and is not influenced by simplification.
92
# When replication is enabled, the default footer is '--sync_slave_with_master'
93
# If you are simplifying a crashing bug, you can also put your crashing query here
94
#
95
0.67.303 by Matthias Leich
Minor modifications
96
    footer => [
0.67.307 by Philip Stoev
further fixes to mysqltest simplification
97
#	'--connection master',
98
#	'--sync_slave_with_master',			# Enable this for replication
99
100
#	'--let $diff_table_1 = master:test.table1_int',
101
#	'--let $diff_table_2 = slave:test.table1_int',
102
#	'--source include/diff_tables.inc',
0.67.303 by Matthias Leich
Minor modifications
103
    ],
0.67.298 by Philip Stoev
faster mysqltest simplification
104
0.67.303 by Matthias Leich
Minor modifications
105
# filter
106
#-------
0.67.298 by Philip Stoev
faster mysqltest simplification
107
# The filter is applied to the test case in order to remove irrelevant queries. If 
108
# you are running a replication test, you may also wish to filter out SELECTs
109
#
110
0.67.303 by Matthias Leich
Minor modifications
111
    filter => qr{SHOW WARNINGS|EXPLAIN}sio,
0.67.298 by Philip Stoev
faster mysqltest simplification
112
0.67.206 by Bernt M. Johnsen
simplify-mysqltest_template.cfg added
113
# mtr_options
114
#------------
0.67.207 by Matthias Leich
- Add comments
115
# mysql-test-run.pl (MTR) options which should be used.
0.67.286 by John H. Embretsen
New feature in simplify-mysqltest.pl utility script: Specify basedir2 in order to simplify a test case based on result differences between two servers.
116
# 'record' is required if two basedirs (servers) are specified.
0.67.303 by Matthias Leich
Minor modifications
117
#
0.67.207 by Matthias Leich
- Add comments
118
0.67.206 by Bernt M. Johnsen
simplify-mysqltest_template.cfg added
119
    mtr_options => {
0.67.303 by Matthias Leich
Minor modifications
120
        'skip-ndbcluster'    => undef,
121
        'record'             => undef,
122
        'mem'                => undef,
0.67.206 by Bernt M. Johnsen
simplify-mysqltest_template.cfg added
123
        'no-check-testcases' => undef,
0.67.303 by Matthias Leich
Minor modifications
124
        'nowarnings'         => undef,
125
        'fast'               => undef
0.67.206 by Bernt M. Johnsen
simplify-mysqltest_template.cfg added
126
    },
0.67.207 by Matthias Leich
- Add comments
127
0.67.206 by Bernt M. Johnsen
simplify-mysqltest_template.cfg added
128
# mysqld options
129
#---------------
0.67.207 by Matthias Leich
- Add comments
130
# MySQL server startup options.
0.67.303 by Matthias Leich
Minor modifications
131
#
0.67.207 by Matthias Leich
- Add comments
132
0.67.206 by Bernt M. Johnsen
simplify-mysqltest_template.cfg added
133
    mysqld => {
0.67.298 by Philip Stoev
faster mysqltest simplification
134
0.67.303 by Matthias Leich
Minor modifications
135
        # 'innodb'                       => undef,
136
        # 'binlog-format'                => 'mixed',
137
        # 'plugin-dir'                   => '/build/bzr/mysql-5.1-rep+3/plugin/semisync/.libs',
138
        # 'plugin-load'                  => 'rpl_semi_sync_master=libsemisync_master.so:rpl_semi_sync_slave=libsemisync_slave.so',
139
        # 'rpl_semi_sync_master_enabled' => 1,
140
        # 'rpl_semi_sync_slave_enabled'  => 1,
0.67.298 by Philip Stoev
faster mysqltest simplification
141
142
# Those options make test execution faster
143
0.67.303 by Matthias Leich
Minor modifications
144
        'table-lock-wait-timeout'            => 1,
145
        'loose-rpl_semi_sync_master_timeout' => 10,
146
        'log-output'                         => 'none',
147
        'innodb_flush_log_at_trx_commit'     => 0,
148
        'log-slave-updates'                  => 0,
0.67.209 by Matthias Leich
- minor corrections
149
    },
150
0.67.298 by Philip Stoev
faster mysqltest simplification
151
# Multithreaded test cases
152
#-------------------------
153
#
154
# Enabling this option will use --connection --connect and --disconnect
155
# when converting the CSV file into a .test case. This however may cause
156
# considerable slow-down in the simplification process because MTR will
157
# constantly complain about mismatched --connection and --connect in the
158
# intermediate test cases.
159
#
160
161
    use_connections => 0
0.67.207 by Matthias Leich
- Add comments
162
0.67.206 by Bernt M. Johnsen
simplify-mysqltest_template.cfg added
163
}