~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to Makefile.am

  • Committer: Brian Aker
  • Date: 2009-03-12 20:00:28 UTC
  • mfrom: (929.1.7 merge)
  • Revision ID: brian@tangent.org-20090312200028-lqywwjv6p5kwin1w
Merge from Brian (dead code in parser, change default scheduler)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2000-2006 MySQL AB
 
1
# test
 
2
# # Copyright (C) 2000-2006 MySQL AB
2
3
3
4
# This program is free software; you can redistribute it and/or modify
4
5
# it under the terms of the GNU General Public License as published by
13
14
# along with this program; if not, write to the Free Software
14
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
15
16
 
 
17
ACLOCAL_AMFLAGS = -I m4 --force
 
18
 
16
19
# Process this file with automake to create Makefile.in
17
 
 
18
 
if BUILD_DBUG
19
 
  d_dbug = dbug
 
20
if BUILD_GETTEXT
 
21
  po=po
20
22
endif
21
23
 
22
 
SUBDIRS =               . include \
23
 
                        sql-common vio \
24
 
                        strings mysys $(d_dbug) \
25
 
                        extra \
26
 
                        libdrizzle client storage plugin \
27
 
                        sql \
28
 
                        mysql-test support-files
29
 
 
30
 
DIST_SUBDIRS =          $(SUBDIRS) mysys/tests strings/tests
31
 
 
32
 
DISTCLEANFILES = ac_available_languages_fragment
33
 
 
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
 
24
SUBDIRS = ${po} . \
 
25
          gnulib \
 
26
          mystrings \
 
27
          mysys \
 
28
          extra \
 
29
          libdrizzleclient \
 
30
          client \
 
31
          drizzled/serialize \
 
32
          storage \
 
33
          plugin \
 
34
          drizzled \
 
35
          tests \
 
36
          support-files
 
37
 
 
38
EXTRA_DIST = config/config.rpath m4/gnulib-cache.m4
 
39
CLEANFILES = drizzled/configmake.h
 
40
DISTCLEANFILES = ac_available_languages_fragment po/POTFILES.in
 
41
MAINTAINERCLEANFILES = autom4te.cache
 
42
 
 
43
BUILT_SOURCES = drizzled/configmake.h
 
44
noinst_HEADERS = drizzled/configmake.h
 
45
 
 
46
# Create empty datadir 
 
47
install-data-local:
 
48
        $(mkinstalldirs) $(DESTDIR)$(localstatedir) 
 
49
        @if test `id -u` = 0 ; then \
 
50
                if test -n "$(GROUPADD)" && test -n "$(USERADD)"; then \
 
51
                        $(GROUPADD) $(DRIZZLED_USER) ;\
 
52
                        $(USERADD) -g $(DRIZZLED_USER) $(DRIZZLED_USER) ;\
 
53
                        chown $(DRIZZLED_USER) $(DESTDIR)$(localstatedir) ;\
 
54
                fi \
 
55
        fi
 
56
 
 
57
 
 
58
.PHONY: test \
 
59
    test-force \
 
60
    test-full \
 
61
    test-force-full \
 
62
    test-force-mem \
 
63
    test-pl \
 
64
    test-force-pl \
 
65
    test-full-pl \
 
66
    test-force-full-pl \
 
67
    test-force-pl-mem \
 
68
    test-ps test-nr \
 
69
    test-pr test-ns \
 
70
    test-binlog-statement \
 
71
    test-ext-funcs \
 
72
    test-ext-rpl \
 
73
    test-ext-jp \
 
74
    test-ext-stress \
 
75
    test-ext \
 
76
    test-fast \
 
77
    test-fast-cursor \
 
78
    test-fast-view \
 
79
    test-full-qa \
 
80
    indent
49
81
 
50
82
# Target 'test' will run the regression test suite using the built server.
51
83
#
52
84
# If you are running in a shared environment, users can avoid clashing
53
85
# port numbers by setting individual small numbers 1-100 to the
54
 
# environment variable MTR_BUILD_THREAD. The script "mysql-test-run"
 
86
# environment variable MTR_BUILD_THREAD. The script "test-run"
55
87
# will then calculate the various port numbers it needs from this,
56
88
# making sure each user use different ports.
57
89
 
58
 
test-ps:
59
 
        cd mysql-test ; \
60
 
            @PERL@ ./mysql-test-run.pl $(force) --ps-protocol --mysqld=--binlog-format=mixed
61
 
 
62
90
test-nr:
63
 
        cd mysql-test ; \
64
 
            @PERL@ ./mysql-test-run.pl $(force) --mysqld=--binlog-format=row
65
 
 
66
 
test-pr:
67
 
        cd mysql-test ; \
68
 
            @PERL@ ./mysql-test-run.pl $(force) $(mem) --ps-protocol --mysqld=--binlog-format=row
 
91
        cd tests ; \
 
92
          ./test-run $(force) --mysqld=--binlog-format=row
69
93
 
70
94
test-ns:
71
 
        cd mysql-test ; \
72
 
            @PERL@ ./mysql-test-run.pl $(force) $(mem) --mysqld=--binlog-format=mixed
 
95
        cd tests ; \
 
96
          ./test-run $(force) $(mem) --mysqld=--binlog-format=mixed
73
97
 
74
98
test-binlog-statement:
75
 
        cd mysql-test ; \
76
 
            @PERL@ ./mysql-test-run.pl $(force) --mysqld=--binlog-format=statement
 
99
        cd tests ; \
 
100
          ./test-run $(force) --mysqld=--binlog-format=statement
77
101
 
78
102
test: test-drizzle
79
103
 
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 mysql-test ; MTR_BUILD_THREAD=auto \
96
 
            @PERL@ ./mysql-test-run.pl --force --comment=funcs1_ps --ps-protocol --suite=funcs_1
97
 
        -cd mysql-test ; MTR_BUILD_THREAD=auto \
98
 
            @PERL@ ./mysql-test-run.pl --force --comment=funcs2 --suite=funcs_2
99
 
        -cd mysql-test ; MTR_BUILD_THREAD=auto \
100
 
            @PERL@ ./mysql-test-run.pl --force --comment=rpl --suite=rpl
101
 
        -if [ -d mysql-test/suite/nist ] ; then \
102
 
          cd mysql-test ; MTR_BUILD_THREAD=auto \
103
 
              @PERL@ ./mysql-test-run.pl --comment=NIST+normal --force --suite=nist ; \
104
 
        fi
105
 
        -if [ -d mysql-test/suite/nist ] ; then \
106
 
          cd mysql-test ; MTR_BUILD_THREAD=auto \
107
 
              @PERL@ ./mysql-test-run.pl --comment=NIST+ps --force --suite=nist --ps-protocol ; \
108
 
        fi
109
 
        -cd mysql-test ; MTR_BUILD_THREAD=auto \
110
 
            @PERL@ ./mysql-test-run.pl --force --comment=stress --suite=stress
111
 
 
112
 
# Re-enable the "jp" suite when bug#28563 is fixed
113
 
#       -cd mysql-test ; MTR_BUILD_THREAD=auto \
114
 
#           @PERL@ ./mysql-test-run.pl --force --comment=jp --suite=jp
115
 
 
116
 
test-bt-debug:
117
 
        -cd mysql-test ; MTR_BUILD_THREAD=auto \
118
 
            @PERL@ ./mysql-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 mysql-test ; \
130
 
            @PERL@ ./mysql-test-run.pl --force --suite=funcs_1 ; \
131
 
            @PERL@ ./mysql-test-run.pl --force --suite=funcs_2
132
 
 
133
 
test-ext-rpl:
134
 
        cd mysql-test ; \
135
 
            @PERL@ ./mysql-test-run.pl --force --suite=rpl
136
 
 
137
 
test-ext-jp:
138
 
        cd mysql-test ; \
139
 
            @PERL@ ./mysql-test-run.pl --force --suite=jp
140
 
 
141
 
test-ext-stress:
142
 
        cd mysql-test ; \
143
 
            @PERL@ ./mysql-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 mysql-test ; \
149
 
            @PERL@ ./mysql-test-run.pl $(subset) --force --skip-innodb --skip-im --skip-rpl ; \
150
 
            @PERL@ ./mysql-test-run.pl $(subset) --force --suite=funcs_1 --do-test=myisam ; \
151
 
            @PERL@ ./mysql-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
 
 
167
104
test-drizzle:
168
 
        cd mysql-test ; \
169
 
         @PERL@ ./mysql-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
 
105
        cd tests ; \
 
106
        $(MAKE) $(AM_MAKEFLAGS) test 
 
107
 
 
108
doxygen:
 
109
        doxygen Doxyfile
 
110
 
 
111
indent:
 
112
        for f in `find ${top_srcdir} -type f | grep -v innobase |\
 
113
                  ${EGREP} '\.(cc|c|h)$$' ` ; do \
 
114
            uncrustify -f $$f -c ${top_srcdir}/config/uncrustify.cfg \
 
115
               -o indentoutput.tmp && mv indentoutput.tmp "$$f" ;\
 
116
        done
 
117
 
 
118
drizzled/configmake.h: ${top_srcdir}/Makefile.in
 
119
        @echo "Making $@"
 
120
        @rm -f $@-t $@
 
121
        @{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
 
122
          echo '#define PREFIX "$(prefix)"'; \
 
123
          echo '#define EXEC_PREFIX "$(exec_prefix)"'; \
 
124
          echo '#define BINDIR "$(bindir)"'; \
 
125
          echo '#define SBINDIR "$(sbindir)"'; \
 
126
          echo '#define LIBEXECDIR "$(libexecdir)"'; \
 
127
          echo '#define DATAROOTDIR "$(datarootdir)"'; \
 
128
          echo '#define DATADIR "$(datadir)"'; \
 
129
          echo '#define SYSCONFDIR "$(sysconfdir)"'; \
 
130
          echo '#define SHAREDSTATEDIR "$(sharedstatedir)"'; \
 
131
          echo '#define LOCALSTATEDIR "$(localstatedir)"'; \
 
132
          echo '#define INCLUDEDIR "$(includedir)"'; \
 
133
          echo '#define OLDINCLUDEDIR "$(oldincludedir)"'; \
 
134
          echo '#define DOCDIR "$(docdir)"'; \
 
135
          echo '#define INFODIR "$(infodir)"'; \
 
136
          echo '#define HTMLDIR "$(htmldir)"'; \
 
137
          echo '#define DVIDIR "$(dvidir)"'; \
 
138
          echo '#define PDFDIR "$(pdfdir)"'; \
 
139
          echo '#define PSDIR "$(psdir)"'; \
 
140
          echo '#define LIBDIR "$(libdir)"'; \
 
141
          echo '#define LISPDIR "$(lispdir)"'; \
 
142
          echo '#define LOCALEDIR "$(localedir)"'; \
 
143
          echo '#define MANDIR "$(mandir)"'; \
 
144
          echo '#define MANEXT "$(manext)"'; \
 
145
          echo '#define PKGDATADIR "$(pkgdatadir)"'; \
 
146
          echo '#define PKGINCLUDEDIR "$(pkgincludedir)"'; \
 
147
          echo '#define PKGLIBDIR "$(pkglibdir)"'; \
 
148
          echo '#define PKGLIBEXECDIR "$(pkglibexecdir)"'; \
 
149
          echo '#define PKGPLUGINDIR "$(pkgplugindir)"'; \
 
150
        } | sed '/""/d' > $@-t
 
151
        @if diff $@-t $@ >/dev/null 2>&1 ; then \
 
152
          rm @-t ; \
 
153
        else \
 
154
          mv $@-t $@ ; \
 
155
        fi
 
156
 
 
157
if HAVE_LCOV
 
158
 
 
159
lcov: lcov-clean test lcov/index.html
 
160
 
 
161
lcov/drizzle.output: drizzled/drizzled
 
162
        mkdir -p lcov
 
163
        ${LCOV} --directory ${top_srcdir}/lcov --capture --output-file lcov/drizzle.output
 
164
 
 
165
lcov/index.html: lcov/drizzle.output
 
166
        ${GENHTML} -o lcov lcov/drizzle.output
 
167
 
 
168
lcov-clean:
 
169
        ln -fs pars/pars0lex.l ${top_srcdir}/storage/innobase/pars0lex.l
 
170
        ln -fs pars/lexyy.c ${top_srcdir}/storage/innobase/lexyy.c
 
171
        ln -fs pars/pars0grm.c ${top_srcdir}/storage/innobase/pars0grm.c
 
172
        ln -fs pars/pars0grm.y ${top_srcdir}/storage/innobase/pars0grm.y
 
173
 
 
174
        ${LCOV} --directory ${top_srcdir} --zerocounters
 
175
 
 
176
endif