~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 \
24
			sql-common scripts \
25
			@pstack_dir@ \
26
			@sql_union_dirs@ unittest storage plugin \
27
			@sql_server@ tests \
28
			mysql-test support-files
29
30
DIST_SUBDIRS =		. include \
31
			sql-common scripts \
32
			pstack \
33
			strings mysys dbug extra regex libmysql libmysql_r client unittest storage plugin \
34
			vio sql tests \
35
			mysql-test support-files \
36
			BUILD
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
# Remove BK's "SCCS" subdirectories from source distribution
47
# Create initial database files for Windows installations.
48
dist-hook:
49
	rm -rf `find $(distdir) -type d -name SCCS -print`
50
	mkdir -p $(distdir)/win
51
	scripts/mysql_install_db --no-defaults --cross-bootstrap \
52
		--builddir=$(top_builddir) \
53
		--datadir=$(distdir)/win/data \
54
		--srcdir=$(top_srcdir)
55
56
tags:
57
	support-files/build-tags
58
59
.PHONY:	init-db bin-dist \
60
  test    test-force    test-full    test-force-full    test-force-mem \
61
  test-pl test-force-pl test-full-pl test-force-full-pl test-force-pl-mem \
62
  test-unit test-ps test-nr test-pr test-ns test-binlog-statement \
63
  test-ext-funcs test-ext-rpl test-ext-jp \
64
  test-ext-stress test-ext test-embedded \
65
  test-fast test-fast-cursor test-fast-view test-fast-prepare \
66
  test-full-qa
67
68
# Target 'test' will run the regression test suite using the built server.
69
#
70
# If you are running in a shared environment, users can avoid clashing
71
# port numbers by setting individual small numbers 1-100 to the
72
# environment variable MTR_BUILD_THREAD. The script "mysql-test-run"
73
# will then calculate the various port numbers it needs from this,
74
# making sure each user use different ports.
75
76
test-unit:
77
	cd unittest && $(MAKE) test
78
79
test-ps:
80
	cd mysql-test ; \
81
	    @PERL@ ./mysql-test-run.pl $(force) --ps-protocol --mysqld=--binlog-format=mixed
82
83
test-nr:
84
	cd mysql-test ; \
85
	    @PERL@ ./mysql-test-run.pl $(force) --mysqld=--binlog-format=row
86
87
test-pr:
88
	cd mysql-test ; \
89
	    @PERL@ ./mysql-test-run.pl $(force) $(mem) --ps-protocol --mysqld=--binlog-format=row
90
91
test-ns:
92
	cd mysql-test ; \
93
	    @PERL@ ./mysql-test-run.pl $(force) $(mem) --mysqld=--binlog-format=mixed
94
95
test-binlog-statement:
96
	cd mysql-test ; \
97
	    @PERL@ ./mysql-test-run.pl $(force) --mysqld=--binlog-format=statement
98
99
test:	test-unit test-ns test-pr
100
101
test-full:	test test-nr test-ps
102
103
test-force:
104
	$(MAKE) force=--force test
105
106
test-force-full:
107
	$(MAKE) force=--force test-full
108
109
#used by autopush.pl to run memory based tests
110
test-force-mem:
111
	$(MAKE) force=--force mem=--mem test
112
113
test-bt:
114
	-cd mysql-test ; MTR_BUILD_THREAD=auto \
115
	    @PERL@ ./mysql-test-run.pl --force --comment=funcs1_ps --ps-protocol --suite=funcs_1
116
	-cd mysql-test ; MTR_BUILD_THREAD=auto \
117
	    @PERL@ ./mysql-test-run.pl --force --comment=funcs2 --suite=funcs_2
118
	-cd mysql-test ; MTR_BUILD_THREAD=auto \
119
	    @PERL@ ./mysql-test-run.pl --force --comment=rpl --suite=rpl
120
	-if [ -d mysql-test/suite/nist ] ; then \
121
	  cd mysql-test ; MTR_BUILD_THREAD=auto \
122
	      @PERL@ ./mysql-test-run.pl --comment=NIST+normal --force --suite=nist ; \
123
	fi
124
	-if [ -d mysql-test/suite/nist ] ; then \
125
	  cd mysql-test ; MTR_BUILD_THREAD=auto \
126
	      @PERL@ ./mysql-test-run.pl --comment=NIST+ps --force --suite=nist --ps-protocol ; \
127
	fi
128
	-cd mysql-test ; MTR_BUILD_THREAD=auto \
129
	    @PERL@ ./mysql-test-run.pl --force --comment=stress --suite=stress
130
131
# Re-enable the "jp" suite when bug#28563 is fixed
132
#	-cd mysql-test ; MTR_BUILD_THREAD=auto \
133
#	    @PERL@ ./mysql-test-run.pl --force --comment=jp --suite=jp
134
135
test-bt-debug:
136
	-cd mysql-test ; MTR_BUILD_THREAD=auto \
137
	    @PERL@ ./mysql-test-run.pl --comment=debug  --force --timer \
138
	        --skip-rpl --report-features
139
140
# Keep these for a while
141
test-pl:	test
142
test-full-pl:	test-full
143
test-force-pl:	test-force
144
test-force-pl-mem:  test-force-mem
145
test-force-full-pl: test-force-full
146
147
test-ext-funcs:
148
	cd mysql-test ; \
149
	    @PERL@ ./mysql-test-run.pl --force --suite=funcs_1 ; \
150
	    @PERL@ ./mysql-test-run.pl --force --suite=funcs_2
151
152
test-ext-rpl:
153
	cd mysql-test ; \
154
	    @PERL@ ./mysql-test-run.pl --force --suite=rpl
155
156
test-ext-jp:
157
	cd mysql-test ; \
158
	    @PERL@ ./mysql-test-run.pl --force --suite=jp
159
160
test-ext-stress:
161
	cd mysql-test ; \
162
	    @PERL@ ./mysql-test-run.pl --force --big-test --suite=stress
163
164
test-ext:	test-ext-funcs test-ext-rpl test-ext-jp test-ext-stress
165
166
test-fast:
167
	cd mysql-test ; \
168
	    @PERL@ ./mysql-test-run.pl $(subset) --force --skip-innodb --skip-im --skip-rpl ; \
169
	    @PERL@ ./mysql-test-run.pl $(subset) --force --suite=funcs_1 --do-test=myisam ; \
170
	    @PERL@ ./mysql-test-run.pl $(subset) --force --suite=stress --do-test=ddl_myisam 
171
172
test-fast-view:
173
	$(MAKE) subset=--view-protocol test-fast
174
175
test-fast-cursor:
176
	$(MAKE) subset=--cursor-protocol test-fast
177
178
test-fast-prepare:
179
	$(MAKE) subset=--ps-protocol test-fast
180
181
test-full-qa:
182
	$(MAKE) force=--force test-pr \
183
	    test-binlog-statement test-ext test-fast-view \
184
	        test-fast-cursor test-unit
185
186
# Don't update the files from bitkeeper
187
%::SCCS/s.%