From 5fa8a6536e6a83169b188830928ea40ba384853c Mon Sep 17 00:00:00 2001 From: YOSHIOKA Takuma Date: Thu, 8 Jul 2021 04:28:54 +0900 Subject: [PATCH] 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 --- app-misc/watchexec/watchexec-1.16.0.ebuild | 5 +++++ app-misc/watchexec/watchexec-1.16.1.ebuild | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/app-misc/watchexec/watchexec-1.16.0.ebuild b/app-misc/watchexec/watchexec-1.16.0.ebuild index 7f190dac21..ed218488f0 100644 --- a/app-misc/watchexec/watchexec-1.16.0.ebuild +++ b/app-misc/watchexec/watchexec-1.16.0.ebuild @@ -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 +} diff --git a/app-misc/watchexec/watchexec-1.16.1.ebuild b/app-misc/watchexec/watchexec-1.16.1.ebuild index 39db72f7f0..99a44d5374 100644 --- a/app-misc/watchexec/watchexec-1.16.1.ebuild +++ b/app-misc/watchexec/watchexec-1.16.1.ebuild @@ -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 +}