~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
53.2.24 by Monty Taylor
Added an automake conditional to not build the dbug dir, since I don't want to keep seeing errors for it while cleaning up other parts of the tree.
23
if BUILD_DBUG
24
  d_dbug = dbug
25
endif
26
1 by brian
clean slate
27
SUBDIRS =		. include \
28.1.7 by Monty Taylor
Put errmsg.c in sql-common since it can be built only once and used twice.
28
			sql-common scripts vio \
53.2.24 by Monty Taylor
Added an automake conditional to not build the dbug dir, since I don't want to keep seeing errors for it while cleaning up other parts of the tree.
29
			strings mysys $(d_dbug) \
28.1.34 by Monty Taylor
Removed ZLIB references and the craziness of whether to build the server or not.
30
                        extra regex \
28.1.41 by Monty Taylor
Merged from trunk. Changed a test return value so that the test passes.
31
                        libmysql client storage plugin \
28.1.34 by Monty Taylor
Removed ZLIB references and the craziness of whether to build the server or not.
32
                        sql \
1 by brian
clean slate
33
			mysql-test support-files
34
28.1.34 by Monty Taylor
Removed ZLIB references and the craziness of whether to build the server or not.
35
DIST_SUBDIRS =		$(SUBDIRS) mysys/tests strings/tests
13 by brian
Incomming patch to clean up build.
36
1 by brian
clean slate
37
DISTCLEANFILES = ac_available_languages_fragment
38
39
# Create permission databases
40
init-db:		all
41
	$(top_builddir)/scripts/mysql_install_db
42
43
bin-dist:		all
44
	$(top_builddir)/scripts/make_binary_distribution @MAKE_BINARY_DISTRIBUTION_OPTIONS@
45
46
.PHONY:	init-db bin-dist \
47
  test    test-force    test-full    test-force-full    test-force-mem \
48
  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
49
  test-ps test-nr test-pr test-ns test-binlog-statement \
1 by brian
clean slate
50
  test-ext-funcs test-ext-rpl test-ext-jp \
51
  test-ext-stress test-ext test-embedded \
52
  test-fast test-fast-cursor test-fast-view test-fast-prepare \
53
  test-full-qa
54
55
# Target 'test' will run the regression test suite using the built server.
56
#
57
# If you are running in a shared environment, users can avoid clashing
58
# port numbers by setting individual small numbers 1-100 to the
59
# environment variable MTR_BUILD_THREAD. The script "mysql-test-run"
60
# will then calculate the various port numbers it needs from this,
61
# making sure each user use different ports.
62
63
test-ps:
64
	cd mysql-test ; \
65
	    @PERL@ ./mysql-test-run.pl $(force) --ps-protocol --mysqld=--binlog-format=mixed
66
67
test-nr:
68
	cd mysql-test ; \
69
	    @PERL@ ./mysql-test-run.pl $(force) --mysqld=--binlog-format=row
70
71
test-pr:
72
	cd mysql-test ; \
73
	    @PERL@ ./mysql-test-run.pl $(force) $(mem) --ps-protocol --mysqld=--binlog-format=row
74
75
test-ns:
76
	cd mysql-test ; \
77
	    @PERL@ ./mysql-test-run.pl $(force) $(mem) --mysqld=--binlog-format=mixed
78
79
test-binlog-statement:
80
	cd mysql-test ; \
81
	    @PERL@ ./mysql-test-run.pl $(force) --mysqld=--binlog-format=statement
82
53.2.5 by Monty Taylor
Add Jay's test optoins at the target of make test.
83
test: test-drizzle
84
85
test-old:	test-ns test-pr
1 by brian
clean slate
86
87
test-full:	test test-nr test-ps
88
89
test-force:
90
	$(MAKE) force=--force test
91
92
test-force-full:
93
	$(MAKE) force=--force test-full
94
95
#used by autopush.pl to run memory based tests
96
test-force-mem:
97
	$(MAKE) force=--force mem=--mem test
98
99
test-bt:
100
	-cd mysql-test ; MTR_BUILD_THREAD=auto \
101
	    @PERL@ ./mysql-test-run.pl --force --comment=funcs1_ps --ps-protocol --suite=funcs_1
102
	-cd mysql-test ; MTR_BUILD_THREAD=auto \
103
	    @PERL@ ./mysql-test-run.pl --force --comment=funcs2 --suite=funcs_2
104
	-cd mysql-test ; MTR_BUILD_THREAD=auto \
105
	    @PERL@ ./mysql-test-run.pl --force --comment=rpl --suite=rpl
106
	-if [ -d mysql-test/suite/nist ] ; then \
107
	  cd mysql-test ; MTR_BUILD_THREAD=auto \
108
	      @PERL@ ./mysql-test-run.pl --comment=NIST+normal --force --suite=nist ; \
109
	fi
110
	-if [ -d mysql-test/suite/nist ] ; then \
111
	  cd mysql-test ; MTR_BUILD_THREAD=auto \
112
	      @PERL@ ./mysql-test-run.pl --comment=NIST+ps --force --suite=nist --ps-protocol ; \
113
	fi
114
	-cd mysql-test ; MTR_BUILD_THREAD=auto \
115
	    @PERL@ ./mysql-test-run.pl --force --comment=stress --suite=stress
116
117
# Re-enable the "jp" suite when bug#28563 is fixed
118
#	-cd mysql-test ; MTR_BUILD_THREAD=auto \
119
#	    @PERL@ ./mysql-test-run.pl --force --comment=jp --suite=jp
120
121
test-bt-debug:
122
	-cd mysql-test ; MTR_BUILD_THREAD=auto \
123
	    @PERL@ ./mysql-test-run.pl --comment=debug  --force --timer \
124
	        --skip-rpl --report-features
125
126
# Keep these for a while
127
test-pl:	test
128
test-full-pl:	test-full
129
test-force-pl:	test-force
130
test-force-pl-mem:  test-force-mem
131
test-force-full-pl: test-force-full
132
133
test-ext-funcs:
134
	cd mysql-test ; \
135
	    @PERL@ ./mysql-test-run.pl --force --suite=funcs_1 ; \
136
	    @PERL@ ./mysql-test-run.pl --force --suite=funcs_2
137
138
test-ext-rpl:
139
	cd mysql-test ; \
140
	    @PERL@ ./mysql-test-run.pl --force --suite=rpl
141
142
test-ext-jp:
143
	cd mysql-test ; \
144
	    @PERL@ ./mysql-test-run.pl --force --suite=jp
145
146
test-ext-stress:
147
	cd mysql-test ; \
148
	    @PERL@ ./mysql-test-run.pl --force --big-test --suite=stress
149
150
test-ext:	test-ext-funcs test-ext-rpl test-ext-jp test-ext-stress
151
152
test-fast:
153
	cd mysql-test ; \
154
	    @PERL@ ./mysql-test-run.pl $(subset) --force --skip-innodb --skip-im --skip-rpl ; \
155
	    @PERL@ ./mysql-test-run.pl $(subset) --force --suite=funcs_1 --do-test=myisam ; \
156
	    @PERL@ ./mysql-test-run.pl $(subset) --force --suite=stress --do-test=ddl_myisam 
157
158
test-fast-view:
159
	$(MAKE) subset=--view-protocol test-fast
160
161
test-fast-cursor:
162
	$(MAKE) subset=--cursor-protocol test-fast
163
164
test-fast-prepare:
165
	$(MAKE) subset=--ps-protocol test-fast
166
167
test-full-qa:
168
	$(MAKE) force=--force test-pr \
169
	    test-binlog-statement test-ext test-fast-view \
37.1.1 by Patrick Galbraith
Removed unittest in private remove_unittest branch
170
	        test-fast-cursor 
53.2.5 by Monty Taylor
Add Jay's test optoins at the target of make test.
171
172
test-drizzle:
173
	cd mysql-test ; \
174
	 @PERL@ ./mysql-test-run.pl --fast --reorder --force \
175
		join_crash \
176
		join_nested \
177
		join_outer_innodb \
178
		delete \
179
		join_outer \
180
		join \
181
		subselect \
182
		insert \
183
		select \
184
		update \
185
		information_schema \
186
		mysqlslap \
187
		lock \
188
		lock_tables_lost_commit