~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/include.am

  • Committer: Brian Aker
  • Date: 2010-11-08 18:54:26 UTC
  • mto: (1921.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 1916.
  • Revision ID: brian@tangent.org-20101108185426-fymkf2xnelupf11x
Rename lock methods to be style + well make sense.

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
3
4
#
4
5
# This library is free software; you can redistribute it and/or
5
6
# modify it under the terms of the GNU Library General Public
13
14
#
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
 
# MA 02111-1307, USA
 
17
# Software Foundation, Inc., 51 Franklin Place - Suite 330, Boston,
 
18
# MA 02110-1301, USA
18
19
 
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}
31
 
 
32
 
TEST_LDADD=             drizzled/internal/libinternal.la \
33
 
                        $(LIBINTL)
34
30
 
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=$$$$
41
39
 
42
40
EXTRA_DIST += \
43
41
        $(EXTRA_SCRIPTS) \
 
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 \
 
54
        tests/strip-valgrind
54
55
 
55
 
check: test-drizzle
 
56
check-local: test-drizzle
56
57
 
57
58
# dtr - a shortcut for executing test-run.pl
58
59
tests/dtr:
86
87
# will then calculate the various port numbers it needs from this,
87
88
# making sure each user use different ports.
88
89
 
89
 
test: test-drizzle
 
90
test: check
90
91
 
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))
96
97
 
97
98
test-drizzle:
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))
99
100
 
100
101
test-valgrind:
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)
102
103
 
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)
105
106
 
106
107
test-junitxml:
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 )
108
109
 
109
110
test-big:
110
111
        ( cd tests && $(TEST_RUN) $(TEST_RUN_EXTRA_OPTIONS) --fast --force --suite=big )