~ubuntu-branches/ubuntu/vivid/drizzle/vivid

« back to all changes in this revision

Viewing changes to tests/sql-bench/Makefile.am

  • Committer: Package Import Robot
  • Author(s): Dmitrijs Ledkovs
  • Date: 2013-10-29 15:43:40 UTC
  • mfrom: (20.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20131029154340-j36v7gxq9tm1gi5f
Tags: 1:7.2.3-2ubuntu1
* Merge from debian, remaining changes:
  - Link against boost_system because of boost_thread.
  - Add required libs to message/include.am
  - Add upstart job and adjust init script to be upstart compatible.
  - Disable -floop-parallelize-all due to gcc-4.8/4.9 compiler ICE
    http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57732

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2000-2003, 2005 MySQL AB
2
 
#
3
 
# This library is free software; you can redistribute it and/or
4
 
# modify it under the terms of the GNU Library General Public
5
 
# License as published by the Free Software Foundation; version 2
6
 
# of the License.
7
 
#
8
 
# This library is distributed in the hope that it will be useful,
9
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11
 
# Library General Public License for more details.
12
 
#
13
 
# You should have received a copy of the GNU Library General Public
14
 
# License along with this library; if not, write to the Free
15
 
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
16
 
# MA 02111-1307, USA
17
 
 
18
 
## Process this file with automake to create Makefile.in
19
 
 
20
 
benchdir_root=          $(prefix)
21
 
benchdir =              $(benchdir_root)/sql-bench
22
 
bench_SCRIPTS =         test-ATIS test-connect test-create test-insert \
23
 
                        test-big-tables test-select test-wisconsin \
24
 
                        test-alter-table test-transactions \
25
 
                        graph-compare-results \
26
 
                        bench-init.pl compare-results run-all-tests \
27
 
                        server-cfg crash-me copy-db innotest1 innotest1a \
28
 
                        innotest1b innotest2 innotest2a innotest2b \
29
 
                        bench-count-distinct
30
 
CLEANFILES =            $(bench_SCRIPTS)
31
 
EXTRA_SCRIPTS =         test-ATIS.sh test-connect.sh test-create.sh \
32
 
                        test-insert.sh test-big-tables.sh test-select.sh \
33
 
                        test-alter-table.sh test-wisconsin.sh \
34
 
                        test-transactions.sh \
35
 
                        bench-init.pl.sh compare-results.sh server-cfg.sh \
36
 
                        run-all-tests.sh crash-me.sh copy-db.sh \
37
 
                        graph-compare-results.sh innotest1.sh innotest1a.sh \
38
 
                        innotest1b.sh innotest2.sh innotest2a.sh innotest2b.sh \
39
 
                        bench-count-distinct.sh
40
 
EXTRA_DIST =            $(EXTRA_SCRIPTS)
41
 
 
42
 
dist-hook:
43
 
        mkdir -p $(distdir)/Data/ATIS $(distdir)/Data/Wisconsin \
44
 
                 $(distdir)/limits $(distdir)/Comments
45
 
        for i in $(srcdir)/Data/ATIS/*.* ; do $(INSTALL_DATA) $$i $(distdir)/Data/ATIS ; done
46
 
        for i in $(srcdir)/Data/Wisconsin/*.* ; do $(INSTALL_DATA) $$i $(distdir)/Data/Wisconsin ; done
47
 
        for i in $(srcdir)/limits/*.* ; do $(INSTALL_DATA) $$i $(distdir)/limits; done
48
 
        for i in $(srcdir)/Comments/*.* ; do $(INSTALL_DATA) $$i $(distdir)/Comments; done
49
 
 
50
 
install-data-local:
51
 
        $(mkinstalldirs) \
52
 
                 $(DESTDIR)$(benchdir)/Data \
53
 
                 $(DESTDIR)$(benchdir)/Data/ATIS \
54
 
                 $(DESTDIR)$(benchdir)/Data/Wisconsin \
55
 
                 $(DESTDIR)$(benchdir)/limits \
56
 
                 $(DESTDIR)$(benchdir)/Comments
57
 
        $(INSTALL_DATA) $(srcdir)/README  $(DESTDIR)$(benchdir)
58
 
        for i in $(srcdir)/Data/ATIS/*.* ; do $(INSTALL_DATA) $$i $(DESTDIR)$(benchdir)/Data/ATIS ; done
59
 
        for i in $(srcdir)/Data/Wisconsin/*.* ; do $(INSTALL_DATA) $$i $(DESTDIR)$(benchdir)/Data/Wisconsin ; done
60
 
        for i in $(srcdir)/limits/*.* ; do $(INSTALL_DATA) $$i $(DESTDIR)$(benchdir)/limits; done
61
 
        for i in $(srcdir)/Comments/*.* ; do $(INSTALL_DATA) $$i $(DESTDIR)$(benchdir)/Comments; done
62
 
 
63
 
uninstall-local:
64
 
        @RM@ -f -r $(DESTDIR)$(benchdir)
65
 
 
66
 
SUFFIXES = .sh
67
 
 
68
 
.sh:
69
 
        @RM@ -f $@ $@-t
70
 
        @SED@ \
71
 
          -e 's!@''benchdir''@!$(benchdir)!g' \
72
 
          -e 's!@''bindir''@!$(bindir)!g' \
73
 
          -e 's!@''scriptdir''@!$(bindir)!g' \
74
 
          -e 's!@''prefix''@!$(prefix)!g' \
75
 
          -e 's!@''datadir''@!$(datadir)!g' \
76
 
          -e 's!@''localstatedir''@!$(localstatedir)!g' \
77
 
          -e 's!@''libexecdir''@!$(libexecdir)!g' \
78
 
          -e 's!@''PERL''@!@PERL@!' \
79
 
          -e 's!@''VERSION''@!@VERSION@!' \
80
 
          -e 's!@''MYSQL_SERVER_SUFFIX''@!@MYSQL_SERVER_SUFFIX@!' \
81
 
          $< > $@-t
82
 
        @CHMOD@ +x $@-t
83
 
        @MV@ $@-t $@
84
 
 
85
 
# Don't update the files from bitkeeper
86
 
%::SCCS/s.%