~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/include.am

LOCK_open to boost.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# vim:ft=automake
2
2
# Copyright (C) 2000-2006 MySQL AB
3
 
# Copyright (c) 2010 Monty Taylor
4
3
#
5
4
# This library is free software; you can redistribute it and/or
6
5
# modify it under the terms of the GNU Library General Public
14
13
#
15
14
# You should have received a copy of the GNU Library General Public
16
15
# License along with this library; if not, write to the Free
17
 
# Software Foundation, Inc., 51 Franklin Place - Suite 330, Boston,
18
 
# MA 02110-1301, USA
 
16
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
 
17
# MA 02111-1307, USA
19
18
 
20
19
benchdir_root=          $(prefix)
21
20
testdir =               $(benchdir_root)/mysql-test
23
22
GENSCRIPTS =            tests/dtr tests/mtr tests/test-run
24
23
PRESCRIPTS =            tests/test-run.pl tests/stress-test.pl
25
24
PLUGIN_TESTS =          $(pandora_plugin_test_list)
26
 
NORMAL_TESTS =          main,jp,tamil,regression,$(PLUGIN_TESTS)
27
 
ALL_TESTS =             main,big,jp,tamil,regression,$(PLUGIN_TESTS)
 
25
ALL_TESTS =             main,big,$(PLUGIN_TESTS)
28
26
noinst_SCRIPTS =        $(GENSCRIPTS) $(PRESCRIPTS)
29
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} ${BOOST_LIBS}
 
31
 
 
32
TEST_LDADD=             drizzled/internal/libinternal.la \
 
33
                        $(LIBINTL)
30
34
 
31
35
TEST_RUN= $(PERL) -I../$(top_srcdir)/tests/lib \
32
36
                ../${top_srcdir}/tests/test-run.pl \
35
39
                --vardir=../${top_builddir}/tests/var \
36
40
                --suitepath=../${top_srcdir}/plugin \
37
41
                --testdir=../${top_srcdir}/tests \
38
 
                --dtr-build-thread=$$$$
39
 
 
40
 
TEST_RUN_MEM= $(PERL) -I../$(top_srcdir)/tests/lib \
41
 
              ../${top_srcdir}/tests/test-run.pl \
42
 
              --top-srcdir=../${top_srcdir} \
43
 
              --top-builddir=../${top_builddir} \
44
 
              --mem \
45
 
              --suitepath=../${top_srcdir}/plugin \
46
 
              --testdir=../${top_srcdir}/tests \
47
 
              --dtr-build-thread=$$$$
 
42
                --mtr-build-thread=$$$$
48
43
 
49
44
EXTRA_DIST += \
50
45
        $(EXTRA_SCRIPTS) \
51
46
        ${srcdir}/tests/README.stress \
 
47
        ${srcdir}/tests/resolve-stack \
52
48
        ${srcdir}/tests/suite \
53
49
        ${srcdir}/tests/t \
54
50
        ${srcdir}/tests/include/*.inc \
59
55
        ${srcdir}/tests/r/pbxt/*result \
60
56
        ${srcdir}/tests/std_data \
61
57
        ${srcdir}/tests/lib/*.pl \
62
 
        ${srcdir}/tests/lib/My/*.pm \
63
 
        tests/strip-valgrind
 
58
        ${srcdir}/tests/lib/My/*.pm
64
59
 
65
60
check-local: test-drizzle
66
61
 
104
99
test-all:
105
100
        ( cd tests && $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=$(ALL_TESTS))
106
101
 
107
 
test-mem:
108
 
        ( cd tests && $(TEST_RUN_MEM) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=$(NORMAL_TESTS))
109
 
 
110
102
test-drizzle:
111
 
        ( cd tests && $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=$(NORMAL_TESTS))
 
103
        ( cd tests && $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=main,$(PLUGIN_TESTS))
112
104
 
113
105
test-valgrind:
114
 
        ( cd tests && $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --valgrind --force --suite=$(NORMAL_TESTS) && python strip-valgrind)
 
106
        ( cd tests && $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --valgrind --force --suite=main,$(PLUGIN_TESTS))
115
107
 
116
108
test-valgrind-suppressions:
117
 
        ( 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)
 
109
        ( cd tests && $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --valgrind --valgrind-option='--gen-suppressions=all' --valgrind-option='--show-reachable=yes' --force --suite=main,$(PLUGIN_TESTS))
118
110
 
119
111
test-junitxml:
120
 
        ( cd tests && $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=$(NORMAL_TESTS) --subunit | subunit2junitxml --no-passthrough > junit-format.xml )
 
112
        ( cd tests && $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=main,$(PLUGIN_TESTS) --subunit | subunit2junitxml --no-passthrough > junit-format.xml )
121
113
 
122
114
test-big:
123
115
        ( cd tests && $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=big )