~drizzle-trunk/drizzle/development

1 by brian
clean slate
1
# Copyright (C) 2000-2006 MySQL AB
2
#
3
# This library is free software; you can redistribute it and/or
4
# modify it under the terms of the GNU Library General Public
5
# License as published by the Free Software Foundation; version 2
6
# of the License.
7
#
8
# This library is distributed in the hope that it will be useful,
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11
# Library General Public License for more details.
12
#
13
# You should have received a copy of the GNU Library General Public
14
# License along with this library; if not, write to the Free
15
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
16
# MA 02111-1307, USA
17
18
## Process this file with automake to create Makefile.in
19
20
SUBDIRS = 
21
22
benchdir_root=		$(prefix)
23
testdir =	        $(benchdir_root)/mysql-test
77.1.32 by Monty Taylor
Merged from trunk.
24
EXTRA_SCRIPTS = 	valgrind.supp $(PRESCRIPTS)
1 by brian
clean slate
25
EXTRA_DIST = 		$(EXTRA_SCRIPTS) suite
168 by Brian Aker
Rename of test (better tab completion!)
26
GENSCRIPTS =		install_test_db dtr test-run
27
PRESCRIPTS =		test-run.pl stress-test.pl
236.1.36 by Monty Taylor
Removed mysql-test from the install.
28
noinst_SCRIPTS =	$(GENSCRIPTS) $(PRESCRIPTS)
77.1.105 by Monty Taylor
Added more things to distclean targets so that it really does a distclean.
29
CLEANFILES = 		$(GENSCRIPTS) mtr
77.1.32 by Monty Taylor
Merged from trunk.
30
noinst_PROGRAMS = 	resolve_stack_dump
31
264.1.3 by Monty Taylor
Removed libmysyslt.la, made mysys a noinst_ and made everything use it. It's
32
LDADD=			$(top_builddir)/mysys/libmysys.la \
266.4.3 by Monty Taylor
Removed mystringslt conv lib and replaced it with a noinst lib.
33
                        $(top_builddir)/mystrings/libmystrings.la \
264.1.20 by Monty Taylor
Added LIBINTL to tests for resolve_stack_dump.
34
			$(LIBINTL)
77.1.32 by Monty Taylor
Merged from trunk.
35
1 by brian
clean slate
36
37
38
dist-hook:
39
	mkdir -p \
40
		$(distdir)/t \
41
                $(distdir)/extra/binlog_tests \
42
                $(distdir)/extra/rpl_tests \
43
		$(distdir)/r \
44
		$(distdir)/include \
45
		$(distdir)/std_data \
46
		$(distdir)/std_data/parts \
47
		$(distdir)/lib \
48
		$(distdir)/lib/My
49
	-$(INSTALL_DATA) $(srcdir)/t/*.def $(distdir)/t
50
	$(INSTALL_DATA) $(srcdir)/t/*.test $(distdir)/t
51
	-$(INSTALL_DATA) $(srcdir)/t/*.imtest $(distdir)/t
52
	$(INSTALL_DATA) $(srcdir)/t/*.sql $(distdir)/t
53
	-$(INSTALL_DATA) $(srcdir)/t/*.disabled $(distdir)/t
54
	-$(INSTALL_DATA) $(srcdir)/t/*.opt $(srcdir)/t/*.slave-mi $(distdir)/t
55
	-$(INSTALL_SCRIPT) $(srcdir)/t/*.sh $(distdir)/t
56
	$(INSTALL_DATA) $(srcdir)/extra/binlog_tests/*.test $(distdir)/extra/binlog_tests
57
	$(INSTALL_DATA) $(srcdir)/extra/rpl_tests/*.test $(distdir)/extra/rpl_tests
58
	-$(INSTALL_DATA) $(srcdir)/extra/binlog_tests/*.opt $(distdir)/extra/binlog_tests
59
	-$(INSTALL_DATA) $(srcdir)/extra/rpl_tests/*.opt $(distdir)/extra/rpl_tests
60
	$(INSTALL_DATA) $(srcdir)/include/*.inc $(distdir)/include
61
	$(INSTALL_DATA) $(srcdir)/include/*.sql $(distdir)/include
62
	$(INSTALL_DATA) $(srcdir)/include/*.test $(distdir)/include
63
	$(INSTALL_DATA) $(srcdir)/r/*.result $(srcdir)/r/*.require $(distdir)/r
64
	$(INSTALL_DATA) $(srcdir)/std_data/Moscow_leap $(distdir)/std_data
65
	$(INSTALL_DATA) $(srcdir)/std_data/Index.xml $(distdir)/std_data
66
	$(INSTALL_DATA) $(srcdir)/std_data/*.dat $(srcdir)/std_data/*.000001 $(distdir)/std_data
67
	$(INSTALL_DATA) $(srcdir)/std_data/des_key_file $(distdir)/std_data
68
	$(INSTALL_DATA) $(srcdir)/std_data/*.pem $(distdir)/std_data
69
	$(INSTALL_DATA) $(srcdir)/std_data/*.frm $(distdir)/std_data
70
	$(INSTALL_DATA) $(srcdir)/std_data/*.MY* $(distdir)/std_data
71
	$(INSTALL_DATA) $(srcdir)/std_data/*.cnf $(distdir)/std_data
72
	$(INSTALL_DATA) $(srcdir)/std_data/parts/part_* $(distdir)/std_data/parts
73
	$(INSTALL_DATA) $(srcdir)/lib/*.pl $(distdir)/lib
74
	$(INSTALL_DATA) $(srcdir)/lib/My/*.pm $(distdir)/lib/My
75
168 by Brian Aker
Rename of test (better tab completion!)
76
# dtr - a shortcut for executing test-run.pl
77.1.40 by Monty Taylor
More naming changes.
77
dtr:
78
	$(RM) -f mtr dtr
168 by Brian Aker
Rename of test (better tab completion!)
79
	$(LN_S) test-run.pl mtr
80
	$(LN_S) test-run.pl dtr
1 by brian
clean slate
81
168 by Brian Aker
Rename of test (better tab completion!)
82
# test-run - a shortcut for executing test-run.pl
83
test-run:
84
	$(RM) -f test-run
85
	$(LN_S) test-run.pl test-run
1 by brian
clean slate
86
236.1.22 by Monty Taylor
A couple of changes to move the actual test code to the tests dir and attempt
87
88
.PHONY: test \
89
    test-force \
90
    test-full \
91
    test-force-full \
92
    test-force-mem \
93
    test-pl \
94
    test-force-pl \
95
    test-full-pl \
96
    test-force-full-pl \
97
    test-force-pl-mem \
98
    test-ps test-nr \
99
    test-pr test-ns \
100
    test-binlog-statement \
101
    test-ext-funcs \
102
    test-ext-rpl \
103
    test-ext-jp \
104
    test-ext-stress \
105
    test-ext \
106
    test-embedded \
107
    test-fast \
108
    test-fast-cursor \
109
    test-fast-view \
110
    test-full-qa
111
112
# Target 'test' will run the regression test suite using the built server.
113
#
114
# If you are running in a shared environment, users can avoid clashing
115
# port numbers by setting individual small numbers 1-100 to the
116
# environment variable MTR_BUILD_THREAD. The script "test-run"
117
# will then calculate the various port numbers it needs from this,
118
# making sure each user use different ports.
119
120
test-nr:
121
	cd tests ; \
122
	  ./test-run $(force) --mysqld=--binlog-format=row
123
124
test-ns:
125
	cd tests ; \
126
	  ./test-run $(force) $(mem) --mysqld=--binlog-format=mixed
127
128
test-binlog-statement:
129
	cd tests ; \
130
	  ./test-run $(force) --mysqld=--binlog-format=statement
131
132
test: test-drizzle
133
370.1.1 by arjen at com
Initial mods for making all tests work again. Some tests adapted+added.
134
# Please keep the list of tests in alphabetical order for ease of
135
# maintenance and verification
136
236.1.22 by Monty Taylor
A couple of changes to move the actual test code to the tests dir and attempt
137
test-drizzle:
138
	  $(PERL) -I$(top_srcdir)/tests/lib \
139
		$(top_srcdir)/tests/test-run.pl --fast --reorder --force \
383.3.1 by Jay Pipes
Re-enabled a number of passing tests from trunk
140
        1st \
370.1.1 by arjen at com
Initial mods for making all tests work again. Some tests adapted+added.
141
        alter_table \
142
        bench_count_distinct \
520.1.8 by Brian Aker
Updating tests.
143
	bigint \
520.1.18 by Brian Aker
A bunch more test fixes.
144
	binlog_index \
377.1.4 by Brian Aker
Big, fat, UTF-8 patch. This fixes some of the oddities around only one
145
	bulk_replace \
520.1.10 by Brian Aker
Adding back more tests.
146
	comment_column \
377.1.4 by Brian Aker
Big, fat, UTF-8 patch. This fixes some of the oddities around only one
147
	comment_column2 \
520.1.10 by Brian Aker
Adding back more tests.
148
	comment_index \
383.4.2 by Jay Pipes
Removed SQL_MODE variances from comment_table.test and ensured correct error thrown when a comment that is too long was input. After moving to proto buffer definition for table, the 2048 length will go away.
149
	comment_table \
377.1.4 by Brian Aker
Big, fat, UTF-8 patch. This fixes some of the oddities around only one
150
	comments \
520.1.10 by Brian Aker
Adding back more tests.
151
	commit_1innodb \
152
	compare \
377.1.4 by Brian Aker
Big, fat, UTF-8 patch. This fixes some of the oddities around only one
153
	consistent_snapshot \
520.1.10 by Brian Aker
Adding back more tests.
154
	constraints \
370.1.1 by arjen at com
Initial mods for making all tests work again. Some tests adapted+added.
155
        count_distinct \
156
        count_distinct2 \
157
        count_distinct3 \
377.1.4 by Brian Aker
Big, fat, UTF-8 patch. This fixes some of the oddities around only one
158
	create_select_tmp \
370.1.1 by arjen at com
Initial mods for making all tests work again. Some tests adapted+added.
159
        ctype_filename \
520.1.10 by Brian Aker
Adding back more tests.
160
	date_formats \
370.1.1 by arjen at com
Initial mods for making all tests work again. Some tests adapted+added.
161
        delete \
162
        distinct \
373.1.9 by Monty Taylor
Added back mysqlslap as drizzleslap. Also made it C++ and removed DYNAMIC_STRING.
163
	drizzleslap \
590.1.7 by Stewart Smith
remove mysql_frm_type
164
	drop_table \
165
	drop_table_if_exists \
166
	drop_table_temp \
520.1.10 by Brian Aker
Adding back more tests.
167
	empty_table \
370.1.1 by arjen at com
Initial mods for making all tests work again. Some tests adapted+added.
168
        endspace \
169
        flush2 \
512 by Brian Aker
Adding back more test cases.
170
	func_compress \
171
	func_concat \
172
	func_crc32 \
173
	func_date_add \
174
	func_default \
383.3.1 by Jay Pipes
Re-enabled a number of passing tests from trunk
175
        func_equal \
512 by Brian Aker
Adding back more test cases.
176
	func_gconcat \
177
        func_group \
383.3.1 by Jay Pipes
Re-enabled a number of passing tests from trunk
178
        func_group_innodb \
512 by Brian Aker
Adding back more test cases.
179
	func_if \
180
	func_in \
383.3.1 by Jay Pipes
Re-enabled a number of passing tests from trunk
181
        func_isnull \
370.1.1 by arjen at com
Initial mods for making all tests work again. Some tests adapted+added.
182
        func_like \
498 by Brian Aker
Remove dead tests and enable a few more tests.
183
	func_math \
512 by Brian Aker
Adding back more test cases.
184
	func_misc \
185
	func_op \
506 by Brian Aker
Added back more tests.
186
	func_sapdb \
512 by Brian Aker
Adding back more test cases.
187
	func_str \
506 by Brian Aker
Added back more tests.
188
	func_time \
189
	func_weight_string \
370.1.1 by arjen at com
Initial mods for making all tests work again. Some tests adapted+added.
190
        greedy_optimizer \
520.1.18 by Brian Aker
A bunch more test fixes.
191
	group_by \
370.1.1 by arjen at com
Initial mods for making all tests work again. Some tests adapted+added.
192
        group_min_max_innodb \
520.1.18 by Brian Aker
A bunch more test fixes.
193
	having \
520.1.8 by Brian Aker
Updating tests.
194
	heap \
370.1.1 by arjen at com
Initial mods for making all tests work again. Some tests adapted+added.
195
        heap_auto_increment \
196
        heap_btree \
520.1.8 by Brian Aker
Updating tests.
197
	heap_hash \
370.1.1 by arjen at com
Initial mods for making all tests work again. Some tests adapted+added.
198
        heap_var \
199
        information_schema \
520.1.16 by Brian Aker
More test updates (one ulong fix)
200
	innodb_autoinc_lock_mode_zero \
201
	innodb_mysql \
202
	innodb_notembedded \
203
	innodb_trx_weight \
370.1.1 by arjen at com
Initial mods for making all tests work again. Some tests adapted+added.
204
        innodb-lock \
205
        innodb-semi-consistent \
206
        innodb_timeout_rollback \
207
        insert \
520.1.16 by Brian Aker
More test updates (one ulong fix)
208
	insert_select \
209
	insert_update \
370.1.1 by arjen at com
Initial mods for making all tests work again. Some tests adapted+added.
210
        join \
211
        join_crash \
212
        join_nested \
213
        join_outer \
214
        join_outer_innodb \
510 by Brian Aker
Test updates.
215
	key \
370.1.1 by arjen at com
Initial mods for making all tests work again. Some tests adapted+added.
216
        key_diff \
217
        key_primary \
218
        keywords \
520.1.19 by Brian Aker
Adding kill test
219
	kill \
370.1.1 by arjen at com
Initial mods for making all tests work again. Some tests adapted+added.
220
        lock \
383.2.5 by Jay Pipes
Added limit test back into the test target
221
        limit \
370.1.1 by arjen at com
Initial mods for making all tests work again. Some tests adapted+added.
222
        lock_tables_lost_commit \
520.1.12 by Brian Aker
Adding back more tests.
223
	main.myisam-blob \
224
	mysqldump-compat \
225
	mysqldump-max \
500 by Brian Aker
Re-enabled more tests.
226
	order_by \
227
	order_fill_sortbuf \
228
	overflow \
520.1.8 by Brian Aker
Updating tests.
229
	parser \
230
	parser_bug21114_innodb \
231
	parser_precedence \
500 by Brian Aker
Re-enabled more tests.
232
	pool_of_threads \
520.1.8 by Brian Aker
Updating tests.
233
        range \
234
	replace \
383.3.1 by Jay Pipes
Re-enabled a number of passing tests from trunk
235
        rollback \
520.1.10 by Brian Aker
Adding back more tests.
236
	round \
237
	row \
238
	rowid_order_innodb \
520.1.18 by Brian Aker
A bunch more test fixes.
239
	schema \
370.1.1 by arjen at com
Initial mods for making all tests work again. Some tests adapted+added.
240
        select \
241
        subselect \
242
        subselect3 \
243
        subselect_innodb \
244
        sum_distinct \
520.1.18 by Brian Aker
A bunch more test fixes.
245
	synchronization \
370.1.1 by arjen at com
Initial mods for making all tests work again. Some tests adapted+added.
246
        tablelock \
498 by Brian Aker
Remove dead tests and enable a few more tests.
247
	type_blob \
500 by Brian Aker
Re-enabled more tests.
248
	type_date \
249
	type_datetime \
506 by Brian Aker
Added back more tests.
250
	type_float \
370.1.1 by arjen at com
Initial mods for making all tests work again. Some tests adapted+added.
251
        type_newdecimal \
506 by Brian Aker
Added back more tests.
252
	type_ranges \
253
	type_time \
254
	type_timestamp \
255
	type_uint \
498 by Brian Aker
Remove dead tests and enable a few more tests.
256
	type_varchar \
370.1.1 by arjen at com
Initial mods for making all tests work again. Some tests adapted+added.
257
        unsafe_binlog_innodb \
383.3.1 by Jay Pipes
Re-enabled a number of passing tests from trunk
258
        update \
259
        variables-notembedded
481.3.1 by Monty Taylor
Merged vcol stuff.
260
	  $(PERL) -I$(top_srcdir)/tests/lib \
261
		$(top_srcdir)/tests/test-run.pl --fast --reorder --force \
262
		--suite=vcol