1 |
commit: 00bd2f9524ff99b2d17f1cc79c9d5b678e1576f7 |
2 |
Author: Graeme Lawes <graemelawes <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Jul 2 13:48:26 2017 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 2 15:20:29 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00bd2f95 |
7 |
|
8 |
sys-cluster/teleport: fix src_test, restrict tests |
9 |
|
10 |
src_test needs the same GOPATH as src_compile to run. Some tests are |
11 |
currently failing, so add RESTRICT=test until upstream devs can fix |
12 |
tests. |
13 |
|
14 |
Bug: https://bugs.gentoo.org/show_bug.cgi?id=623430 |
15 |
|
16 |
sys-cluster/teleport/teleport-2.2.0.ebuild | 5 +++++ |
17 |
sys-cluster/teleport/teleport-2.2.1.ebuild | 5 +++++ |
18 |
sys-cluster/teleport/teleport-9999.ebuild | 4 ++++ |
19 |
3 files changed, 14 insertions(+) |
20 |
|
21 |
diff --git a/sys-cluster/teleport/teleport-2.2.0.ebuild b/sys-cluster/teleport/teleport-2.2.0.ebuild |
22 |
index 3fafc3ed333..90fddb344c0 100644 |
23 |
--- a/sys-cluster/teleport/teleport-2.2.0.ebuild |
24 |
+++ b/sys-cluster/teleport/teleport-2.2.0.ebuild |
25 |
@@ -21,6 +21,7 @@ fi |
26 |
LICENSE="Apache-2.0" |
27 |
SLOT="0" |
28 |
IUSE="" |
29 |
+RESTRICT="test" |
30 |
|
31 |
DEPEND=" |
32 |
app-arch/zip |
33 |
@@ -51,3 +52,7 @@ src_install() { |
34 |
systemd_dounit "${FILESDIR}"/${PN}.service |
35 |
systemd_install_serviced "${FILESDIR}"/${PN}.service.conf ${PN}.service |
36 |
} |
37 |
+ |
38 |
+src_test() { |
39 |
+ GOPATH="${S}" emake -C src/${EGO_PN%/*} test |
40 |
+} |
41 |
|
42 |
diff --git a/sys-cluster/teleport/teleport-2.2.1.ebuild b/sys-cluster/teleport/teleport-2.2.1.ebuild |
43 |
index 3fafc3ed333..90fddb344c0 100644 |
44 |
--- a/sys-cluster/teleport/teleport-2.2.1.ebuild |
45 |
+++ b/sys-cluster/teleport/teleport-2.2.1.ebuild |
46 |
@@ -21,6 +21,7 @@ fi |
47 |
LICENSE="Apache-2.0" |
48 |
SLOT="0" |
49 |
IUSE="" |
50 |
+RESTRICT="test" |
51 |
|
52 |
DEPEND=" |
53 |
app-arch/zip |
54 |
@@ -51,3 +52,7 @@ src_install() { |
55 |
systemd_dounit "${FILESDIR}"/${PN}.service |
56 |
systemd_install_serviced "${FILESDIR}"/${PN}.service.conf ${PN}.service |
57 |
} |
58 |
+ |
59 |
+src_test() { |
60 |
+ GOPATH="${S}" emake -C src/${EGO_PN%/*} test |
61 |
+} |
62 |
|
63 |
diff --git a/sys-cluster/teleport/teleport-9999.ebuild b/sys-cluster/teleport/teleport-9999.ebuild |
64 |
index 3e870fac4bd..a16c3c13370 100644 |
65 |
--- a/sys-cluster/teleport/teleport-9999.ebuild |
66 |
+++ b/sys-cluster/teleport/teleport-9999.ebuild |
67 |
@@ -49,3 +49,7 @@ src_install() { |
68 |
systemd_dounit "${FILESDIR}"/${PN}.service |
69 |
systemd_install_serviced "${FILESDIR}"/${PN}.service.conf ${PN}.service |
70 |
} |
71 |
+ |
72 |
+src_test() { |
73 |
+ GOPATH="${S}" emake -C src/${EGO_PN%/*} test |
74 |
+} |