Gentoo Archives: gentoo-commits

From: YOSHIOKA Takuma <lo48576@×××××××.red>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-misc/watchexec/
Date: Wed, 07 Jul 2021 19:29:09
Message-Id: 1625686134.5fa8a6536e6a83169b188830928ea40ba384853c.YOSHIOKATakuma@gentoo
1 commit: 5fa8a6536e6a83169b188830928ea40ba384853c
2 Author: YOSHIOKA Takuma <lo48576 <AT> hard-wi <DOT> red>
3 AuthorDate: Wed Jul 7 19:28:54 2021 +0000
4 Commit: YOSHIOKA Takuma <lo48576 <AT> hard-wi <DOT> red>
5 CommitDate: Wed Jul 7 19:28:54 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5fa8a653
7
8 app-misc/watchexec: fix tests invocation for library part
9
10 This package is internally consists of library and CLI.
11 Library part contains a dummy executable which fails to compile, so
12 fixed to run tests for library without attempting to build everything.
13
14 Closes: https://bugs.gentoo.org/789120
15 Package-Manager: Portage-3.0.20, Repoman-3.0.3
16 Signed-off-by: YOSHIOKA Takuma <lo48576 <AT> hard-wi.red>
17
18 app-misc/watchexec/watchexec-1.16.0.ebuild | 5 +++++
19 app-misc/watchexec/watchexec-1.16.1.ebuild | 5 +++++
20 2 files changed, 10 insertions(+)
21
22 diff --git a/app-misc/watchexec/watchexec-1.16.0.ebuild b/app-misc/watchexec/watchexec-1.16.0.ebuild
23 index 7f190dac2..ed218488f 100644
24 --- a/app-misc/watchexec/watchexec-1.16.0.ebuild
25 +++ b/app-misc/watchexec/watchexec-1.16.0.ebuild
26 @@ -132,3 +132,8 @@ src_install() {
27 insinto /usr/share/zsh/site-functions
28 newins completions/zsh _watchexec
29 }
30 +
31 +src_test() {
32 + cargo_src_test --manifest-path lib/Cargo.toml --lib
33 + cargo_src_test --manifest-path cli/Cargo.toml
34 +}
35
36 diff --git a/app-misc/watchexec/watchexec-1.16.1.ebuild b/app-misc/watchexec/watchexec-1.16.1.ebuild
37 index 39db72f7f..99a44d537 100644
38 --- a/app-misc/watchexec/watchexec-1.16.1.ebuild
39 +++ b/app-misc/watchexec/watchexec-1.16.1.ebuild
40 @@ -157,3 +157,8 @@ src_install() {
41 insinto /usr/share/zsh/site-functions
42 newins completions/zsh _watchexec
43 }
44 +
45 +src_test() {
46 + cargo_src_test --manifest-path lib/Cargo.toml --lib
47 + cargo_src_test --manifest-path cli/Cargo.toml
48 +}