app-misc/watchexec: fix tests invocation for library part

This package is internally consists of library and CLI.
Library part contains a dummy executable which fails to compile, so
fixed to run tests for library without attempting to build everything.

Closes: https://bugs.gentoo.org/789120
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: YOSHIOKA Takuma <lo48576@hard-wi.red>
This commit is contained in:
YOSHIOKA Takuma
2021-07-08 04:28:54 +09:00
parent 6c5c237129
commit 5fa8a6536e
2 changed files with 10 additions and 0 deletions

View File

@@ -132,3 +132,8 @@ src_install() {
insinto /usr/share/zsh/site-functions
newins completions/zsh _watchexec
}
src_test() {
cargo_src_test --manifest-path lib/Cargo.toml --lib
cargo_src_test --manifest-path cli/Cargo.toml
}

View File

@@ -157,3 +157,8 @@ src_install() {
insinto /usr/share/zsh/site-functions
newins completions/zsh _watchexec
}
src_test() {
cargo_src_test --manifest-path lib/Cargo.toml --lib
cargo_src_test --manifest-path cli/Cargo.toml
}