~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to Makefile.am

Removed/replaced DBUG symbols and standardized TRUE/FALSE

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
# along with this program; if not, write to the Free Software
14
14
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
15
15
 
16
 
ACLOCAL_AMFLAGS = -I m4
17
 
 
18
16
# Process this file with automake to create Makefile.in
19
 
if BUILD_GETTEXT
20
 
  po=po
 
17
 
 
18
if BUILD_DBUG
 
19
  d_dbug = dbug
21
20
endif
22
21
 
23
 
SUBDIRS = ${po} . vio \
24
 
          mystrings \
25
 
          mysys \
26
 
          extra \
27
 
          libdrizzle \
28
 
          client \
29
 
          storage \
30
 
          plugin \
31
 
          drizzled \
32
 
          tests \
33
 
          support-files
34
 
 
35
 
EXTRA_DIST = config/config.rpath
 
22
SUBDIRS =               . include \
 
23
                        vio \
 
24
                        strings mysys $(d_dbug) \
 
25
                        extra \
 
26
                        libdrizzle client storage plugin \
 
27
                        server \
 
28
                        tests support-files
 
29
 
 
30
DIST_SUBDIRS =          $(SUBDIRS) mysys/tests strings/tests
 
31
 
36
32
DISTCLEANFILES = ac_available_languages_fragment
37
33
 
38
 
# Create empty datadir 
39
 
install-data-local:
40
 
        $(mkinstalldirs) $(DESTDIR)$(localstatedir) 
41
 
        @if test `id -u` = 0 ; then \
42
 
                chown $(MYSQLD_USER) $(DESTDIR)$(localstatedir) ;\
43
 
        fi
44
 
 
45
 
distclean-local:
46
 
        @RM@ -r -f autom4te.cache
47
 
 
48
 
.PHONY: test \
49
 
    test-force \
50
 
    test-full \
51
 
    test-force-full \
52
 
    test-force-mem \
53
 
    test-pl \
54
 
    test-force-pl \
55
 
    test-full-pl \
56
 
    test-force-full-pl \
57
 
    test-force-pl-mem \
58
 
    test-ps test-nr \
59
 
    test-pr test-ns \
60
 
    test-binlog-statement \
61
 
    test-ext-funcs \
62
 
    test-ext-rpl \
63
 
    test-ext-jp \
64
 
    test-ext-stress \
65
 
    test-ext \
66
 
    test-fast \
67
 
    test-fast-cursor \
68
 
    test-fast-view \
69
 
    test-full-qa
 
34
# Create permission databases
 
35
init-db:                all
 
36
        $(top_builddir)/scripts/mysql_install_db
 
37
 
 
38
bin-dist:               all
 
39
        $(top_builddir)/scripts/make_binary_distribution @MAKE_BINARY_DISTRIBUTION_OPTIONS@
 
40
 
 
41
.PHONY: init-db bin-dist \
 
42
  test    test-force    test-full    test-force-full    test-force-mem \
 
43
  test-pl test-force-pl test-full-pl test-force-full-pl test-force-pl-mem \
 
44
  test-ps test-nr test-pr test-ns test-binlog-statement \
 
45
  test-ext-funcs test-ext-rpl test-ext-jp \
 
46
  test-ext-stress test-ext test-embedded \
 
47
  test-fast test-fast-cursor test-fast-view test-fast-prepare \
 
48
  test-full-qa
70
49
 
71
50
# Target 'test' will run the regression test suite using the built server.
72
51
#
73
52
# If you are running in a shared environment, users can avoid clashing
74
53
# port numbers by setting individual small numbers 1-100 to the
75
 
# environment variable MTR_BUILD_THREAD. The script "test-run"
 
54
# environment variable MTR_BUILD_THREAD. The script "drizzle-test-run"
76
55
# will then calculate the various port numbers it needs from this,
77
56
# making sure each user use different ports.
78
57
 
 
58
test-ps:
 
59
        cd tests ; \
 
60
            @PERL@ ./drizzle-test-run.pl $(force) --ps-protocol --mysqld=--binlog-format=mixed
 
61
 
79
62
test-nr:
80
63
        cd tests ; \
81
 
          ./test-run $(force) --mysqld=--binlog-format=row
 
64
            @PERL@ ./drizzle-test-run.pl $(force) --mysqld=--binlog-format=row
 
65
 
 
66
test-pr:
 
67
        cd tests ; \
 
68
            @PERL@ ./drizzle-test-run.pl $(force) $(mem) --ps-protocol --mysqld=--binlog-format=row
82
69
 
83
70
test-ns:
84
71
        cd tests ; \
85
 
          ./test-run $(force) $(mem) --mysqld=--binlog-format=mixed
 
72
            @PERL@ ./drizzle-test-run.pl $(force) $(mem) --mysqld=--binlog-format=mixed
86
73
 
87
74
test-binlog-statement:
88
75
        cd tests ; \
89
 
          ./test-run $(force) --mysqld=--binlog-format=statement
 
76
            @PERL@ ./drizzle-test-run.pl $(force) --mysqld=--binlog-format=statement
90
77
 
91
78
test: test-drizzle
92
79
 
 
80
test-old:       test-ns test-pr
 
81
 
 
82
test-full:      test test-nr test-ps
 
83
 
 
84
test-force:
 
85
        $(MAKE) force=--force test
 
86
 
 
87
test-force-full:
 
88
        $(MAKE) force=--force test-full
 
89
 
 
90
#used by autopush.pl to run memory based tests
 
91
test-force-mem:
 
92
        $(MAKE) force=--force mem=--mem test
 
93
 
 
94
test-bt:
 
95
        -cd tests ; MTR_BUILD_THREAD=auto \
 
96
            @PERL@ ./drizzle-test-run.pl --force --comment=funcs1_ps --ps-protocol --suite=funcs_1
 
97
        -cd tests ; MTR_BUILD_THREAD=auto \
 
98
            @PERL@ ./drizzle-test-run.pl --force --comment=funcs2 --suite=funcs_2
 
99
        -cd tests ; MTR_BUILD_THREAD=auto \
 
100
            @PERL@ ./drizzle-test-run.pl --force --comment=rpl --suite=rpl
 
101
        -if [ -d test/suite/nist ] ; then \
 
102
          cd tests ; MTR_BUILD_THREAD=auto \
 
103
              @PERL@ ./drizzle-test-run.pl --comment=NIST+normal --force --suite=nist ; \
 
104
        fi
 
105
        -if [ -d test/suite/nist ] ; then \
 
106
          cd tests ; MTR_BUILD_THREAD=auto \
 
107
              @PERL@ ./drizzle-test-run.pl --comment=NIST+ps --force --suite=nist --ps-protocol ; \
 
108
        fi
 
109
        -cd tests ; MTR_BUILD_THREAD=auto \
 
110
            @PERL@ ./drizzle-test-run.pl --force --comment=stress --suite=stress
 
111
 
 
112
# Re-enable the "jp" suite when bug#28563 is fixed
 
113
#       -cd tests ; MTR_BUILD_THREAD=auto \
 
114
#           @PERL@ ./drizzle-test-run.pl --force --comment=jp --suite=jp
 
115
 
 
116
test-bt-debug:
 
117
        -cd tests ; MTR_BUILD_THREAD=auto \
 
118
            @PERL@ ./drizzle-test-run.pl --comment=debug  --force --timer \
 
119
                --skip-rpl --report-features
 
120
 
 
121
# Keep these for a while
 
122
test-pl:        test
 
123
test-full-pl:   test-full
 
124
test-force-pl:  test-force
 
125
test-force-pl-mem:  test-force-mem
 
126
test-force-full-pl: test-force-full
 
127
 
 
128
test-ext-funcs:
 
129
        cd tests ; \
 
130
            @PERL@ ./drizzle-test-run.pl --force --suite=funcs_1 ; \
 
131
            @PERL@ ./drizzle-test-run.pl --force --suite=funcs_2
 
132
 
 
133
test-ext-rpl:
 
134
        cd tests ; \
 
135
            @PERL@ ./drizzle-test-run.pl --force --suite=rpl
 
136
 
 
137
test-ext-jp:
 
138
        cd tests ; \
 
139
            @PERL@ ./drizzle-test-run.pl --force --suite=jp
 
140
 
 
141
test-ext-stress:
 
142
        cd tests ; \
 
143
            @PERL@ ./drizzle-test-run.pl --force --big-test --suite=stress
 
144
 
 
145
test-ext:       test-ext-funcs test-ext-rpl test-ext-jp test-ext-stress
 
146
 
 
147
test-fast:
 
148
        cd tests ; \
 
149
            @PERL@ ./drizzle-test-run.pl $(subset) --force --skip-innodb --skip-im --skip-rpl ; \
 
150
            @PERL@ ./drizzle-test-run.pl $(subset) --force --suite=funcs_1 --do-test=myisam ; \
 
151
            @PERL@ ./drizzle-test-run.pl $(subset) --force --suite=stress --do-test=ddl_myisam 
 
152
 
 
153
test-fast-view:
 
154
        $(MAKE) subset=--view-protocol test-fast
 
155
 
 
156
test-fast-cursor:
 
157
        $(MAKE) subset=--cursor-protocol test-fast
 
158
 
 
159
test-fast-prepare:
 
160
        $(MAKE) subset=--ps-protocol test-fast
 
161
 
 
162
test-full-qa:
 
163
        $(MAKE) force=--force test-pr \
 
164
            test-binlog-statement test-ext test-fast-view \
 
165
                test-fast-cursor 
 
166
 
93
167
test-drizzle:
94
168
        cd tests ; \
95
 
        $(MAKE) $(AM_MAKEFLAGS) test 
96
 
 
97
 
doxygen:
98
 
        doxygen Doxyfile
 
169
        @PERL@ ./drizzle-test-run.pl --fast --reorder --force \
 
170
                join_crash \
 
171
                join_nested \
 
172
                join_outer_innodb \
 
173
                delete \
 
174
                join_outer \
 
175
                join \
 
176
                subselect \
 
177
                insert \
 
178
                select \
 
179
                update \
 
180
                information_schema \
 
181
                mysqlslap \
 
182
                lock \
 
183
                lock_tables_lost_commit