Makefile.am 7.25 KB
Newer Older
unknown's avatar
unknown committed
1
# Copyright (C) 2000-2006 MySQL AB
unknown's avatar
unknown committed
2 3 4
# 
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
unknown's avatar
unknown committed
5
# the Free Software Foundation; version 2 of the License.
unknown's avatar
unknown committed
6 7 8 9 10 11 12 13 14 15 16 17 18
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

# Process this file with automake to create Makefile.in

AUTOMAKE_OPTIONS =	foreign
19

unknown's avatar
unknown committed
20
# These are built from source in the Docs directory
unknown's avatar
unknown committed
21
EXTRA_DIST =		INSTALL-SOURCE INSTALL-WIN-SOURCE \
22
			README COPYING EXCEPTIONS-CLIENT CMakeLists.txt
23

24
SUBDIRS =		. include @docs_dirs@ @zlib_dir@ \
25
			@readline_topdir@ sql-common scripts \
unknown's avatar
unknown committed
26
			@pstack_dir@ \
27 28
			@sql_union_dirs@ unittest storage plugin \
			@sql_server@ @man_dirs@ tests \
29
			netware @libmysqld_dirs@ \
30
			mysql-test support-files sql-bench @tools_dirs@ \
31
			win
32

unknown's avatar
unknown committed
33 34 35 36 37 38 39 40 41
DIST_SUBDIRS =		. include Docs zlib \
			cmd-line-utils sql-common scripts \
			pstack \
			strings mysys dbug extra regex libmysql libmysql_r client unittest storage plugin \
			vio sql man tests \
			netware libmysqld \
			mysql-test support-files sql-bench server-tools \
			win \
			BUILD debian
unknown's avatar
unknown committed
42

unknown's avatar
unknown committed
43
DISTCLEANFILES = ac_available_languages_fragment
unknown's avatar
unknown committed
44

unknown's avatar
unknown committed
45 46 47 48 49
# Create permission databases
init-db:		all
	$(top_builddir)/scripts/mysql_install_db

bin-dist:		all
50
	$(top_builddir)/scripts/make_binary_distribution @MAKE_BINARY_DISTRIBUTION_OPTIONS@
unknown's avatar
unknown committed
51

52
# Remove BK's "SCCS" subdirectories from source distribution
53
# Create initial database files for Windows installations.
54
dist-hook:
unknown's avatar
unknown committed
55
	rm -rf `find $(distdir) -type d -name SCCS -print`
unknown's avatar
unknown committed
56 57 58 59 60
	mkdir -p $(distdir)/win
	scripts/mysql_install_db --no-defaults --windows \
		--basedir=$(top_builddir) \
		--datadir=$(distdir)/win/data \
		--srcdir=$(top_srcdir)
61

unknown's avatar
unknown committed
62
tags:
63
	support-files/build-tags
64

unknown's avatar
unknown committed
65 66 67
.PHONY:	init-db bin-dist \
  test    test-force    test-full    test-force-full    test-force-mem \
  test-pl test-force-pl test-full-pl test-force-full-pl test-force-pl-mem \
68
  test-unit test-ps test-nr test-pr test-ns test-binlog-statement \
69 70
  test-ext-funcs test-ext-rpl test-ext-partitions test-ext-jp \
  test-ext-stress test-ext \
71 72
  test-fast test-fast-cursor test-fast-view test-fast-prepare \
  test-full-qa
unknown's avatar
unknown committed
73

unknown's avatar
unknown committed
74 75 76 77 78 79 80
# Target 'test' will run the regression test suite using the built server.
#
# If you are running in a shared environment, users can avoid clashing
# port numbers by setting individual small numbers 1-100 to the
# environment variable MTR_BUILD_THREAD. The script "mysql-test-run"
# will then calculate the various port numbers it needs from this,
# making sure each user use different ports.
unknown's avatar
unknown committed
81

82 83 84 85
test-unit:
	cd unittest && $(MAKE) test

test-ps:
86
	cd mysql-test ; \
87
	@PERL@ ./mysql-test-run.pl $(force) --ps-protocol --mysqld=--binlog-format=mixed
88

89
test-nr:
90
	cd mysql-test ; \
91
	@PERL@ ./mysql-test-run.pl $(force) --mysqld=--binlog-format=row
unknown's avatar
unknown committed
92

93
test-pr:
94
	cd mysql-test ; \
95
	@PERL@ ./mysql-test-run.pl $(force) $(mem) --ps-protocol --mysqld=--binlog-format=row
96

97
test-ns:
unknown's avatar
unknown committed
98
	cd mysql-test ; \
99
	@PERL@ ./mysql-test-run.pl $(force) $(mem) --mysqld=--binlog-format=mixed
unknown's avatar
unknown committed
100 101

test-binlog-statement:
102
	cd mysql-test ; \
103
	@PERL@ ./mysql-test-run.pl $(force) --mysqld=--binlog-format=statement
104 105 106 107 108 109 110 111 112 113

test:	test-unit test-ns test-pr

test-full:	test test-nr test-ps

test-force:
	$(MAKE) force=--force test

test-force-full:
	$(MAKE) force=--force test-full
unknown's avatar
unknown committed
114

115 116
#used by autopush.pl to run memory based tests
test-force-mem:
117
	$(MAKE) force=--force mem=--mem test
118

unknown's avatar
unknown committed
119 120
test-bt:
	-cd mysql-test ; MTR_BUILD_THREAD=auto \
unknown's avatar
unknown committed
121 122
	@PERL@ ./mysql-test-run.pl --comment=normal --force --timer \
	--skip-ndbcluster --report-features
unknown's avatar
unknown committed
123
	-cd mysql-test ; MTR_BUILD_THREAD=auto \
unknown's avatar
unknown committed
124 125 126 127 128 129 130 131 132 133 134
	@PERL@ ./mysql-test-run.pl  --comment=ps    --force --timer \
	--skip-ndbcluster --ps-protocol
	-cd mysql-test ; MTR_BUILD_THREAD=auto \
	@PERL@ ./mysql-test-run.pl --comment=normal+rowrepl --force --timer \
	--skip-ndbcluster --mysqld=--binlog-format=row
	-cd mysql-test ; MTR_BUILD_THREAD=auto \
	@PERL@ ./mysql-test-run.pl --comment=ps+rowrepl+NDB --force --timer \
	--ps-protocol --mysqld=--binlog-format=row
	-cd mysql-test ; MTR_BUILD_THREAD=auto \
	@PERL@ ./mysql-test-run.pl --comment=NDB            --force --timer \
	--with-ndbcluster-only
135 136 137 138 139
	-if [ -e bin/mysqltest_embedded -o -e libmysqld/examples/mysqltest_embedded ] ; then \
	  cd mysql-test ; MTR_BUILD_THREAD=auto \
	  @PERL@ ./mysql-test-run.pl --comment=embedded --force --timer \
	    --embedded-server --skip-rpl --skip-ndbcluster ; \
	fi
140 141 142 143
	-cd mysql-test ; MTR_BUILD_THREAD=auto \
	@PERL@ ./mysql-test-run.pl --force --comment=funcs1_ps --ps-protocol --suite=funcs_1
	-cd mysql-test ; MTR_BUILD_THREAD=auto \
	@PERL@ ./mysql-test-run.pl --force --comment=funcs2 --suite=funcs_2
144 145 146
	-cd mysql-test ; MTR_BUILD_THREAD=auto \
	@PERL@ ./mysql-test-run.pl --force --comment=rpl --suite=rpl
	-cd mysql-test ; MTR_BUILD_THREAD=auto \
147
	@PERL@ ./mysql-test-run.pl --force --comment=partitions --suite=parts
148 149 150 151 152 153 154 155
	-if [ -d mysql-test/suite/nist ] ; then \
	  cd mysql-test ; MTR_BUILD_THREAD=auto \
	  @PERL@ ./mysql-test-run.pl --comment=NIST+normal --force --suite=nist ; \
	fi
	-if [ -d mysql-test/suite/nist ] ; then \
	  cd mysql-test ; MTR_BUILD_THREAD=auto \
	  @PERL@ ./mysql-test-run.pl --comment=NIST+ps --force --suite=nist --ps-protocol ; \
	fi
unknown's avatar
unknown committed
156 157
	-cd mysql-test ; MTR_BUILD_THREAD=auto \
	@PERL@ ./mysql-test-run.pl --force --comment=stress --suite=stress
158

159 160 161
# Re-enable the "jp" suite when bug#28563 is fixed
#	-cd mysql-test ; MTR_BUILD_THREAD=auto \
#	@PERL@ ./mysql-test-run.pl --force --comment=jp --suite=jp
unknown's avatar
unknown committed
162

163 164
test-bt-debug:
	-cd mysql-test ; MTR_BUILD_THREAD=auto \
unknown's avatar
unknown committed
165 166
	@PERL@ ./mysql-test-run.pl --comment=debug  --force --timer \
	--skip-ndbcluster --skip-rpl --report-features
167

168 169 170 171
# Keep these for a while
test-pl:	test
test-full-pl:	test-full
test-force-pl:	test-force
172
test-force-pl-mem:  test-force-mem
173 174
test-force-full-pl: test-force-full

175 176 177 178 179 180 181 182 183 184 185
test-ext-funcs:
	cd mysql-test ; \
	@PERL@ ./mysql-test-run.pl --force --suite=funcs_1 ; \
	@PERL@ ./mysql-test-run.pl --force --suite=funcs_2

test-ext-rpl:
	cd mysql-test ; \
	@PERL@ ./mysql-test-run.pl --force --suite=rpl

test-ext-partitions:
	cd mysql-test ; \
186
	@PERL@ ./mysql-test-run.pl --force --suite=parts
187 188 189 190 191

test-ext-jp:
	cd mysql-test ; \
	@PERL@ ./mysql-test-run.pl --force --suite=jp

192 193 194 195 196
test-ext-stress:
	cd mysql-test ; \
	@PERL@ ./mysql-test-run.pl --force --big-test --suite=stress

test-ext:	test-ext-funcs test-ext-rpl test-ext-partitions test-ext-jp test-ext-stress
197 198 199 200

test-fast:
	cd mysql-test ; \
	@PERL@ ./mysql-test-run.pl $(subset) --force --skip-ndb --skip-innodb --skip-im --skip-rpl ; \
201 202
	@PERL@ ./mysql-test-run.pl $(subset) --force --suite=funcs_1 --do-test=myisam ; \
	@PERL@ ./mysql-test-run.pl $(subset) --force --suite=stress --do-test=ddl_myisam 
203 204 205 206 207 208 209 210 211 212 213 214 215 216 217

test-fast-view:
	$(MAKE) subset=--view-protocol test-fast

test-fast-cursor:
	$(MAKE) subset=--cursor-protocol test-fast

test-fast-prepare:
	$(MAKE) subset=--ps-protocol test-fast

test-full-qa:
	$(MAKE) force=--force test-pr \
	test-binlog-statement test-ext test-fast-view \
	test-fast-cursor test-unit

218 219
# Don't update the files from bitkeeper
%::SCCS/s.%