Gentoo Archives: gentoo-commits

From: Brian Evans <grknight@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/mysql:master commit in: dev-db/percona-server/
Date: Wed, 23 Sep 2015 02:52:01
Message-Id: 1442976535.a899b1802751f62699293e0858847d0657247f29.grknight@gentoo
1 commit: a899b1802751f62699293e0858847d0657247f29
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 23 02:48:55 2015 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 23 02:48:55 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/mysql.git/commit/?id=a899b180
7
8 dev-db/percona-server: Test updates
9
10 Signed-off-by: Brian Evans <grknight <AT> gentoo.org>
11
12 .../percona-server-5.6.26.74.0.ebuild | 29 ++++++++--------------
13 1 file changed, 10 insertions(+), 19 deletions(-)
14
15 diff --git a/dev-db/percona-server/percona-server-5.6.26.74.0.ebuild b/dev-db/percona-server/percona-server-5.6.26.74.0.ebuild
16 index c057aee..47aba77 100644
17 --- a/dev-db/percona-server/percona-server-5.6.26.74.0.ebuild
18 +++ b/dev-db/percona-server/percona-server-5.6.26.74.0.ebuild
19 @@ -6,20 +6,21 @@ EAPI="5"
20 MY_EXTRAS_VER="20150717-1707Z"
21 HAS_TOOLS_PATCH="1"
22 SUBSLOT="18"
23 -
24 -inherit toolchain-funcs mysql-multilib
25 +PYTHON_COMPAT=( python2_7 )
26 +inherit toolchain-funcs python-any-r1 mysql-multilib
27 # only to make repoman happy. it is really set in the eclass
28 IUSE="$IUSE tokudb tokudb-backup-plugin"
29
30 # REMEMBER: also update eclass/mysql*.eclass before committing!
31 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x86-linux"
32 +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x86-linux"
33
34 # When MY_EXTRAS is bumped, the index should be revised to exclude these.
35 EPATCH_EXCLUDE=''
36
37 DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )
38 tokudb? ( app-arch/snappy )
39 - tokudb-backup-plugin? ( dev-util/valgrind )"
40 + tokudb-backup-plugin? ( dev-util/valgrind )
41 + test? ( $(python_gen_any_dep 'dev-python/mysql-python[${PYTHON_USEDEP}]') )"
42 RDEPEND="${RDEPEND}"
43
44 REQUIRED_USE="tokudb? ( jemalloc ) tokudb-backup-plugin? ( tokudb )"
45 @@ -28,6 +29,10 @@ REQUIRED_USE="tokudb? ( jemalloc ) tokudb-backup-plugin? ( tokudb )"
46 # If you want to add a single patch, copy the ebuild to an overlay
47 # and create your own mysql-extras tarball, looking at 000_index.txt
48
49 +python_check_deps() {
50 + has_version "dev-python/mysql-python[${PYTHON_USEDEP}]"
51 +}
52 +
53 # Official test instructions:
54 # USE='extraengine perl ssl static-libs community' \
55 # FEATURES='test userpriv -usersandbox' \
56 @@ -104,12 +109,6 @@ multilib_src_test() {
57 # main.mysqlhotcopy_archive main.mysqlhotcopy_myisam
58 # Called with bad parameters should be reported upstream
59 #
60 - # innodb_stress.innodb_stress
61 - # innodb_stress.innodb_stress_blob innodb_stress.innodb_stress_blob_nocompress
62 - # innodb_stress.innodb_stress_crash innodb_stress.innodb_stress_crash_blob
63 - # innodb_stress.innodb_stress_crash_blob_nocompress innodb_stress.innodb_stress_crash_nocompress
64 - # innodb_stress.innodb_stress_nocompress
65 - # Dependent on python2 being the system python
66
67 for t in main.mysql_client_test \
68 binlog.binlog_statement_insert_delayed main.information_schema \
69 @@ -124,20 +123,12 @@ multilib_src_test() {
70 mysql-multilib_disable_test "$t" "False positives in Gentoo"
71 done
72
73 - for t in innodb_stress.innodb_stress \
74 - innodb_stress.innodb_stress_blob innodb_stress.innodb_stress_blob_nocompress \
75 - innodb_stress.innodb_stress_crash innodb_stress.innodb_stress_crash_blob \
76 - innodb_stress.innodb_stress_crash_blob_nocompress innodb_stress.innodb_stress_crash_nocompress \
77 - innodb_stress.innodb_stress_nocompress ; do
78 - mysql-multilib_disable_test "$t" "False positives due to python exception syntax"
79 - done
80 -
81 # Run mysql tests
82 pushd "${TESTDIR}"
83
84 # Set file limits higher so tests run
85 ulimit -n 3000
86 -
87 + python_setup
88 # run mysql-test tests
89 perl mysql-test-run.pl --force --vardir="${T}/var-tests" \
90 --testcase-timeout=30 --reorder