1 |
commit: c2d59cc2223b58385f3f200aa5d28e7475f7157c |
2 |
Author: Zamarin Arthur <arthurzam <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon May 24 06:13:35 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 24 18:52:06 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2d59cc2 |
7 |
|
8 |
dev-util/gcovr: bump to python 3.9, enable partial tests |
9 |
|
10 |
- tested by merging and running on various examples |
11 |
- enabled partial tests, which is better than nothing |
12 |
the failing tests fail because of old GCC version format |
13 |
|
14 |
Signed-off-by: Zamarin Arthur <arthurzam <AT> gmail.com> |
15 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
16 |
|
17 |
dev-util/gcovr/gcovr-4.2.ebuild | 24 +++++++++++------------- |
18 |
1 file changed, 11 insertions(+), 13 deletions(-) |
19 |
|
20 |
diff --git a/dev-util/gcovr/gcovr-4.2.ebuild b/dev-util/gcovr/gcovr-4.2.ebuild |
21 |
index 580ac995f39..cd46ba9fd4a 100644 |
22 |
--- a/dev-util/gcovr/gcovr-4.2.ebuild |
23 |
+++ b/dev-util/gcovr/gcovr-4.2.ebuild |
24 |
@@ -1,9 +1,9 @@ |
25 |
-# Copyright 1999-2020 Gentoo Authors |
26 |
+# Copyright 1999-2021 Gentoo Authors |
27 |
# Distributed under the terms of the GNU General Public License v2 |
28 |
|
29 |
EAPI=7 |
30 |
|
31 |
-PYTHON_COMPAT=( python3_{7,8} ) |
32 |
+PYTHON_COMPAT=( python3_{7..9} ) |
33 |
DISTUTILS_IN_SOURCE_BUILD=1 |
34 |
|
35 |
inherit distutils-r1 |
36 |
@@ -15,23 +15,15 @@ SRC_URI="https://github.com/gcovr/gcovr/archive/${PV}.tar.gz -> ${P}.tar.gz" |
37 |
LICENSE="BSD" |
38 |
SLOT="0" |
39 |
KEYWORDS="~amd64 ~x86" |
40 |
-IUSE="test" |
41 |
|
42 |
RDEPEND=" |
43 |
dev-python/jinja[${PYTHON_USEDEP}] |
44 |
dev-python/lxml[${PYTHON_USEDEP}] |
45 |
" |
46 |
-BDEPEND="${RDEPEND} |
47 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
48 |
- test? ( |
49 |
- dev-python/PyUtilib[${PYTHON_USEDEP}] |
50 |
- ) |
51 |
+BDEPEND=" |
52 |
+ test? ( dev-python/PyUtilib[${PYTHON_USEDEP}] ) |
53 |
" |
54 |
|
55 |
-# tests fail on gcc newer than 5.8 |
56 |
-# https://github.com/gcovr/gcovr/issues/206 |
57 |
-RESTRICT="test" |
58 |
- |
59 |
distutils_enable_tests pytest |
60 |
|
61 |
python_test() { |
62 |
@@ -40,5 +32,11 @@ python_test() { |
63 |
local -x PATH="${TEST_DIR}/scripts:${PATH}" \ |
64 |
PYTHONPATH="${TEST_DIR}/lib" |
65 |
|
66 |
- pytest -vv gcovr || die "Tests fail with ${EPYTHON}" |
67 |
+ local deselect=( |
68 |
+ # those tests fail on gcc newer than 5.8 |
69 |
+ # https://github.com/gcovr/gcovr/issues/206 |
70 |
+ gcovr/tests/test_gcovr.py |
71 |
+ ) |
72 |
+ |
73 |
+ epytest gcovr ${deselect[@]/#/--deselect } |
74 |
} |