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