~drizzle-trunk/drizzle/development

1311.1.3 by Brian Aker
Small update for test-run.pl
1
# vim:ft=automake
1 by brian
clean slate
2
# Copyright (C) 2000-2006 MySQL AB
3
#
4
# This library is free software; you can redistribute it and/or
5
# modify it under the terms of the GNU Library General Public
6
# License as published by the Free Software Foundation; version 2
7
# of the License.
8
#
9
# This library is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12
# Library General Public License for more details.
13
#
14
# You should have received a copy of the GNU Library General Public
15
# License along with this library; if not, write to the Free
16
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
17
# MA 02111-1307, USA
18
19
benchdir_root=		$(prefix)
20
testdir =	        $(benchdir_root)/mysql-test
1192.3.55 by Robert Collins
Merged from Robert: changed subdir make files to be included makefiles.
21
EXTRA_SCRIPTS = 	tests/valgrind.supp $(PRESCRIPTS)
1241.11.2 by Monty Taylor
Fixed symlinks.
22
GENSCRIPTS =		tests/dtr tests/mtr tests/test-run
1192.3.55 by Robert Collins
Merged from Robert: changed subdir make files to be included makefiles.
23
PRESCRIPTS =		tests/test-run.pl tests/stress-test.pl
1093.9.13 by Monty Taylor
pandora-build v0.42 - Started splitting out plugin system into pandora-build
24
PLUGIN_TESTS =		$(pandora_plugin_test_list)
1014.5.8 by Lee Bieber
added a test-all target that runs all the test suites specified by macro
25
ALL_TESTS =		main,big,$(PLUGIN_TESTS)
236.1.36 by Monty Taylor
Removed mysql-test from the install.
26
noinst_SCRIPTS =	$(GENSCRIPTS) $(PRESCRIPTS)
1192.3.55 by Robert Collins
Merged from Robert: changed subdir make files to be included makefiles.
27
CLEANFILES += 		$(GENSCRIPTS) tests/mtr
28
noinst_PROGRAMS += 	tests/resolve_stack_dump
29
tests_resolve_stack_dump_SOURCES = tests/resolve_stack_dump.cc
30
tests_resolve_stack_dump_LDADD = ${TEST_LDADD}
77.1.32 by Monty Taylor
Merged from trunk.
31
1241.9.64 by Monty Taylor
Moved remaining non-public portions of mysys and mystrings to drizzled/internal.
32
TEST_LDADD=		drizzled/internal/libinternal.la \
264.1.20 by Monty Taylor
Added LIBINTL to tests for resolve_stack_dump.
33
			$(LIBINTL)
77.1.32 by Monty Taylor
Merged from trunk.
34
1192.3.60 by Monty Taylor
Fixed distcheck.
35
TEST_RUN= $(PERL) -I../$(top_srcdir)/tests/lib \
36
		../${top_srcdir}/tests/test-run.pl \
37
		--vardir=../${top_builddir}/tests/var \
38
		--suitepath=../${top_srcdir}/plugin \
39
		--testdir=../${top_srcdir}/tests \
685.1.36 by Monty Taylor
Made make test rotate ports.
40
		--mtr-build-thread=$$$$
685.1.13 by Monty Taylor
Attempt at some VPATH support for test suite.
41
1192.3.55 by Robert Collins
Merged from Robert: changed subdir make files to be included makefiles.
42
EXTRA_DIST += \
685.1.8 by Monty Taylor
Added missing things to Makefiles for distcheck.
43
	$(EXTRA_SCRIPTS) \
1530.2.2 by Monty Taylor
Removed cruft from the tree that we don't need. Also, add things to
44
	${srcdir}/tests/README.stress \
45
	${srcdir}/tests/resolve-stack \
1192.3.62 by Monty Taylor
Removed a bunch of files that are cruft, useless or just plain suck.
46
	${srcdir}/tests/suite \
47
	${srcdir}/tests/t \
48
	${srcdir}/tests/include/*.inc \
49
	${srcdir}/tests/include/*.sql \
50
	${srcdir}/tests/include/*.test \
51
	${srcdir}/tests/r/*.result \
52
	${srcdir}/tests/r/*.require \
1530.2.2 by Monty Taylor
Removed cruft from the tree that we don't need. Also, add things to
53
	${srcdir}/tests/r/pbxt/*result \
1192.3.62 by Monty Taylor
Removed a bunch of files that are cruft, useless or just plain suck.
54
	${srcdir}/tests/std_data \
55
	${srcdir}/tests/lib/*.pl \
56
	${srcdir}/tests/lib/My/*.pm
685.1.8 by Monty Taylor
Added missing things to Makefiles for distcheck.
57
1471.3.1 by Monty Taylor
Latest pandora-build. Moves the lint check to only run distcheck.
58
check-local: test-drizzle
1 by brian
clean slate
59
168 by Brian Aker
Rename of test (better tab completion!)
60
# dtr - a shortcut for executing test-run.pl
1192.3.55 by Robert Collins
Merged from Robert: changed subdir make files to be included makefiles.
61
tests/dtr:
1241.11.2 by Monty Taylor
Fixed symlinks.
62
	$(RM) -f tests/dtr
63
	$(LN_S) test-run.pl tests/dtr
64
65
tests/var:
66
	$(mkdir_p) tests/var
67
68
tests/mtr:
69
	$(RM) -f tests/mtr
70
	$(LN_S) test-run.pl tests/mtr
1 by brian
clean slate
71
168 by Brian Aker
Rename of test (better tab completion!)
72
# test-run - a shortcut for executing test-run.pl
1241.11.2 by Monty Taylor
Fixed symlinks.
73
tests/test-run: tests/var
1192.3.55 by Robert Collins
Merged from Robert: changed subdir make files to be included makefiles.
74
	$(RM) -f tests/test-run
1241.11.2 by Monty Taylor
Fixed symlinks.
75
	$(LN_S) test-run.pl tests/test-run
1 by brian
clean slate
76
236.1.22 by Monty Taylor
A couple of changes to move the actual test code to the tests dir and attempt
77
78
.PHONY: test \
1014.5.8 by Lee Bieber
added a test-all target that runs all the test suites specified by macro
79
	test-all \
80
	test-big \
942.1.4 by Monty Taylor
Moved big tests to big suite. Added make target "make test-big" to allow for easy running of the big tests.
81
	test-drizzle \
1014.5.8 by Lee Bieber
added a test-all target that runs all the test suites specified by macro
82
	test-plugins
236.1.22 by Monty Taylor
A couple of changes to move the actual test code to the tests dir and attempt
83
84
# Target 'test' will run the regression test suite using the built server.
85
#
86
# If you are running in a shared environment, users can avoid clashing
87
# port numbers by setting individual small numbers 1-100 to the
88
# environment variable MTR_BUILD_THREAD. The script "test-run"
89
# will then calculate the various port numbers it needs from this,
90
# making sure each user use different ports.
91
1471.3.1 by Monty Taylor
Latest pandora-build. Moves the lint check to only run distcheck.
92
test: check
236.1.22 by Monty Taylor
A couple of changes to move the actual test code to the tests dir and attempt
93
370.1.1 by arjen at com
Initial mods for making all tests work again. Some tests adapted+added.
94
# Please keep the list of tests in alphabetical order for ease of
95
# maintenance and verification
96
1014.5.8 by Lee Bieber
added a test-all target that runs all the test suites specified by macro
97
test-all:
1192.3.60 by Monty Taylor
Fixed distcheck.
98
	( cd tests && $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=$(ALL_TESTS))
1014.5.8 by Lee Bieber
added a test-all target that runs all the test suites specified by macro
99
236.1.22 by Monty Taylor
A couple of changes to move the actual test code to the tests dir and attempt
100
test-drizzle:
1192.3.60 by Monty Taylor
Fixed distcheck.
101
	( cd tests && $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=main,$(PLUGIN_TESTS))
1111.1.1 by Monty Taylor
Added both direct subunit to junit output targets as well as the general ability to inject extra flags into test-run via environment.
102
1237.7.1 by Monty Taylor
Added Makefile-based valgrind run.
103
test-valgrind:
1192.3.60 by Monty Taylor
Fixed distcheck.
104
	( cd tests && $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --valgrind --force --suite=main,$(PLUGIN_TESTS))
1237.7.1 by Monty Taylor
Added Makefile-based valgrind run.
105
1241.4.2 by Monty Taylor
Added make target for generating suppressions.
106
test-valgrind-suppressions:
107
	( cd tests && $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --valgrind --valgrind-option='--gen-suppressions=all' --valgrind-option='--show-reachable=yes' --force --suite=main,$(PLUGIN_TESTS))
108
1111.1.1 by Monty Taylor
Added both direct subunit to junit output targets as well as the general ability to inject extra flags into test-run via environment.
109
test-junitxml:
1192.3.60 by Monty Taylor
Fixed distcheck.
110
	( cd tests && $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=main,$(PLUGIN_TESTS) --subunit | subunit2junitxml --no-passthrough > junit-format.xml )
755.1.8 by Monty Taylor
Remove tests/var on distclean to make distcheck happy.
111
942.1.4 by Monty Taylor
Moved big tests to big suite. Added make target "make test-big" to allow for easy running of the big tests.
112
test-big:
1192.3.60 by Monty Taylor
Fixed distcheck.
113
	( cd tests && $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=big )
1111.1.1 by Monty Taylor
Added both direct subunit to junit output targets as well as the general ability to inject extra flags into test-run via environment.
114
115
test-big-junitxml:
1192.3.60 by Monty Taylor
Fixed distcheck.
116
	( cd tests && $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=big --subunit | subunit2junitxml --no-passthrough > junit-format-big.xml )
942.1.4 by Monty Taylor
Moved big tests to big suite. Added make target "make test-big" to allow for easy running of the big tests.
117
1277.1.1 by Lee Bieber
add target to japanese tests
118
test-jp:
119
	( cd tests && $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=jp )
120
1014.5.5 by Lee Bieber
add tests for hello_world plugin and add target in tests/Makefile to run all plugin tests
121
test-plugins:
1192.3.60 by Monty Taylor
Fixed distcheck.
122
	( cd tests && $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=$(PLUGIN_TESTS) )
1014.5.5 by Lee Bieber
add tests for hello_world plugin and add target in tests/Makefile to run all plugin tests
123
1192.3.55 by Robert Collins
Merged from Robert: changed subdir make files to be included makefiles.
124
distclean-local: nukevar
125
126
nukevar:
1192.3.62 by Monty Taylor
Removed a bunch of files that are cruft, useless or just plain suck.
127
	rm -rf tests/var
1192.3.55 by Robert Collins
Merged from Robert: changed subdir make files to be included makefiles.
128
129
.PHONY: nukevar