~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to simplify-mysqltest_template.cfg

Minor modifications
- add accidently removed example
- unify formatting of paragraphs
- replace the only partially used tabs with spaces

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Configuration file template for  util/simplify-mysqltest.pl
2
2
#
3
3
# Please
4
 
# - copy this file to for example 1.cfg and
 
4
# - copy this file to for example simplify-mysqltest_1.cfg and
5
5
# - adjust the settings so that they fit to your usage case and
6
6
#   environment
7
7
#
36
36
#--------------------
37
37
# Pattern which needs to occur within the MTR output after a successful
38
38
# simplification. The search pattern is usually derived from a backtrace.
39
 
# Not needed if two basedirs (servers) are specified (file comparison is used 
 
39
# Not needed if two basedirs (servers) are specified (file comparison is used
40
40
# instead).
41
41
#
42
42
# Some hints:
45
45
# So the example pattern causes basically a search for
46
46
# "safe_cond_timedwait" with a distance of less than 151 characters to a following
47
47
# "thr_mutex.c" with a distance of less than 51 characters to a following ...
 
48
# Example:
 
49
#   'safe_cond_timedwait.{0,150}thr_mutex\.c.{0,50}Item_func_sleep::val_int.{0,3000}SELECT 1,SLEEP\(10\)',
 
50
#
48
51
 
49
52
    expected_mtr_output => 'HA_ERR_END_OF_FILE',
50
53
 
52
55
# - They increase the selectivity of the search.
53
56
# - A minor change of the server startup options, source files etc. could cause that the search fails.
54
57
 
55
 
#
56
 
# HEADER
57
 
#
 
58
# header
 
59
#-------
58
60
# The header is prepended to each test case and is not influenced by simplification.
59
61
# If replication is enabled, --source include/master-slave.inc will also be used.
60
 
61
 
 
62
 
        header => [
63
 
                '--disable_abort_on_error',
64
 
                '--disable_warnings'
65
 
        ],
66
 
 
67
 
#
68
 
# FOOTER
69
 
#
 
62
#
 
63
 
 
64
    header => [
 
65
        '--disable_abort_on_error',
 
66
        '--disable_warnings'
 
67
    ],
 
68
 
 
69
# footer
 
70
#-------
70
71
# The footer is appended to each test case and is not influenced by simplification.
71
72
# When replication is enabled, the default footer is '--sync_slave_with_master'
72
73
# If you are simplifying a crashing bug, you can also put your crashing query here
73
74
#
74
75
 
75
 
        footer => [
76
 
                '# Footer line 1',
77
 
                '# Footer line 2'
78
 
        ],
 
76
    footer => [
 
77
        '# Footer line 1',
 
78
        '# Footer line 2'
 
79
    ],
79
80
 
80
 
#
81
 
# FILTER
82
 
#
 
81
# filter
 
82
#-------
83
83
# The filter is applied to the test case in order to remove irrelevant queries. If 
84
84
# you are running a replication test, you may also wish to filter out SELECTs
85
85
#
86
86
 
87
 
        filter => qr{SHOW WARNINGS|EXPLAIN}sio,
 
87
    filter => qr{SHOW WARNINGS|EXPLAIN}sio,
88
88
 
89
89
# mtr_options
90
90
#------------
91
91
# mysql-test-run.pl (MTR) options which should be used.
92
92
# 'record' is required if two basedirs (servers) are specified.
 
93
#
93
94
 
94
95
    mtr_options => {
95
 
        'skip-ndbcluster'  => undef,
96
 
        'record'        => undef,
97
 
        'mem'           => undef,
 
96
        'skip-ndbcluster'    => undef,
 
97
        'record'             => undef,
 
98
        'mem'                => undef,
98
99
        'no-check-testcases' => undef,
99
 
        'nowarnings'    => undef,
100
 
        'fast'          => undef
 
100
        'nowarnings'         => undef,
 
101
        'fast'               => undef
101
102
    },
102
103
 
103
104
# mysqld options
104
105
#---------------
105
106
# MySQL server startup options.
 
107
#
106
108
 
107
109
    mysqld => {
108
110
 
109
 
#       'innodb'                        => undef,
110
 
#       'binlog-format'                 => 'mixed',
111
 
 
112
 
#       'plugin-dir'                    => '/build/bzr/mysql-5.1-rep+3/plugin/semisync/.libs',
113
 
#       'plugin-load'                   => 'rpl_semi_sync_master=libsemisync_master.so:rpl_semi_sync_slave=libsemisync_slave.so',
114
 
#       'rpl_semi_sync_master_enabled'  => 1,
115
 
#       'rpl_semi_sync_slave_enabled'   => 1,
 
111
        # 'innodb'                       => undef,
 
112
        # 'binlog-format'                => 'mixed',
 
113
        # 'plugin-dir'                   => '/build/bzr/mysql-5.1-rep+3/plugin/semisync/.libs',
 
114
        # 'plugin-load'                  => 'rpl_semi_sync_master=libsemisync_master.so:rpl_semi_sync_slave=libsemisync_slave.so',
 
115
        # 'rpl_semi_sync_master_enabled' => 1,
 
116
        # 'rpl_semi_sync_slave_enabled'  => 1,
116
117
 
117
118
# Those options make test execution faster
118
119
 
119
 
        'table-lock-wait-timeout'       => 1,
120
 
        'loose-rpl_semi_sync_master_timeout' => 10,
121
 
        'log-output'                    => 'none',
122
 
        'innodb_flush_log_at_trx_commit' => 0,
123
 
        'log-slave-updates'             => 0,
 
120
        'table-lock-wait-timeout'            => 1,
 
121
        'loose-rpl_semi_sync_master_timeout' => 10,
 
122
        'log-output'                         => 'none',
 
123
        'innodb_flush_log_at_trx_commit'     => 0,
 
124
        'log-slave-updates'                  => 0,
124
125
    },
125
126
 
126
127
# replication
128
129
# Set this to 1 to turn on
129
130
# "--source include/master-slave.inc"  and
130
131
# "--sync_slave_with_master"
 
132
#
131
133
 
132
134
    replication => 0,
133
135
 
134
 
#
135
136
# Multithreaded test cases
136
137
#-------------------------
137
138
#