Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: mysql.eclass
Date: Mon, 01 Feb 2010 01:07:19
Message-Id: E1Nbkkv-0000mU-9q@stork.gentoo.org
1 robbat2 10/02/01 01:07:09
2
3 Modified: mysql.eclass
4 Log:
5 Fixup disabling tests for 5.1 and also gcc-version usage.
6
7 Revision Changes Path
8 1.127 eclass/mysql.eclass
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/mysql.eclass?rev=1.127&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/mysql.eclass?rev=1.127&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/mysql.eclass?r1=1.126&r2=1.127
13
14 Index: mysql.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v
17 retrieving revision 1.126
18 retrieving revision 1.127
19 diff -p -w -b -B -u -u -r1.126 -r1.127
20 --- mysql.eclass 31 Jan 2010 05:47:21 -0000 1.126
21 +++ mysql.eclass 1 Feb 2010 01:07:08 -0000 1.127
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2009 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.126 2010/01/31 05:47:21 robbat2 Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.127 2010/02/01 01:07:08 robbat2 Exp $
27
28 # @ECLASS: mysql.eclass
29 # @MAINTAINER:
30 @@ -18,7 +18,7 @@
31 WANT_AUTOCONF="latest"
32 WANT_AUTOMAKE="latest"
33
34 -inherit eutils flag-o-matic gnuconfig autotools mysql_fx versionator
35 +inherit eutils flag-o-matic gnuconfig autotools mysql_fx versionator toolchain-funcs
36
37 # Shorten the path because the socket path length must be shorter than 107 chars
38 # and we will run a mysql server during test phase
39 @@ -209,11 +209,42 @@ mysql_version_is_at_least "5.1.26" \
40 # @DESCRIPTION:
41 # Helper function to disable specific tests.
42 mysql_disable_test() {
43 - local testname="${1}" ; shift
44 - local reason="${@}"
45 - local mysql_disable_file="${S}/mysql-test/t/disabled.def"
46 + local rawtestname testname testsuite reason mysql_disable_file
47 + rawtestname="${1}" ; shift
48 + reason="${@}"
49 + ewarn "test '${rawtestname}' disabled: '${reason}'"
50 +
51 + testsuite="${rawtestname/.*}"
52 + testname="${rawtestname/*.}"
53 + mysql_disable_file="${S}/mysql-test/t/disabled.def"
54 + einfo "rawtestname=${rawtestname} testname=${testname} testsuite=${testsuite}"
55 echo ${testname} : ${reason} >> "${mysql_disable_file}"
56 - ewarn "test '${testname}' disabled: '${reason}'"
57 +
58 + # ${S}/mysql-tests/t/disabled.def
59 + #
60 + # ${S}/mysql-tests/suite/federated/disabled.def
61 + #
62 + # ${S}/mysql-tests/suite/jp/t/disabled.def
63 + # ${S}/mysql-tests/suite/ndb/t/disabled.def
64 + # ${S}/mysql-tests/suite/rpl/t/disabled.def
65 + # ${S}/mysql-tests/suite/parts/t/disabled.def
66 + # ${S}/mysql-tests/suite/rpl_ndb/t/disabled.def
67 + # ${S}/mysql-tests/suite/ndb_team/t/disabled.def
68 + # ${S}/mysql-tests/suite/binlog/t/disabled.def
69 + # ${S}/mysql-tests/suite/innodb/t/disabled.def
70 + if [ -n "${testsuite}" ]; then
71 + for mysql_disable_file in \
72 + ${S}/mysql-test/suite/${testsuite}/disabled.def \
73 + ${S}/mysql-test/suite/${testsuite}/t/disabled.def \
74 + FAILED ; do
75 + [ -f "${mysql_disable_file}" ] && break
76 + done
77 + if [ "${mysql_disabled_file}" != "FAILED" ]; then
78 + echo "${testname} : ${reason}" >> "${mysql_disable_file}"
79 + else
80 + ewarn "Could not find testsuite disabled.def location for ${rawtestname}"
81 + fi
82 + fi
83 }
84
85 # @FUNCTION: mysql_init_vars
86 @@ -555,7 +586,7 @@ mysql_pkg_setup() {
87
88 # Bug #290570 fun. Upstream made us need a fairly new GCC4.
89 if mysql_version_is_at_least "5.0.83" ; then
90 - GCC_VER=$(gcc_version)
91 + GCC_VER=$(gcc-version)
92 case ${GCC_VER} in
93 2*|3*|4.0|4.1|4.2) die "Active GCC too old! Must have at least GCC4.3" ;;
94 esac