~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
685.1.35 by Monty Taylor
Added ${srcdir} to extra dist in tests. Weird.
18
srcdir=			${top_srcdir}/tests
1 by brian
clean slate
19
benchdir_root=		$(prefix)
20
testdir =	        $(benchdir_root)/mysql-test
77.1.32 by Monty Taylor
Merged from trunk.
21
EXTRA_SCRIPTS = 	valgrind.supp $(PRESCRIPTS)
168 by Brian Aker
Rename of test (better tab completion!)
22
GENSCRIPTS =		install_test_db dtr test-run
23
PRESCRIPTS =		test-run.pl stress-test.pl
236.1.36 by Monty Taylor
Removed mysql-test from the install.
24
noinst_SCRIPTS =	$(GENSCRIPTS) $(PRESCRIPTS)
77.1.105 by Monty Taylor
Added more things to distclean targets so that it really does a distclean.
25
CLEANFILES = 		$(GENSCRIPTS) mtr
685.1.37 by Monty Taylor
Added tests/var to distclean targets.
26
DISTCLEANFILES = 	var
77.1.32 by Monty Taylor
Merged from trunk.
27
noinst_PROGRAMS = 	resolve_stack_dump
590.2.19 by Super-User
Yay! Compiles on Solaris.
28
resolve_stack_dump_SOURCES = resolve_stack_dump.cc
77.1.32 by Monty Taylor
Merged from trunk.
29
264.1.3 by Monty Taylor
Removed libmysyslt.la, made mysys a noinst_ and made everything use it. It's
30
LDADD=			$(top_builddir)/mysys/libmysys.la \
266.4.3 by Monty Taylor
Removed mystringslt conv lib and replaced it with a noinst lib.
31
                        $(top_builddir)/mystrings/libmystrings.la \
264.1.20 by Monty Taylor
Added LIBINTL to tests for resolve_stack_dump.
32
			$(LIBINTL)
77.1.32 by Monty Taylor
Merged from trunk.
33
685.1.13 by Monty Taylor
Attempt at some VPATH support for test suite.
34
TEST_RUN= $(PERL) -I$(top_srcdir)/tests/lib \
35
		${top_srcdir}/tests/test-run.pl \
36
		--vardir=${top_builddir}/tests/var \
685.1.36 by Monty Taylor
Made make test rotate ports.
37
		--testdir=${top_srcdir}/tests \
38
		--mtr-build-thread=$$$$
685.1.13 by Monty Taylor
Attempt at some VPATH support for test suite.
39
685.1.8 by Monty Taylor
Added missing things to Makefiles for distcheck.
40
EXTRA_DIST = \
41
	$(EXTRA_SCRIPTS) \
685.1.17 by Monty Taylor
Makde mtr work in VPATH.
42
	suite \
685.1.35 by Monty Taylor
Added ${srcdir} to extra dist in tests. Weird.
43
	${srcdir}/t/*.test \
44
	${srcdir}/t/*.opt \
45
	${srcdir}/extra/rpl_tests/*.test \
46
	${srcdir}/extra/binlog_tests/*.test \
47
	${srcdir}/include/*.inc \
48
	${srcdir}/include/*.sql \
49
	${srcdir}/include/*.test \
50
	${srcdir}/r/*.result \
51
	${srcdir}/r/*.require \
52
	${srcdir}/std_data/Moscow_leap \
53
	${srcdir}/std_data/Index.xml \
54
	${srcdir}/std_data/*.dat \
55
	${srcdir}/std_data/*.000001 \
56
	${srcdir}/std_data/des_key_file \
57
	${srcdir}/std_data/*.pem \
58
	${srcdir}/std_data/*.frm \
59
	${srcdir}/std_data/*.MY* \
60
	${srcdir}/std_data/*.cnf \
61
	${srcdir}/std_data/parts/part_* \
62
	${srcdir}/lib/*.pl \
63
	${srcdir}/lib/My/*.pm
685.1.8 by Monty Taylor
Added missing things to Makefiles for distcheck.
64
656.1.21 by Monty Taylor
Hooked test-suite into make check.
65
check: test-drizzle
1 by brian
clean slate
66
168 by Brian Aker
Rename of test (better tab completion!)
67
# dtr - a shortcut for executing test-run.pl
77.1.40 by Monty Taylor
More naming changes.
68
dtr:
69
	$(RM) -f mtr dtr
685.1.22 by Monty Taylor
Added testdir setting support to drizzletest.
70
	$(LN_S) ${top_srcdir}/tests/test-run.pl mtr
71
	$(LN_S) ${top_srcdir}/tests/test-run.pl dtr
685.1.21 by Monty Taylor
Removed some prints. Also fixed some bad.
72
	$(MKDIR_P) ${top_builddir}/tests/var
1 by brian
clean slate
73
168 by Brian Aker
Rename of test (better tab completion!)
74
# test-run - a shortcut for executing test-run.pl
75
test-run:
76
	$(RM) -f test-run
685.1.22 by Monty Taylor
Added testdir setting support to drizzletest.
77
	$(LN_S) ${top_srcdir}/tests/test-run.pl test-run
1 by brian
clean slate
78
236.1.22 by Monty Taylor
A couple of changes to move the actual test code to the tests dir and attempt
79
80
.PHONY: test \
81
    test-force \
82
    test-full \
83
    test-force-full \
84
    test-force-mem \
85
    test-pl \
86
    test-force-pl \
87
    test-full-pl \
88
    test-force-full-pl \
89
    test-force-pl-mem \
90
    test-ps test-nr \
91
    test-pr test-ns \
92
    test-binlog-statement \
93
    test-ext-funcs \
94
    test-ext-rpl \
95
    test-ext-jp \
96
    test-ext-stress \
97
    test-ext \
98
    test-embedded \
99
    test-fast \
100
    test-fast-cursor \
101
    test-fast-view \
102
    test-full-qa
103
104
# Target 'test' will run the regression test suite using the built server.
105
#
106
# If you are running in a shared environment, users can avoid clashing
107
# port numbers by setting individual small numbers 1-100 to the
108
# environment variable MTR_BUILD_THREAD. The script "test-run"
109
# will then calculate the various port numbers it needs from this,
110
# making sure each user use different ports.
111
112
test-nr:
113
	cd tests ; \
685.1.13 by Monty Taylor
Attempt at some VPATH support for test suite.
114
	  $(TEST_RUN) $(force) --mysqld=--binlog-format=row
236.1.22 by Monty Taylor
A couple of changes to move the actual test code to the tests dir and attempt
115
116
test-ns:
117
	cd tests ; \
685.1.13 by Monty Taylor
Attempt at some VPATH support for test suite.
118
	  $(TEST_RUN) $(force) $(mem) --mysqld=--binlog-format=mixed
236.1.22 by Monty Taylor
A couple of changes to move the actual test code to the tests dir and attempt
119
120
test-binlog-statement:
121
	cd tests ; \
685.1.13 by Monty Taylor
Attempt at some VPATH support for test suite.
122
	  $(TEST_RUN) $(force) --mysqld=--binlog-format=statement
236.1.22 by Monty Taylor
A couple of changes to move the actual test code to the tests dir and attempt
123
124
test: test-drizzle
125
370.1.1 by arjen at com
Initial mods for making all tests work again. Some tests adapted+added.
126
# Please keep the list of tests in alphabetical order for ease of
127
# maintenance and verification
128
236.1.22 by Monty Taylor
A couple of changes to move the actual test code to the tests dir and attempt
129
test-drizzle:
685.1.13 by Monty Taylor
Attempt at some VPATH support for test suite.
130
	  $(TEST_RUN) --fast --reorder --force --suite=main,vcol