14
15
# You should have received a copy of the GNU Library General Public
15
16
# License along with this library; if not, write to the Free
16
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
17
# Software Foundation, Inc., 51 Franklin Place - Suite 330, Boston,
19
20
benchdir_root= $(prefix)
20
21
testdir = $(benchdir_root)/mysql-test
22
23
GENSCRIPTS = tests/dtr tests/mtr tests/test-run
23
24
PRESCRIPTS = tests/test-run.pl tests/stress-test.pl
24
25
PLUGIN_TESTS = $(pandora_plugin_test_list)
25
ALL_TESTS = main,big,$(PLUGIN_TESTS)
26
NORMAL_TESTS = main,jp,tamil,regression,$(PLUGIN_TESTS)
27
ALL_TESTS = main,big,jp,tamil,regression,$(PLUGIN_TESTS)
26
28
noinst_SCRIPTS = $(GENSCRIPTS) $(PRESCRIPTS)
27
29
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}
32
TEST_LDADD= drizzled/internal/libinternal.la \
35
31
TEST_RUN= $(PERL) -I../$(top_srcdir)/tests/lib \
36
32
../${top_srcdir}/tests/test-run.pl \
33
--top-srcdir=../${top_srcdir} \
34
--top-builddir=../${top_builddir} \
37
35
--vardir=../${top_builddir}/tests/var \
38
36
--suitepath=../${top_srcdir}/plugin \
39
37
--testdir=../${top_srcdir}/tests \
40
--mtr-build-thread=$$$$
38
--dtr-build-thread=$$$$
42
${srcdir}/tests/README.stress \
44
43
${srcdir}/tests/suite \
45
44
${srcdir}/tests/t \
46
45
${srcdir}/tests/include/*.inc \
48
47
${srcdir}/tests/include/*.test \
49
48
${srcdir}/tests/r/*.result \
50
49
${srcdir}/tests/r/*.require \
50
${srcdir}/tests/r/pbxt/*result \
51
51
${srcdir}/tests/std_data \
52
52
${srcdir}/tests/lib/*.pl \
53
${srcdir}/tests/lib/My/*.pm
53
${srcdir}/tests/lib/My/*.pm \
56
check-local: test-drizzle
57
58
# dtr - a shortcut for executing test-run.pl
86
87
# will then calculate the various port numbers it needs from this,
87
88
# making sure each user use different ports.
91
92
# Please keep the list of tests in alphabetical order for ease of
92
93
# maintenance and verification
95
96
( cd tests && $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=$(ALL_TESTS))
98
( cd tests && $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=main,$(PLUGIN_TESTS))
99
( cd tests && $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=$(NORMAL_TESTS))
101
( cd tests && $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --valgrind --force --suite=main,$(PLUGIN_TESTS))
102
( cd tests && $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --valgrind --force --suite=$(NORMAL_TESTS) && python strip-valgrind)
103
104
test-valgrind-suppressions:
104
( cd tests && $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --valgrind --valgrind-option='--gen-suppressions=all' --valgrind-option='--show-reachable=yes' --force --suite=main,$(PLUGIN_TESTS))
105
( cd tests && $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --valgrind --valgrind-option='--gen-suppressions=all' --valgrind-option='--show-reachable=yes' --force --suite=$(NORMAL_TESTS) && python strip-valgrind)
107
( cd tests && $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=main,$(PLUGIN_TESTS) --subunit | subunit2junitxml --no-passthrough > junit-format.xml )
108
( cd tests && $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=$(NORMAL_TESTS) --subunit | subunit2junitxml --no-passthrough > junit-format.xml )
110
111
( cd tests && $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=big )