~drizzle-trunk/drizzle/development

1 by brian
clean slate
1
# Copyright (C) 2000-2006 MySQL AB
2
# 
3
# This program is free software; you can redistribute it and/or modify
4
# it under the terms of the GNU General Public License as published by
5
# the Free Software Foundation; version 2 of the License.
6
# 
7
# This program is distributed in the hope that it will be useful,
8
# but WITHOUT ANY WARRANTY; without even the implied warranty of
9
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10
# GNU General Public License for more details.
11
# 
12
# You should have received a copy of the GNU General Public License
13
# along with this program; if not, write to the Free Software
14
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
15
16
# Process this file with automake to create Makefile.in
17
18
AUTOMAKE_OPTIONS =	foreign
19
20
# These are built from source in the Docs directory
21
EXTRA_DIST =		
22
23
SUBDIRS =		. include \
28.1.7 by Monty Taylor
Put errmsg.c in sql-common since it can be built only once and used twice.
24
			sql-common scripts vio \
28.1.34 by Monty Taylor
Removed ZLIB references and the craziness of whether to build the server or not.
25
			strings mysys dbug \
26
                        extra regex \
28.1.41 by Monty Taylor
Merged from trunk. Changed a test return value so that the test passes.
27
                        libmysql client storage plugin \
28.1.34 by Monty Taylor
Removed ZLIB references and the craziness of whether to build the server or not.
28
                        sql \
1 by brian
clean slate
29
			mysql-test support-files
30
28.1.34 by Monty Taylor
Removed ZLIB references and the craziness of whether to build the server or not.
31
DIST_SUBDIRS =		$(SUBDIRS) mysys/tests strings/tests
13 by brian
Incomming patch to clean up build.
32
1 by brian
clean slate
33
DISTCLEANFILES = ac_available_languages_fragment
34
35
# Create permission databases
36
init-db:		all
37
	$(top_builddir)/scripts/mysql_install_db
38
39
bin-dist:		all
40
	$(top_builddir)/scripts/make_binary_distribution @MAKE_BINARY_DISTRIBUTION_OPTIONS@
41
42
.PHONY:	init-db bin-dist \
43
  test    test-force    test-full    test-force-full    test-force-mem \
44
  test-pl test-force-pl test-full-pl test-force-full-pl test-force-pl-mem \
37.1.1 by Patrick Galbraith
Removed unittest in private remove_unittest branch
45
  test-ps test-nr test-pr test-ns test-binlog-statement \
1 by brian
clean slate
46
  test-ext-funcs test-ext-rpl test-ext-jp \
47
  test-ext-stress test-ext test-embedded \
48
  test-fast test-fast-cursor test-fast-view test-fast-prepare \
49
  test-full-qa
50
51
# Target 'test' will run the regression test suite using the built server.
52
#
53
# If you are running in a shared environment, users can avoid clashing
54
# port numbers by setting individual small numbers 1-100 to the
55
# environment variable MTR_BUILD_THREAD. The script "mysql-test-run"
56
# will then calculate the various port numbers it needs from this,
57
# making sure each user use different ports.
58
59
test-ps:
60
	cd mysql-test ; \
61
	    @PERL@ ./mysql-test-run.pl $(force) --ps-protocol --mysqld=--binlog-format=mixed
62
63
test-nr:
64
	cd mysql-test ; \
65
	    @PERL@ ./mysql-test-run.pl $(force) --mysqld=--binlog-format=row
66
67
test-pr:
68
	cd mysql-test ; \
69
	    @PERL@ ./mysql-test-run.pl $(force) $(mem) --ps-protocol --mysqld=--binlog-format=row
70
71
test-ns:
72
	cd mysql-test ; \
73
	    @PERL@ ./mysql-test-run.pl $(force) $(mem) --mysqld=--binlog-format=mixed
74
75
test-binlog-statement:
76
	cd mysql-test ; \
77
	    @PERL@ ./mysql-test-run.pl $(force) --mysqld=--binlog-format=statement
78
53.2.5 by Monty Taylor
Add Jay's test optoins at the target of make test.
79
test: test-drizzle
80
81
test-old:	test-ns test-pr
1 by brian
clean slate
82
83
test-full:	test test-nr test-ps
84
85
test-force:
86
	$(MAKE) force=--force test
87
88
test-force-full:
89
	$(MAKE) force=--force test-full
90
91
#used by autopush.pl to run memory based tests
92
test-force-mem:
93
	$(MAKE) force=--force mem=--mem test
94
95
test-bt:
96
	-cd mysql-test ; MTR_BUILD_THREAD=auto \
97
	    @PERL@ ./mysql-test-run.pl --force --comment=funcs1_ps --ps-protocol --suite=funcs_1
98
	-cd mysql-test ; MTR_BUILD_THREAD=auto \
99
	    @PERL@ ./mysql-test-run.pl --force --comment=funcs2 --suite=funcs_2
100
	-cd mysql-test ; MTR_BUILD_THREAD=auto \
101
	    @PERL@ ./mysql-test-run.pl --force --comment=rpl --suite=rpl
102
	-if [ -d mysql-test/suite/nist ] ; then \
103
	  cd mysql-test ; MTR_BUILD_THREAD=auto \
104
	      @PERL@ ./mysql-test-run.pl --comment=NIST+normal --force --suite=nist ; \
105
	fi
106
	-if [ -d mysql-test/suite/nist ] ; then \
107
	  cd mysql-test ; MTR_BUILD_THREAD=auto \
108
	      @PERL@ ./mysql-test-run.pl --comment=NIST+ps --force --suite=nist --ps-protocol ; \
109
	fi
110
	-cd mysql-test ; MTR_BUILD_THREAD=auto \
111
	    @PERL@ ./mysql-test-run.pl --force --comment=stress --suite=stress
112
113
# Re-enable the "jp" suite when bug#28563 is fixed
114
#	-cd mysql-test ; MTR_BUILD_THREAD=auto \
115
#	    @PERL@ ./mysql-test-run.pl --force --comment=jp --suite=jp
116
117
test-bt-debug:
118
	-cd mysql-test ; MTR_BUILD_THREAD=auto \
119
	    @PERL@ ./mysql-test-run.pl --comment=debug  --force --timer \
120
	        --skip-rpl --report-features
121
122
# Keep these for a while
123
test-pl:	test
124
test-full-pl:	test-full
125
test-force-pl:	test-force
126
test-force-pl-mem:  test-force-mem
127
test-force-full-pl: test-force-full
128
129
test-ext-funcs:
130
	cd mysql-test ; \
131
	    @PERL@ ./mysql-test-run.pl --force --suite=funcs_1 ; \
132
	    @PERL@ ./mysql-test-run.pl --force --suite=funcs_2
133
134
test-ext-rpl:
135
	cd mysql-test ; \
136
	    @PERL@ ./mysql-test-run.pl --force --suite=rpl
137
138
test-ext-jp:
139
	cd mysql-test ; \
140
	    @PERL@ ./mysql-test-run.pl --force --suite=jp
141
142
test-ext-stress:
143
	cd mysql-test ; \
144
	    @PERL@ ./mysql-test-run.pl --force --big-test --suite=stress
145
146
test-ext:	test-ext-funcs test-ext-rpl test-ext-jp test-ext-stress
147
148
test-fast:
149
	cd mysql-test ; \
150
	    @PERL@ ./mysql-test-run.pl $(subset) --force --skip-innodb --skip-im --skip-rpl ; \
151
	    @PERL@ ./mysql-test-run.pl $(subset) --force --suite=funcs_1 --do-test=myisam ; \
152
	    @PERL@ ./mysql-test-run.pl $(subset) --force --suite=stress --do-test=ddl_myisam 
153
154
test-fast-view:
155
	$(MAKE) subset=--view-protocol test-fast
156
157
test-fast-cursor:
158
	$(MAKE) subset=--cursor-protocol test-fast
159
160
test-fast-prepare:
161
	$(MAKE) subset=--ps-protocol test-fast
162
163
test-full-qa:
164
	$(MAKE) force=--force test-pr \
165
	    test-binlog-statement test-ext test-fast-view \
37.1.1 by Patrick Galbraith
Removed unittest in private remove_unittest branch
166
	        test-fast-cursor 
53.2.5 by Monty Taylor
Add Jay's test optoins at the target of make test.
167
168
test-drizzle:
169
	cd mysql-test ; \
170
	 @PERL@ ./mysql-test-run.pl --fast --reorder --force \
171
		join_crash \
172
		join_nested \
173
		join_outer_innodb \
174
		delete \
175
		join_outer \
176
		join \
177
		subselect \
178
		insert \
179
		select \
180
		update \
181
		information_schema \
182
		mysqlslap \
183
		lock \
184
		lock_tables_lost_commit