~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/include.am

Merge Monty

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/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
 
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 \
 
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 \
40
40
                --mtr-build-thread=$$$$
41
41
 
42
 
EXTRA_DIST = \
 
42
EXTRA_DIST += \
43
43
        $(EXTRA_SCRIPTS) \
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
 
44
        ${srcdir}/tests/suite \
 
45
        ${srcdir}/tests/t \
 
46
        ${srcdir}/tests/include/*.inc \
 
47
        ${srcdir}/tests/include/*.sql \
 
48
        ${srcdir}/tests/include/*.test \
 
49
        ${srcdir}/tests/r/*.result \
 
50
        ${srcdir}/tests/r/*.require \
 
51
        ${srcdir}/tests/std_data \
 
52
        ${srcdir}/tests/lib/*.pl \
 
53
        ${srcdir}/tests/lib/My/*.pm
66
54
 
67
55
check: test-drizzle
68
56
 
69
57
# 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
 
58
tests/dtr:
 
59
        $(RM) -f tests/mtr tests/dtr
 
60
        $(LN_S) ${top_srcdir}/tests/test-run.pl tests/mtr
 
61
        $(LN_S) ${top_srcdir}/tests/test-run.pl tests/dtr
74
62
        $(mkdir_p) ${top_builddir}/tests/var
75
63
 
76
64
# 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
 
65
tests/test-run:
 
66
        $(RM) -f tests/test-run
 
67
        $(LN_S) ${top_srcdir}/tests/test-run.pl tests/test-run
80
68
 
81
69
 
82
70
.PHONY: test \
99
87
# maintenance and verification
100
88
 
101
89
test-all:
102
 
        $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=$(ALL_TESTS)
 
90
        ( cd tests && $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=$(ALL_TESTS))
103
91
 
104
92
test-drizzle:
105
 
        $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=main,$(PLUGIN_TESTS)
 
93
        ( cd tests && $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=main,$(PLUGIN_TESTS))
106
94
 
107
95
test-valgrind:
108
 
        $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --valgrind --force --suite=main,$(PLUGIN_TESTS)
 
96
        ( cd tests && $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --valgrind --force --suite=main,$(PLUGIN_TESTS))
109
97
 
110
98
test-junitxml:
111
 
        $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=main,$(PLUGIN_TESTS) --subunit | subunit2junitxml --no-passthrough > junit-format.xml
 
99
        ( cd tests && $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=main,$(PLUGIN_TESTS) --subunit | subunit2junitxml --no-passthrough > junit-format.xml )
112
100
 
113
101
test-big:
114
 
        $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=big
 
102
        ( cd tests && $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=big )
115
103
 
116
104
test-big-junitxml:
117
 
        $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=big --subunit | subunit2junitxml --no-passthrough > junit-format-big.xml
 
105
        ( cd tests && $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=big --subunit | subunit2junitxml --no-passthrough > junit-format-big.xml )
118
106
 
119
107
test-plugins:
120
 
        $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=$(PLUGIN_TESTS)
121
 
 
122
 
distclean-local:
123
 
        rm -rf var
 
108
        ( cd tests && $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=$(PLUGIN_TESTS) )
 
109
 
 
110
distclean-local: nukevar
 
111
 
 
112
nukevar:
 
113
        rm -rf tests/var
 
114
 
 
115
.PHONY: nukevar