~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 \
1 by brian
clean slate
25
			@sql_union_dirs@ unittest storage plugin \
26
			@sql_server@ tests \
27
			mysql-test support-files
28
29
DIST_SUBDIRS =		. include \
28.1.7 by Monty Taylor
Put errmsg.c in sql-common since it can be built only once and used twice.
30
			sql-common scripts vio \
28.1.18 by Monty Taylor
Added reference to strings/tests
31
			strings mysys dbug mysys/tests strings/tests \
32
			extra regex \
28.1.2 by Monty Taylor
First stab at back porting libtool convenience lib patch from telco-6.2
33
			libmysql client unittest storage plugin \
28.1.7 by Monty Taylor
Put errmsg.c in sql-common since it can be built only once and used twice.
34
			sql tests \
13 by brian
Incomming patch to clean up build.
35
			mysql-test support-files
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 \
49
  test-unit test-ps test-nr test-pr test-ns test-binlog-statement \
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-unit:
64
	cd unittest && $(MAKE) test
65
66
test-ps:
67
	cd mysql-test ; \
68
	    @PERL@ ./mysql-test-run.pl $(force) --ps-protocol --mysqld=--binlog-format=mixed
69
70
test-nr:
71
	cd mysql-test ; \
72
	    @PERL@ ./mysql-test-run.pl $(force) --mysqld=--binlog-format=row
73
74
test-pr:
75
	cd mysql-test ; \
76
	    @PERL@ ./mysql-test-run.pl $(force) $(mem) --ps-protocol --mysqld=--binlog-format=row
77
78
test-ns:
79
	cd mysql-test ; \
80
	    @PERL@ ./mysql-test-run.pl $(force) $(mem) --mysqld=--binlog-format=mixed
81
82
test-binlog-statement:
83
	cd mysql-test ; \
84
	    @PERL@ ./mysql-test-run.pl $(force) --mysqld=--binlog-format=statement
85
86
test:	test-unit test-ns test-pr
87
88
test-full:	test test-nr test-ps
89
90
test-force:
91
	$(MAKE) force=--force test
92
93
test-force-full:
94
	$(MAKE) force=--force test-full
95
96
#used by autopush.pl to run memory based tests
97
test-force-mem:
98
	$(MAKE) force=--force mem=--mem test
99
100
test-bt:
101
	-cd mysql-test ; MTR_BUILD_THREAD=auto \
102
	    @PERL@ ./mysql-test-run.pl --force --comment=funcs1_ps --ps-protocol --suite=funcs_1
103
	-cd mysql-test ; MTR_BUILD_THREAD=auto \
104
	    @PERL@ ./mysql-test-run.pl --force --comment=funcs2 --suite=funcs_2
105
	-cd mysql-test ; MTR_BUILD_THREAD=auto \
106
	    @PERL@ ./mysql-test-run.pl --force --comment=rpl --suite=rpl
107
	-if [ -d mysql-test/suite/nist ] ; then \
108
	  cd mysql-test ; MTR_BUILD_THREAD=auto \
109
	      @PERL@ ./mysql-test-run.pl --comment=NIST+normal --force --suite=nist ; \
110
	fi
111
	-if [ -d mysql-test/suite/nist ] ; then \
112
	  cd mysql-test ; MTR_BUILD_THREAD=auto \
113
	      @PERL@ ./mysql-test-run.pl --comment=NIST+ps --force --suite=nist --ps-protocol ; \
114
	fi
115
	-cd mysql-test ; MTR_BUILD_THREAD=auto \
116
	    @PERL@ ./mysql-test-run.pl --force --comment=stress --suite=stress
117
118
# Re-enable the "jp" suite when bug#28563 is fixed
119
#	-cd mysql-test ; MTR_BUILD_THREAD=auto \
120
#	    @PERL@ ./mysql-test-run.pl --force --comment=jp --suite=jp
121
122
test-bt-debug:
123
	-cd mysql-test ; MTR_BUILD_THREAD=auto \
124
	    @PERL@ ./mysql-test-run.pl --comment=debug  --force --timer \
125
	        --skip-rpl --report-features
126
127
# Keep these for a while
128
test-pl:	test
129
test-full-pl:	test-full
130
test-force-pl:	test-force
131
test-force-pl-mem:  test-force-mem
132
test-force-full-pl: test-force-full
133
134
test-ext-funcs:
135
	cd mysql-test ; \
136
	    @PERL@ ./mysql-test-run.pl --force --suite=funcs_1 ; \
137
	    @PERL@ ./mysql-test-run.pl --force --suite=funcs_2
138
139
test-ext-rpl:
140
	cd mysql-test ; \
141
	    @PERL@ ./mysql-test-run.pl --force --suite=rpl
142
143
test-ext-jp:
144
	cd mysql-test ; \
145
	    @PERL@ ./mysql-test-run.pl --force --suite=jp
146
147
test-ext-stress:
148
	cd mysql-test ; \
149
	    @PERL@ ./mysql-test-run.pl --force --big-test --suite=stress
150
151
test-ext:	test-ext-funcs test-ext-rpl test-ext-jp test-ext-stress
152
153
test-fast:
154
	cd mysql-test ; \
155
	    @PERL@ ./mysql-test-run.pl $(subset) --force --skip-innodb --skip-im --skip-rpl ; \
156
	    @PERL@ ./mysql-test-run.pl $(subset) --force --suite=funcs_1 --do-test=myisam ; \
157
	    @PERL@ ./mysql-test-run.pl $(subset) --force --suite=stress --do-test=ddl_myisam 
158
159
test-fast-view:
160
	$(MAKE) subset=--view-protocol test-fast
161
162
test-fast-cursor:
163
	$(MAKE) subset=--cursor-protocol test-fast
164
165
test-fast-prepare:
166
	$(MAKE) subset=--ps-protocol test-fast
167
168
test-full-qa:
169
	$(MAKE) force=--force test-pr \
170
	    test-binlog-statement test-ext test-fast-view \
171
	        test-fast-cursor test-unit