~drizzle-trunk/drizzle/development

1 by brian
clean slate
1
# Copyright (C) 2000-2006 MySQL AB
2
#
3
# This library is free software; you can redistribute it and/or
4
# modify it under the terms of the GNU Library General Public
5
# License as published by the Free Software Foundation; version 2
6
# of the License.
7
#
8
# This library is distributed in the hope that it will be useful,
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11
# Library General Public License for more details.
12
#
13
# You should have received a copy of the GNU Library General Public
14
# License along with this library; if not, write to the Free
15
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
16
# MA 02111-1307, USA
17
18
## Process this file with automake to create Makefile.in
19
20
SUBDIRS = 
21
22
benchdir_root=		$(prefix)
23
testdir =	        $(benchdir_root)/mysql-test
77.1.32 by Monty Taylor
Merged from trunk.
24
EXTRA_SCRIPTS = 	valgrind.supp $(PRESCRIPTS)
1 by brian
clean slate
25
EXTRA_DIST = 		$(EXTRA_SCRIPTS) suite
168 by Brian Aker
Rename of test (better tab completion!)
26
GENSCRIPTS =		install_test_db dtr test-run
27
PRESCRIPTS =		test-run.pl stress-test.pl
236.1.36 by Monty Taylor
Removed mysql-test from the install.
28
noinst_SCRIPTS =	$(GENSCRIPTS) $(PRESCRIPTS)
77.1.105 by Monty Taylor
Added more things to distclean targets so that it really does a distclean.
29
CLEANFILES = 		$(GENSCRIPTS) mtr
77.1.32 by Monty Taylor
Merged from trunk.
30
noinst_PROGRAMS = 	resolve_stack_dump
31
264.1.3 by Monty Taylor
Removed libmysyslt.la, made mysys a noinst_ and made everything use it. It's
32
LDADD=			$(top_builddir)/mysys/libmysys.la \
264.1.20 by Monty Taylor
Added LIBINTL to tests for resolve_stack_dump.
33
                        $(top_builddir)/mystrings/libmystringslt.la \
34
			$(LIBINTL)
77.1.32 by Monty Taylor
Merged from trunk.
35
1 by brian
clean slate
36
37
38
dist-hook:
39
	mkdir -p \
40
		$(distdir)/t \
41
                $(distdir)/extra/binlog_tests \
42
                $(distdir)/extra/rpl_tests \
43
		$(distdir)/r \
44
		$(distdir)/include \
45
		$(distdir)/std_data \
46
		$(distdir)/std_data/parts \
47
		$(distdir)/lib \
48
		$(distdir)/lib/My
49
	-$(INSTALL_DATA) $(srcdir)/t/*.def $(distdir)/t
50
	$(INSTALL_DATA) $(srcdir)/t/*.test $(distdir)/t
51
	-$(INSTALL_DATA) $(srcdir)/t/*.imtest $(distdir)/t
52
	$(INSTALL_DATA) $(srcdir)/t/*.sql $(distdir)/t
53
	-$(INSTALL_DATA) $(srcdir)/t/*.disabled $(distdir)/t
54
	-$(INSTALL_DATA) $(srcdir)/t/*.opt $(srcdir)/t/*.slave-mi $(distdir)/t
55
	-$(INSTALL_SCRIPT) $(srcdir)/t/*.sh $(distdir)/t
56
	$(INSTALL_DATA) $(srcdir)/extra/binlog_tests/*.test $(distdir)/extra/binlog_tests
57
	$(INSTALL_DATA) $(srcdir)/extra/rpl_tests/*.test $(distdir)/extra/rpl_tests
58
	-$(INSTALL_DATA) $(srcdir)/extra/binlog_tests/*.opt $(distdir)/extra/binlog_tests
59
	-$(INSTALL_DATA) $(srcdir)/extra/rpl_tests/*.opt $(distdir)/extra/rpl_tests
60
	$(INSTALL_DATA) $(srcdir)/include/*.inc $(distdir)/include
61
	$(INSTALL_DATA) $(srcdir)/include/*.sql $(distdir)/include
62
	$(INSTALL_DATA) $(srcdir)/include/*.test $(distdir)/include
63
	$(INSTALL_DATA) $(srcdir)/r/*.result $(srcdir)/r/*.require $(distdir)/r
64
	$(INSTALL_DATA) $(srcdir)/std_data/Moscow_leap $(distdir)/std_data
65
	$(INSTALL_DATA) $(srcdir)/std_data/Index.xml $(distdir)/std_data
66
	$(INSTALL_DATA) $(srcdir)/std_data/*.dat $(srcdir)/std_data/*.000001 $(distdir)/std_data
67
	$(INSTALL_DATA) $(srcdir)/std_data/des_key_file $(distdir)/std_data
68
	$(INSTALL_DATA) $(srcdir)/std_data/*.pem $(distdir)/std_data
69
	$(INSTALL_DATA) $(srcdir)/std_data/*.frm $(distdir)/std_data
70
	$(INSTALL_DATA) $(srcdir)/std_data/*.MY* $(distdir)/std_data
71
	$(INSTALL_DATA) $(srcdir)/std_data/*.cnf $(distdir)/std_data
72
	$(INSTALL_DATA) $(srcdir)/std_data/parts/part_* $(distdir)/std_data/parts
73
	$(INSTALL_DATA) $(srcdir)/lib/*.pl $(distdir)/lib
74
	$(INSTALL_DATA) $(srcdir)/lib/My/*.pm $(distdir)/lib/My
75
168 by Brian Aker
Rename of test (better tab completion!)
76
# dtr - a shortcut for executing test-run.pl
77.1.40 by Monty Taylor
More naming changes.
77
dtr:
78
	$(RM) -f mtr dtr
168 by Brian Aker
Rename of test (better tab completion!)
79
	$(LN_S) test-run.pl mtr
80
	$(LN_S) test-run.pl dtr
1 by brian
clean slate
81
168 by Brian Aker
Rename of test (better tab completion!)
82
# test-run - a shortcut for executing test-run.pl
83
test-run:
84
	$(RM) -f test-run
85
	$(LN_S) test-run.pl test-run
1 by brian
clean slate
86
236.1.22 by Monty Taylor
A couple of changes to move the actual test code to the tests dir and attempt
87
88
.PHONY: test \
89
    test-force \
90
    test-full \
91
    test-force-full \
92
    test-force-mem \
93
    test-pl \
94
    test-force-pl \
95
    test-full-pl \
96
    test-force-full-pl \
97
    test-force-pl-mem \
98
    test-ps test-nr \
99
    test-pr test-ns \
100
    test-binlog-statement \
101
    test-ext-funcs \
102
    test-ext-rpl \
103
    test-ext-jp \
104
    test-ext-stress \
105
    test-ext \
106
    test-embedded \
107
    test-fast \
108
    test-fast-cursor \
109
    test-fast-view \
110
    test-full-qa
111
112
# Target 'test' will run the regression test suite using the built server.
113
#
114
# If you are running in a shared environment, users can avoid clashing
115
# port numbers by setting individual small numbers 1-100 to the
116
# environment variable MTR_BUILD_THREAD. The script "test-run"
117
# will then calculate the various port numbers it needs from this,
118
# making sure each user use different ports.
119
120
test-nr:
121
	cd tests ; \
122
	  ./test-run $(force) --mysqld=--binlog-format=row
123
124
test-ns:
125
	cd tests ; \
126
	  ./test-run $(force) $(mem) --mysqld=--binlog-format=mixed
127
128
test-binlog-statement:
129
	cd tests ; \
130
	  ./test-run $(force) --mysqld=--binlog-format=statement
131
132
test: test-drizzle
133
134
test-drizzle:
135
	  $(PERL) -I$(top_srcdir)/tests/lib \
136
		$(top_srcdir)/tests/test-run.pl --fast --reorder --force \
137
	  alter_table \
138
	  join_crash \
139
	  join_nested \
140
	  join_outer_innodb \
141
	  delete \
142
	  join_outer \
143
	  distinct \
144
	  type_newdecimal \
261.1.8 by Brian Aker
Merge from Harrison Fisk of the Ebay + Google Hash engine.
145
	  heap_auto_increment \
146
	  heap_btree \
147
	  heap_var \
236.1.22 by Monty Taylor
A couple of changes to move the actual test code to the tests dir and attempt
148
	  join \
149
	  subselect \
150
	  subselect3 \
151
	  subselect_innodb \
152
	  insert \
153
	  select \
154
	  update \
155
	  information_schema \
156
	  mysqlslap \
157
	  lock \
244.1.1 by Harrison Fisk
Port Ebay/Google memory storage engine variable width columns.
158
	  lock_tables_lost_commit \
159
	  heap_var