Gentoo Archives: gentoo-commits

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/mysql:master commit in: dev-db/mysql/
Date: Sat, 19 Nov 2011 00:48:00
Message-Id: f2f1d834febae58a5aaa3feff2ad36fb79352743.robbat2@gentoo
1 commit: f2f1d834febae58a5aaa3feff2ad36fb79352743
2 Author: Robin H. Johnson <robbat2 <AT> orbis-terrarum <DOT> net>
3 AuthorDate: Sat Nov 19 00:47:08 2011 +0000
4 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
5 CommitDate: Sat Nov 19 00:47:08 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/mysql.git;a=commit;h=f2f1d834
7
8 Version bump.
9
10 (Portage version: 2.2.0_alpha74/git/Linux x86_64, unsigned Manifest commit)
11
12 ---
13 dev-db/mysql/ChangeLog | 5 +
14 dev-db/mysql/Manifest | 25 +---
15 dev-db/mysql/mysql-5.1.60.ebuild | 261 ++++++++++++++++++++++++++++++++++++++
16 3 files changed, 270 insertions(+), 21 deletions(-)
17
18 diff --git a/dev-db/mysql/ChangeLog b/dev-db/mysql/ChangeLog
19 index c2bf7c6..9053c76 100644
20 --- a/dev-db/mysql/ChangeLog
21 +++ b/dev-db/mysql/ChangeLog
22 @@ -2,6 +2,11 @@
23 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
24 # $Header: $
25
26 +*mysql-5.1.60 (19 Nov 2011)
27 +
28 + 19 Nov 2011; Robin H. Johnson <robbat2@g.o> +mysql-5.1.60.ebuild:
29 + Version bump.
30 +
31 *mysql-5.5.17 (26 Oct 2011)
32
33 26 Oct 2011; Jorge Manuel B. S. Vicetto <jmbsvicetto@g.o>
34
35 diff --git a/dev-db/mysql/Manifest b/dev-db/mysql/Manifest
36 index a1a4326..19b1f34 100644
37 --- a/dev-db/mysql/Manifest
38 +++ b/dev-db/mysql/Manifest
39 @@ -1,6 +1,3 @@
40 ------BEGIN PGP SIGNED MESSAGE-----
41 -Hash: SHA1
42 -
43 AUX my.cnf 1249 RMD160 680752c5c5f1e18e02f5c3286aaade406f271b95 SHA1 f5592c43e52d23902a23d4f824d4dddccd7cdd0c SHA256 29c07ce113496ec62bf9427609f2291861e3e165200d6e98a69bd312c6c101ec
44 AUX my.cnf-4.0 4316 RMD160 e2a9f3f1a13b1aa13151dc5dbeba1dad888337e3 SHA1 40d6f252fd103548bc422e86659ef644fbce1ac6 SHA256 f4616a38d7c1b5cc2bf6b4e5b175ffcc12a52e38772dd86274a8991ef50015af
45 AUX my.cnf-4.1 4235 RMD160 ca04e2e667322e99c29be59064c7a6ecaa4e1e4c SHA1 babc79984b2e2d3def93ac0c13cd2fc5c690212a SHA256 908a4883116e4f323510c468fd22c5765f8a2adce0344859fc212b7209a3a6c7
46 @@ -9,6 +6,7 @@ AUX mysql.init 886 RMD160 26b8aa45af3f930db01f0db731865b9293626fb1 SHA1 d7d99a3f
47 DIST mysql-5.0.92.tar.gz 22440590 RMD160 24a373a1b124acf39d0c0726e5cb6f47dc1bef08 SHA1 10fffc7672a469af4a7fd980922b04d7ba0143ba SHA256 223530c4cd6d45e2906e6c7d33615c5824816dfdb772d104f4165a483ea78a55
48 DIST mysql-5.1.58.tar.gz 24333490 RMD160 199729c701c764cd22584c2b952230c07d0f31a6 SHA1 cfd70bee07ad99576eecde01785b7b2a74ec87ab SHA256 3c69562399655fc62d1424437e6ef59ef7c1ed225f940f81558f549b803f3fd7
49 DIST mysql-5.1.59.tar.gz 24325443 RMD160 bbc54a2fc0eb3657f297ac097e9374c98e90442e SHA1 1d425a421edc94fba616f1986a16bdc9d0b5c193 SHA256 f87b99b73c0d936ed892326ebd4c90b1d5c7d5d2ac8832fc62f538db99fb04f7
50 +DIST mysql-5.1.60.tar.gz 24408313 RMD160 7bbfce4fecc2a8e1ca081169e70c1a298ab1b75a SHA1 26ae4d2f7e7066644eb343ab519cbef1626069c2 SHA256 2829fcb7393bac85925090b286b1f9c3cd3fbbf8e7f35796ef4131322509aa53
51 DIST mysql-5.5.10.tar.gz 23877968 RMD160 7f190513e38bbbcac21291e226de87b3b95a1ba4 SHA1 7e0b426d7a9ef0eaa6e2b2ea3e5fef1e1a078c5d SHA256 f4a0dae6d2626705ccede5126f2a3d45700195cb2568537c8b18bf1b604315a5
52 DIST mysql-5.5.12.tar.gz 23681636 RMD160 e36d6a29e4f92eecfbbdac47d9f0d9a427446da3 SHA1 8a4f4c2b762676140722d414d694cddd9c1e3397 SHA256 ed99dee5893f8502c909dfc4f55447f0ab9b7ae23fd6df53e31067d25f5088fc
53 DIST mysql-5.5.14.tar.gz 23772997 RMD160 1c84fc3967691e9eedd1b90df780a9d738a709c4 SHA1 3b17e20be4e8bcc0f94392fb444f4a09f80de2e4 SHA256 c7acab9ccb1e2598d079fe8b832281343c00b5b8032fcece37ef551b61980738
54 @@ -18,11 +16,13 @@ DIST mysql-5.5.17.tar.gz 24213337 RMD160 6bf00da1df03e869e3cc6c18cd03d5634838688
55 DIST mysql-5.6.2-m5.tar.gz 26137314 RMD160 e333a001e087b9fdf179c4e9f6a1927f2bd0fc6d SHA1 6b82c973b2c203909357e7100741b6030426fa67 SHA256 84b4f83b3eeff43fb9a282c03a252ee3ace1cea43ddebdfeb0ea940a687e427f
56 DIST mysql-extras-20110713-0702Z.tar.bz2 1723462 RMD160 24127c9d9bd053259fb1d9793b944d4447c21cae SHA1 4d03151f26af1ad522e1f0f0ed5eddebd665fc5c SHA256 2b0e1ce0bf5a2bcb543e631f27bf1d6bcb15da0a966112dfe64b2591945cd605
57 DIST mysql-extras-20110721-0450Z.tar.bz2 1734716 RMD160 346bdcd46c5b3ec8f839274c078fd6625f981de0 SHA1 d98382e15808b9c54a8d6563483a8ab3de59aa55 SHA256 354c270c777b4c9b5afad1f5dcdcf400989273779fafa726c70d05277bb74a37
58 +DIST mysql-extras-20111118-2347Z.tar.bz2 1780751 RMD160 590ad649c6221d461f96466d83a3c15b1a80a3a9 SHA1 495fd4f43364fd86aed746cfb6f870d35c9c4987 SHA256 db380436ad13231245c02c2e36d4a1d5b3d27fa39c19e844507736a8ba69b6f5
59 DIST pbxt-1.0.11-6-pre-ga.tar.gz 3156307 RMD160 835c401b8503f1c1bef4b50f7a7815493f95acc1 SHA1 22eeffe0e38e0a0c2731a2c97fe00ce7d1ab2dfc SHA256 71ff3d86e9e5691f3efe541bf31f55a7ec2a88af27df6ad853b65902e00e6d12
60 DIST percona-xtradb-1.0.6-10.tar.gz 1676716 RMD160 772947fe67725c55751f3ec349711c05ba23c39b SHA1 07de0fd126e684aa045a8b941002f7634cd9a604 SHA256 e3aa818f13cf669412e59ad194eae8eada7a857bf7a4260e4bb41cab4d7ae39c
61 EBUILD mysql-5.0.92.ebuild 6584 RMD160 2bd8c049fca18eb04f3e641018824d714926ed65 SHA1 7a7d895df18909e8c5a2e293edd44ebe540ded29 SHA256 316ed800c11ea60ddaa3339cdd4db28101e8b35551f7bee63c32c8f9c9b15947
62 EBUILD mysql-5.1.58-r1.ebuild 8718 RMD160 7f1869a8efa6e9b5e8691e529d2eac4e9f00b845 SHA1 1b98f9347b294fc5c2aee7d42914854c30a92c47 SHA256 0fc52351fb7e2cfc0ff1c0e1d5ed854ad43a2da5468713f72b5659cbadd5eb12
63 EBUILD mysql-5.1.59.ebuild 8718 RMD160 1f30fee1c2d6c0830f9dd7a048a2755e52f68283 SHA1 42a0225f0d0cf5d491335cd7bfce105a8bebefd7 SHA256 f312b2a0a57512c78a110e00d205f6548859d53e790b994257494f5f1a9e6951
64 +EBUILD mysql-5.1.60.ebuild 8718 RMD160 b93a58ca719553e9e644394a102f1db34d277d22 SHA1 67ec0ef859b7671f1bfd023efecd3332d943e21d SHA256 878303790f45832461209587a16a249e86062485e81edb8bf1e8e2e082ac77ff
65 EBUILD mysql-5.5.10.ebuild 3851 RMD160 be21bf4d77fd21dca965794d899c04f83607cfe7 SHA1 dcd690b860a3b6a8e06f8327af92c22cd90fc5b7 SHA256 0dbb68e63c8b7ecfeb24449030b38076df495bc3e3878674c5f6f9fe5a7e254b
66 EBUILD mysql-5.5.12.ebuild 3851 RMD160 be21bf4d77fd21dca965794d899c04f83607cfe7 SHA1 dcd690b860a3b6a8e06f8327af92c22cd90fc5b7 SHA256 0dbb68e63c8b7ecfeb24449030b38076df495bc3e3878674c5f6f9fe5a7e254b
67 EBUILD mysql-5.5.14.ebuild 3916 RMD160 c477eb7200fa7444aaaaa48699477a858d3de95f SHA1 32aeee60204ab8ed9b436144d88fc5f4da847ea2 SHA256 5382baf2d872a1251cf052744c473708026145ea43c4e5f5de8273cb726ae491
68 @@ -30,22 +30,5 @@ EBUILD mysql-5.5.15.ebuild 3916 RMD160 c477eb7200fa7444aaaaa48699477a858d3de95f
69 EBUILD mysql-5.5.16.ebuild 3916 RMD160 76009aec549974e273045b775534658c28546d46 SHA1 8b64e7397234a413ad32f08fff412c35fa878847 SHA256 74326b102935a0d0f7feb630e6b3e1372177a0d4e3aa506ef3becb9a5155c8e5
70 EBUILD mysql-5.5.17.ebuild 3916 RMD160 76009aec549974e273045b775534658c28546d46 SHA1 8b64e7397234a413ad32f08fff412c35fa878847 SHA256 74326b102935a0d0f7feb630e6b3e1372177a0d4e3aa506ef3becb9a5155c8e5
71 EBUILD mysql-5.6.2_alpha_pre5.ebuild 3851 RMD160 acdea00ab14deb95ba74704627d7bf3c86cb7dc8 SHA1 a18ab55f074e23da30e505b10fd66ce97b80fcfb SHA256 f308eceb7cc0b3126fc532ffa8304464276a21adef738fcd92a62cf4d4ed38dd
72 -MISC ChangeLog 8080 RMD160 b84fec5ea42171cbf4c209c0d2253431bec266e6 SHA1 ae568fffa47ccb137a734d9412dd287027789b64 SHA256 402571497cc83abb35b2072aeacf55071fffde8d4327ad879e05329a2c81664d
73 +MISC ChangeLog 8201 RMD160 3978469716f52a7e9e7264364d2169c78c58342f SHA1 594d3a51d9471b786e6933e7c9fd2584788643a5 SHA256 c4cfa668cc8e570010bd7c965c722a1318a583ae02390af9c7db1fb9173de155
74 MISC metadata.xml 1144 RMD160 2e8b432149e8467becaf1e52884437a80d31673d SHA1 b516bc717f95725fe9e6486b6101f42e42007909 SHA256 e84ceb0d15ac0384c33c6a6451ccf4902f7c2aa9d227b931c12c25695e4b62a2
75 ------BEGIN PGP SIGNATURE-----
76 -Version: GnuPG v2.0.18 (GNU/Linux)
77 -
78 -iQIcBAEBAgAGBQJOqGLxAAoJEC8ZTXQF1qEPkkIP/0sdIEDLQHiUnzFsMvyENLFB
79 -tZALrC1WtZ5xCIE/iwGzmH/t5F4LBIKhEKR0AQ2RvWqD2pPodWOSgPalQ/vI6bpj
80 -yJU242GOXwfdVJMIRr8vKrerjrswwY17gMavxgn+8/P8BkNfEqAbusD09f5pf4+X
81 -RXXqmGIMtpyzRQOnGabTogzJfC0SvgPVG8T9e/tyGzxPJqpmQeB/0wyNt2z0vc2n
82 -9o9ehtdz8afEJPyNHTygzx+OIZ32J48y7GnIpTB0Eu9DdbTKLX5UtWkWj+eKGr7y
83 -YCElMz7y+QLf5R5iucx9qNZ7zXPHAos5zVuC9QAX4XHaSxkbhU0Ssbe/mSjog1y9
84 -a/zr2Z6mXKboB6smYIw02Vcqbx/yw/aQeZTS+pOKjO9EaE5ukfPEimQCoWEdXhEE
85 -G98TTVQJgRclBHywNXDmo7UAUOx/VPEhjDJzGtlKAmhsfiElWUZgH7hW/UPN9fH4
86 -8G7/ujPx5Zlod1A6ztCwyInDxJXQzITyqBBVgDQc/D00/ObVqTaOmzVMCZfEIHlb
87 -zNjM9x51qblQ0X7hJ3BHuuiJF8B2eiSgzBFXLY1WyKMwi0LWOv2WRDSJ4nwoClcb
88 -7dbqVpelEN/qL1oVo3yspek38JJzO/ZeD4qdReAVTH43fNNkVhpOd3BSxNYgosi8
89 -22+66dUafuwW2uZJ2IuX
90 -=JeWS
91 ------END PGP SIGNATURE-----
92
93 diff --git a/dev-db/mysql/mysql-5.1.60.ebuild b/dev-db/mysql/mysql-5.1.60.ebuild
94 new file mode 100644
95 index 0000000..c640e0d
96 --- /dev/null
97 +++ b/dev-db/mysql/mysql-5.1.60.ebuild
98 @@ -0,0 +1,261 @@
99 +# Copyright 1999-2011 Gentoo Foundation
100 +# Distributed under the terms of the GNU General Public License v2
101 +# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/mysql-5.1.58.ebuild,v 1.1 2011/07/13 07:37:01 robbat2 Exp $
102 +
103 +EAPI="4"
104 +
105 +MY_EXTRAS_VER="20111118-2347Z"
106 +# PBXT
107 +PBXT_VERSION='1.0.11-6-pre-ga'
108 +# XtraDB
109 +PERCONA_VER='5.1.45-10' XTRADB_VER='1.0.6-10'
110 +
111 +# Build type
112 +BUILD="autotools"
113 +
114 +inherit toolchain-funcs mysql-v2
115 +
116 +# only to make repoman happy. it is really set in the eclass
117 +IUSE="$IUSE"
118 +
119 +# REMEMBER: also update eclass/mysql*.eclass before committing!
120 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~ppc-macos ~x64-macos ~x86-solaris"
121 +
122 +# When MY_EXTRAS is bumped, the index should be revised to exclude these.
123 +# This is often broken still
124 +EPATCH_EXCLUDE=''
125 +
126 +# Most of these are in the eclass
127 +DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )
128 + >=sys-devel/libtool-2.2.10"
129 +RDEPEND="${RDEPEND}"
130 +
131 +# Please do not add a naive src_unpack to this ebuild
132 +# If you want to add a single patch, copy the ebuild to an overlay
133 +# and create your own mysql-extras tarball, looking at 000_index.txt
134 +src_prepare() {
135 + sed -i \
136 + -e '/^noinst_PROGRAMS/s/basic-t//g' \
137 + "${S}"/unittest/mytap/t/Makefile.am
138 + mysql-v2_src_prepare
139 +}
140 +
141 +# Official test instructions:
142 +# USE='berkdb -cluster embedded extraengine perl ssl community' \
143 +# FEATURES='test userpriv -usersandbox' \
144 +# ebuild mysql-X.X.XX.ebuild \
145 +# digest clean package
146 +src_test() {
147 + # Bug #213475 - MySQL _will_ object strenously if your machine is named
148 + # localhost. Also causes weird failures.
149 + [[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
150 +
151 + emake check || die "make check failed"
152 + if ! use "minimal" ; then
153 + if [[ $UID -eq 0 ]]; then
154 + die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
155 + fi
156 + has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
157 + cd "${S}"
158 + einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
159 + local retstatus_unit
160 + local retstatus_ns
161 + local retstatus_ps
162 + local t
163 + addpredict /this-dir-does-not-exist/t9.MYI
164 +
165 + # Ensure that parallel runs don't die
166 + export MTR_BUILD_THREAD="$((${RANDOM} % 100))"
167 +
168 + # archive_gis really sucks a lot, but it's only relevant for the
169 + # USE=extraengines case
170 + case ${PV} in
171 + 5.0.42)
172 + mysql-v2_disable_test "archive_gis" "Totally broken in 5.0.42"
173 + ;;
174 +
175 + 5.0.4[3-9]|5.0.[56]*|5.0.70|5.0.87)
176 + [ "$(tc-endian)" == "big" ] && \
177 + mysql-v2_disable_test \
178 + "archive_gis" \
179 + "Broken in 5.0.43-70 and 5.0.87 on big-endian boxes only"
180 + ;;
181 + esac
182 +
183 + # This was a slight testcase breakage when the read_only security issue
184 + # was fixed.
185 + case ${PV} in
186 + 5.0.54|5.0.51*)
187 + mysql-v2_disable_test \
188 + "read_only" \
189 + "Broken in 5.0.51-54, output in wrong order"
190 + ;;
191 + esac
192 +
193 + # Ditto to read_only
194 + [ "${PV}" == "5.0.51a" ] && \
195 + mysql-v2_disable_test \
196 + "view" \
197 + "Broken in 5.0.51, output in wrong order"
198 +
199 + # x86-specific, OOM issue with some subselects on low memory servers
200 + [ "${PV}" == "5.0.54" ] && \
201 + [ "${ARCH/x86}" != "${ARCH}" ] && \
202 + mysql-v2_disable_test \
203 + "subselect" \
204 + "Testcase needs tuning on x86 for oom condition"
205 +
206 + # Broke with the YaSSL security issue that didn't affect Gentoo.
207 + [ "${PV}" == "5.0.56" ] && \
208 + for t in openssl_1 rpl_openssl rpl_ssl ssl \
209 + ssl_8k_key ssl_compress ssl_connect ; do \
210 + mysql-v2_disable_test \
211 + "$t" \
212 + "OpenSSL tests broken on 5.0.56"
213 + done
214 +
215 + # New test was broken in first time
216 + # Upstream bug 41066
217 + # http://bugs.mysql.com/bug.php?id=41066
218 + [ "${PV}" == "5.0.72" ] && \
219 + mysql-v2_disable_test \
220 + "status2" \
221 + "Broken in 5.0.72, new test is broken, upstream bug #41066"
222 +
223 + # The entire 5.0 series has pre-generated SSL certificates, they have
224 + # mostly expired now. ${S}/mysql-tests/std-data/*.pem
225 + # The certs really SHOULD be generated for the tests, so that they are
226 + # not expiring like this. We cannot do so ourselves as the tests look
227 + # closely as the cert path data, and we do not have the CA key to regen
228 + # ourselves. Alternatively, upstream should generate them with at least
229 + # 50-year validity.
230 + #
231 + # Known expiry points:
232 + # 4.1.*, 5.0.0-5.0.22, 5.1.7: Expires 2013/09/09
233 + # 5.0.23-5.0.77, 5.1.7-5.1.22?: Expires 2009/01/27
234 + # 5.0.78-5.0.90, 5.1.??-5.1.42: Expires 2010/01/28
235 + #
236 + # mysql-test/std_data/untrusted-cacert.pem is MEANT to be
237 + # expired/invalid.
238 + case ${PV} in
239 + 5.0.*|5.1.*|5.4.*|5.5.*)
240 + for t in openssl_1 rpl_openssl rpl.rpl_ssl rpl.rpl_ssl1 ssl ssl_8k_key \
241 + ssl_compress ssl_connect rpl.rpl_heartbeat_ssl ; do \
242 + mysql-v2_disable_test \
243 + "$t" \
244 + "These OpenSSL tests break due to expired certificates"
245 + done
246 + ;;
247 + esac
248 +
249 + # These are also failing in MySQL 5.1 for now, and are believed to be
250 + # false positives:
251 + #
252 + # main.mysql_comment, main.mysql_upgrade, main.information_schema,
253 + # funcs_1.is_columns_mysql funcs_1.is_tables_mysql funcs_1.is_triggers:
254 + # fails due to USE=-latin1 / utf8 default
255 + #
256 + # main.mysql_client_test:
257 + # segfaults at random under Portage only, suspect resource limits.
258 + #
259 + # main.not_partition:
260 + # Failure reason unknown at this time, must resolve before package.mask
261 + # removal FIXME
262 + case ${PV} in
263 + 5.1.*|5.4.*|5.5.*)
264 + for t in main.mysql_client_test main.mysql_comments \
265 + main.mysql_upgrade \
266 + main.information_schema \
267 + main.not_partition funcs_1.is_columns_mysql \
268 + funcs_1.is_tables_mysql funcs_1.is_triggers; do
269 + mysql-v2_disable_test "$t" "False positives in Gentoo"
270 + done
271 + ;;
272 + esac
273 +
274 + # New failures in 5.1.50/5.1.51, reported by jmbsvicetto.
275 + # These tests are picking up a 'connect-timeout' config from somewhere,
276 + # which is not valid, and since it does not have 'loose-' in front of
277 + # it, it's causing a failure
278 + case ${PV} in
279 + 5.1.5*|5.4.*|5.5.*|6*)
280 + for t in rpl.rpl_mysql_upgrade main.log_tables_upgrade ; do
281 + mysql-v2_disable_test "$t" \
282 + "False positives in Gentoo: connect-timeout"
283 + done
284 + ;;
285 + esac
286 +
287 + use profiling && use community \
288 + || mysql-v2_disable_test main.profiling \
289 + "Profiling test needs profiling support"
290 +
291 + if [ "${PN}" == "mariadb" ]; then
292 + for t in \
293 + parts.part_supported_sql_func_ndb \
294 + parts.partition_auto_increment_ndb ; do
295 + mysql-v2_disable_test $t "ndb not supported in mariadb"
296 + done
297 + fi
298 +
299 + # This fail with XtraDB in place of normal InnoDB
300 + # TODO: test if they are broken with the rest of the Percona patches
301 + if xtradb_patch_available && use xtradb ; then
302 + for t in main.innodb innodb.innodb_bug51378 \
303 + main.information_schema_db main.mysqlshow \
304 + main.innodb-autoinc main.innodb_bug21704 \
305 + main.innodb_bug44369 main.innodb_bug46000 \
306 + main.index_merge_innodb \
307 + innodb.innodb innodb.innodb_misc1 innodb.innodb_bug52663 \
308 + innodb.innodb-autoinc innodb.innodb-autoinc-44030 \
309 + innodb.innodb_bug21704 innodb.innodb_bug44369 \
310 + innodb.innodb_bug46000 innodb.innodb_bug48024 \
311 + innodb.innodb_bug49164 innodb.innodb_bug51920 \
312 + innodb.innodb_bug54044 \
313 + ; do
314 + mysql-v2_disable_test $t "tests broken in xtradb"
315 + done
316 + fi
317 +
318 + # bug 332565
319 + if ! use extraengine ; then
320 + for t in main.range ; do
321 + mysql-v2_disable_test $t "Test $t requires USE=extraengine"
322 + done
323 + fi
324 +
325 + # create directories because mysqladmin might make out of order
326 + mkdir -p "${S}"/mysql-test/var-{ps,ns}{,/log}
327 +
328 + # We run the test protocols seperately
329 + emake test-unit
330 + retstatus_unit=$?
331 + [[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed"
332 +
333 + emake test-ns force="--force --vardir=${S}/mysql-test/var-ns"
334 + retstatus_ns=$?
335 + [[ $retstatus_ns -eq 0 ]] || eerror "test-ns failed"
336 + has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
337 +
338 + emake test-ps force="--force --vardir=${S}/mysql-test/var-ps"
339 + retstatus_ps=$?
340 + [[ $retstatus_ps -eq 0 ]] || eerror "test-ps failed"
341 + has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
342 +
343 + # TODO:
344 + # When upstream enables the pr and nr testsuites, we need those as well.
345 +
346 + # Cleanup is important for these testcases.
347 + pkill -9 -f "${S}/ndb" 2>/dev/null
348 + pkill -9 -f "${S}/sql" 2>/dev/null
349 + failures=""
350 + [[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit"
351 + [[ $retstatus_ns -eq 0 ]] || failures="${failures} test-ns"
352 + [[ $retstatus_ps -eq 0 ]] || failures="${failures} test-ps"
353 + has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
354 + [[ -z "$failures" ]] || die "Test failures: $failures"
355 + einfo "Tests successfully completed"
356 + else
357 + einfo "Skipping server tests due to minimal build."
358 + fi
359 +}