~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/include.am

Merged from Robert: changed subdir make files to be included makefiles.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
16
16
# MA 02111-1307, USA
17
17
 
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}
30
30
 
31
 
LDADD=                  $(top_builddir)/mysys/libmysys.la \
 
31
TEST_LDADD=                     $(top_builddir)/mysys/libmysys.la \
32
32
                        $(top_builddir)/mystrings/libmystrings.la \
33
33
                        $(LIBINTL)
34
34
 
39
39
                --testdir=${top_srcdir}/tests \
40
40
                --mtr-build-thread=$$$$
41
41
 
42
 
EXTRA_DIST = \
 
42
EXTRA_DIST += \
43
43
        $(EXTRA_SCRIPTS) \
44
44
        suite \
45
 
        ${srcdir}/t \
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_* \
64
 
        ${srcdir}/lib/*.pl \
65
 
        ${srcdir}/lib/My/*.pm
 
45
        tests/t \
 
46
        tests/extra/rpl_tests/*.test \
 
47
        tests/extra/binlog_tests/*.test \
 
48
        tests/include/*.inc \
 
49
        tests/include/*.sql \
 
50
        tests/include/*.test \
 
51
        tests/r/*.result \
 
52
        tests/r/*.require \
 
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_* \
 
64
        tests/lib/*.pl \
 
65
        tests/lib/My/*.pm
66
66
 
67
67
check: test-drizzle
68
68
 
69
69
# dtr - a shortcut for executing test-run.pl
70
 
dtr:
71
 
        $(RM) -f mtr dtr
72
 
        $(LN_S) ${top_srcdir}/tests/test-run.pl mtr
73
 
        $(LN_S) ${top_srcdir}/tests/test-run.pl dtr
 
70
tests/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
75
75
 
76
76
# test-run - a shortcut for executing test-run.pl
77
 
test-run:
78
 
        $(RM) -f test-run
79
 
        $(LN_S) ${top_srcdir}/tests/test-run.pl test-run
 
77
tests/test-run:
 
78
        $(RM) -f tests/test-run
 
79
        $(LN_S) ${top_srcdir}/tests/test-run.pl tests/test-run
80
80
 
81
81
 
82
82
.PHONY: test \
105
105
        $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=main,$(PLUGIN_TESTS)
106
106
 
107
107
test-junitxml:
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
109
109
 
110
110
test-big:
111
111
        $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=big
112
112
 
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
115
115
 
116
116
test-plugins:
117
117
        $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=$(PLUGIN_TESTS)
118
118
 
119
 
distclean-local:
 
119
distclean-local: nukevar
 
120
 
 
121
nukevar:
120
122
        rm -rf var
 
123
 
 
124
.PHONY: nukevar