15
15
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
16
16
# MA 02111-1307, USA
18
srcdir= ${top_srcdir}/tests
19
18
benchdir_root= $(prefix)
20
19
testdir = $(benchdir_root)/mysql-test
21
EXTRA_SCRIPTS = valgrind.supp $(PRESCRIPTS)
22
GENSCRIPTS = install_test_db dtr test-run
23
PRESCRIPTS = test-run.pl stress-test.pl
20
EXTRA_SCRIPTS = tests/valgrind.supp $(PRESCRIPTS)
21
GENSCRIPTS = tests/install_test_db tests/dtr tests/test-run
22
PRESCRIPTS = tests/test-run.pl tests/stress-test.pl
24
23
PLUGIN_TESTS = $(pandora_plugin_test_list)
25
24
ALL_TESTS = main,big,$(PLUGIN_TESTS)
26
25
noinst_SCRIPTS = $(GENSCRIPTS) $(PRESCRIPTS)
27
CLEANFILES = $(GENSCRIPTS) mtr
28
noinst_PROGRAMS = resolve_stack_dump
29
resolve_stack_dump_SOURCES = resolve_stack_dump.cc
26
CLEANFILES += $(GENSCRIPTS) tests/mtr
27
noinst_PROGRAMS += tests/resolve_stack_dump
28
tests_resolve_stack_dump_SOURCES = tests/resolve_stack_dump.cc
29
tests_resolve_stack_dump_LDADD = ${TEST_LDADD}
31
LDADD= $(top_builddir)/mysys/libmysys.la \
31
TEST_LDADD= $(top_builddir)/mysys/libmysys.la \
32
32
$(top_builddir)/mystrings/libmystrings.la \
39
39
--testdir=${top_srcdir}/tests \
40
40
--mtr-build-thread=$$$$
46
${srcdir}/extra/rpl_tests/*.test \
47
${srcdir}/extra/binlog_tests/*.test \
48
${srcdir}/include/*.inc \
49
${srcdir}/include/*.sql \
50
${srcdir}/include/*.test \
51
${srcdir}/r/*.result \
52
${srcdir}/r/*.require \
53
${srcdir}/std_data/Moscow_leap \
54
${srcdir}/std_data/Index.xml \
55
${srcdir}/std_data/*.dat \
56
${srcdir}/std_data/*.000001 \
57
${srcdir}/std_data/des_key_file \
58
${srcdir}/std_data/*.pem \
59
${srcdir}/std_data/*.txt \
60
${srcdir}/std_data/*.frm \
61
${srcdir}/std_data/*.MY* \
62
${srcdir}/std_data/*.cnf \
63
${srcdir}/std_data/parts/part_* \
46
tests/extra/rpl_tests/*.test \
47
tests/extra/binlog_tests/*.test \
50
tests/include/*.test \
53
tests/std_data/Moscow_leap \
54
tests/std_data/Index.xml \
55
tests/std_data/*.dat \
56
tests/std_data/*.000001 \
57
tests/std_data/des_key_file \
58
tests/std_data/*.pem \
59
tests/std_data/*.txt \
60
tests/std_data/*.frm \
61
tests/std_data/*.MY* \
62
tests/std_data/*.cnf \
63
tests/std_data/parts/part_* \
67
67
check: test-drizzle
69
69
# dtr - a shortcut for executing test-run.pl
72
$(LN_S) ${top_srcdir}/tests/test-run.pl mtr
73
$(LN_S) ${top_srcdir}/tests/test-run.pl dtr
71
$(RM) -f tests/mtr tests/dtr
72
$(LN_S) ${top_srcdir}/tests/test-run.pl tests/mtr
73
$(LN_S) ${top_srcdir}/tests/test-run.pl tests/dtr
74
74
$(mkdir_p) ${top_builddir}/tests/var
76
76
# test-run - a shortcut for executing test-run.pl
79
$(LN_S) ${top_srcdir}/tests/test-run.pl test-run
78
$(RM) -f tests/test-run
79
$(LN_S) ${top_srcdir}/tests/test-run.pl tests/test-run
105
105
$(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=main,$(PLUGIN_TESTS)
108
$(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=main,$(PLUGIN_TESTS) --subunit | subunit2junitxml --no-passthrough > junit-format.xml
108
$(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=main,$(PLUGIN_TESTS) --subunit | subunit2junitxml --no-passthrough > tests/junit-format.xml
111
111
$(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=big
113
113
test-big-junitxml:
114
$(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=big --subunit | subunit2junitxml --no-passthrough > junit-format-big.xml
114
$(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=big --subunit | subunit2junitxml --no-passthrough > tests/junit-format-big.xml
117
117
$(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=$(PLUGIN_TESTS)
119
distclean-local: nukevar