Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-physics/geant-vmc/
Date: Thu, 18 Jul 2019 16:12:24
Message-Id: 1563464747.f0856e549448bc63c0a5cc816c72b859d20360b1.mgorny@gentoo
1 commit: f0856e549448bc63c0a5cc816c72b859d20360b1
2 Author: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
3 AuthorDate: Tue Jul 16 23:29:58 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 18 15:45:47 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0856e54
7
8 sci-physics/geant-vmc: Fixes for test suite.
9
10 This works around issues either already
11 fixed in upstream master or in pending PRs.
12
13 Package-Manager: Portage-2.3.69, Repoman-2.3.16
14 Signed-off-by: Oliver Freyermuth <o.freyermuth <AT> googlemail.com>
15 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
16
17 sci-physics/geant-vmc/geant-vmc-4.4.0.ebuild | 7 ++++++-
18 sci-physics/geant-vmc/geant-vmc-9999.ebuild | 5 +++--
19 2 files changed, 9 insertions(+), 3 deletions(-)
20
21 diff --git a/sci-physics/geant-vmc/geant-vmc-4.4.0.ebuild b/sci-physics/geant-vmc/geant-vmc-4.4.0.ebuild
22 index ae53bfcd41d..83c2f0b1204 100644
23 --- a/sci-physics/geant-vmc/geant-vmc-4.4.0.ebuild
24 +++ b/sci-physics/geant-vmc/geant-vmc-4.4.0.ebuild
25 @@ -31,6 +31,7 @@ RDEPEND="
26 DEPEND="${RDEPEND}
27 doc? ( app-doc/doxygen )"
28 RESTRICT="
29 + !examples? ( test )
30 !geant3? ( test )
31 !g4root? ( test )
32 !mtroot? ( test )
33 @@ -77,8 +78,12 @@ src_test() {
34 # see e.g. https://sft.its.cern.ch/jira/browse/ROOT-8146 .
35 addwrite /dev/random
36 cd examples || die
37 + # Bug: Can not disable Garfield in test suite, fixed upstream.
38 + sed -i 's/ExGarfield//' test_suite.sh || die
39 + # Bug: Path for E03 sub-examples wrong, see https://github.com/vmc-project/geant4_vmc/pull/11 .
40 + sed -i 's#only in E03 test#only in E03 test\nG4EXEDIR=${BUILDDIR}/examples/$EXAMPLE/$OPTION#' test_suite_exe.sh || die
41 ./test_suite.sh --g3=off --builddir="${BUILD_DIR}" || die
42 - ./test_suite_exe.sh --g3=off --builddir="${BUILD_DIR}" || die
43 + ./test_suite_exe.sh --g3=off --garfield=off --builddir="${BUILD_DIR}" || die
44 }
45
46 src_install() {
47
48 diff --git a/sci-physics/geant-vmc/geant-vmc-9999.ebuild b/sci-physics/geant-vmc/geant-vmc-9999.ebuild
49 index ae53bfcd41d..ffc8e7dc874 100644
50 --- a/sci-physics/geant-vmc/geant-vmc-9999.ebuild
51 +++ b/sci-physics/geant-vmc/geant-vmc-9999.ebuild
52 @@ -31,6 +31,7 @@ RDEPEND="
53 DEPEND="${RDEPEND}
54 doc? ( app-doc/doxygen )"
55 RESTRICT="
56 + !examples? ( test )
57 !geant3? ( test )
58 !g4root? ( test )
59 !mtroot? ( test )
60 @@ -77,8 +78,8 @@ src_test() {
61 # see e.g. https://sft.its.cern.ch/jira/browse/ROOT-8146 .
62 addwrite /dev/random
63 cd examples || die
64 - ./test_suite.sh --g3=off --builddir="${BUILD_DIR}" || die
65 - ./test_suite_exe.sh --g3=off --builddir="${BUILD_DIR}" || die
66 + ./test_suite.sh --debug --g3=off --garfield=off --builddir="${BUILD_DIR}" || die
67 + ./test_suite_exe.sh -debug --g3=off --garfield=off --builddir="${BUILD_DIR}" || die
68 }
69
70 src_install() {