From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/pkgcruft/
Date: Tue, 6 Feb 2024 01:09:13 +0000 (UTC) [thread overview]
Message-ID: <1707181706.c8ed0471455a1aef07a5798620175f4d54a07e87.sam@gentoo> (raw)
commit: c8ed0471455a1aef07a5798620175f4d54a07e87
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 6 01:08:26 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Feb 6 01:08:26 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c8ed0471
dev-util/pkgcruft: wire up tests
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-util/pkgcruft/pkgcruft-0.0.1.ebuild | 12 ++++++++----
dev-util/pkgcruft/pkgcruft-9999.ebuild | 12 ++++++++----
2 files changed, 16 insertions(+), 8 deletions(-)
diff --git a/dev-util/pkgcruft/pkgcruft-0.0.1.ebuild b/dev-util/pkgcruft/pkgcruft-0.0.1.ebuild
index c3b4af5141dd..c2c6182cc283 100644
--- a/dev-util/pkgcruft/pkgcruft-0.0.1.ebuild
+++ b/dev-util/pkgcruft/pkgcruft-0.0.1.ebuild
@@ -4,7 +4,7 @@
EAPI=8
CRATES=" "
-inherit cargo toolchain-funcs
+inherit cargo edo toolchain-funcs
DESCRIPTION="QA library and tools based on pkgcraft"
HOMEPAGE="https://pkgcraft.github.io/"
@@ -26,14 +26,14 @@ LICENSE+="
Apache-2.0 BSD-2 BSD CC0-1.0 GPL-3+ ISC MIT MPL-2.0 Unicode-DFS-2016
"
SLOT="0"
-# "error[E0432]: unresolved import `pkgcruft::test`"
-# TODO: speak to radhermit
-RESTRICT="test"
+IUSE="test"
+RESTRICT="!test? ( test )"
# clang needed for bindgen
BDEPEND+="
sys-devel/clang
>=virtual/rust-1.71
+ test? ( dev-util/cargo-nextest )
"
QA_FLAGS_IGNORED="usr/bin/pkgcruft"
@@ -53,3 +53,7 @@ src_compile() {
cargo_src_compile
}
+
+src_test() {
+ edo cargo nextest run $(usev !debug '--release') --color always --all-features --tests
+}
diff --git a/dev-util/pkgcruft/pkgcruft-9999.ebuild b/dev-util/pkgcruft/pkgcruft-9999.ebuild
index c3b4af5141dd..c2c6182cc283 100644
--- a/dev-util/pkgcruft/pkgcruft-9999.ebuild
+++ b/dev-util/pkgcruft/pkgcruft-9999.ebuild
@@ -4,7 +4,7 @@
EAPI=8
CRATES=" "
-inherit cargo toolchain-funcs
+inherit cargo edo toolchain-funcs
DESCRIPTION="QA library and tools based on pkgcraft"
HOMEPAGE="https://pkgcraft.github.io/"
@@ -26,14 +26,14 @@ LICENSE+="
Apache-2.0 BSD-2 BSD CC0-1.0 GPL-3+ ISC MIT MPL-2.0 Unicode-DFS-2016
"
SLOT="0"
-# "error[E0432]: unresolved import `pkgcruft::test`"
-# TODO: speak to radhermit
-RESTRICT="test"
+IUSE="test"
+RESTRICT="!test? ( test )"
# clang needed for bindgen
BDEPEND+="
sys-devel/clang
>=virtual/rust-1.71
+ test? ( dev-util/cargo-nextest )
"
QA_FLAGS_IGNORED="usr/bin/pkgcruft"
@@ -53,3 +53,7 @@ src_compile() {
cargo_src_compile
}
+
+src_test() {
+ edo cargo nextest run $(usev !debug '--release') --color always --all-features --tests
+}
next reply other threads:[~2024-02-06 1:09 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-06 1:09 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-03-03 17:21 [gentoo-commits] repo/gentoo:master commit in: dev-util/pkgcruft/ Sam James
2025-03-03 17:19 Sam James
2025-03-03 17:19 Sam James
2025-01-28 12:15 Sam James
2025-01-15 12:50 Florian Schmaus
2025-01-14 4:53 Sam James
2025-01-14 4:53 Sam James
2025-01-06 4:23 Sam James
2024-12-31 22:31 Sam James
2024-12-09 9:33 Florian Schmaus
2024-12-07 2:15 Sam James
2024-12-07 2:12 Sam James
2024-11-21 18:19 Sam James
2024-08-14 20:07 Sam James
2024-06-23 1:13 Sam James
2024-02-16 1:26 Sam James
2024-02-06 0:36 Sam James
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1707181706.c8ed0471455a1aef07a5798620175f4d54a07e87.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox