summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-09-25 05:22:47 +0100
committerSam James <sam@gentoo.org>2023-09-25 05:22:48 +0100
commit77f230894ecd7c4dd57e330d535d3e287b3a3513 (patch)
tree9f80b3e5795aa3d7a579c56c5e15417b37a9b145 /net-libs
parentsys-apps/pkgcraft-tools: drop 0.0.9, 0.0.10 (diff)
downloadgentoo-77f230894ecd7c4dd57e330d535d3e287b3a3513.tar.gz
gentoo-77f230894ecd7c4dd57e330d535d3e287b3a3513.tar.bz2
gentoo-77f230894ecd7c4dd57e330d535d3e287b3a3513.zip
net-libs/rustls-ffi: consistently use 'cargo ctest'
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-libs')
-rw-r--r--net-libs/rustls-ffi/rustls-ffi-0.10.0-r1.ebuild9
-rw-r--r--net-libs/rustls-ffi/rustls-ffi-0.9.1-r1.ebuild9
2 files changed, 16 insertions, 2 deletions
diff --git a/net-libs/rustls-ffi/rustls-ffi-0.10.0-r1.ebuild b/net-libs/rustls-ffi/rustls-ffi-0.10.0-r1.ebuild
index 283533602bf0..40dad3cb1c45 100644
--- a/net-libs/rustls-ffi/rustls-ffi-0.10.0-r1.ebuild
+++ b/net-libs/rustls-ffi/rustls-ffi-0.10.0-r1.ebuild
@@ -89,7 +89,14 @@ multilib_src_compile() {
}
multilib_src_test() {
- cargo_src_test --target="$(rust_abi)"
+ local cargoargs=(
+ --prefix=/usr
+ --libdir="/usr/$(get_libdir)"
+ --target="$(rust_abi)"
+ $(usex debug '--debug' '--release')
+ )
+
+ cargo ctest "${cargoargs[@]}" || die "cargo ctest failed"
}
multilib_src_install() {
diff --git a/net-libs/rustls-ffi/rustls-ffi-0.9.1-r1.ebuild b/net-libs/rustls-ffi/rustls-ffi-0.9.1-r1.ebuild
index 729600d9b131..aef6d683129a 100644
--- a/net-libs/rustls-ffi/rustls-ffi-0.9.1-r1.ebuild
+++ b/net-libs/rustls-ffi/rustls-ffi-0.9.1-r1.ebuild
@@ -108,7 +108,14 @@ multilib_src_compile() {
}
multilib_src_test() {
- cargo_src_test --target="$(rust_abi)"
+ local cargoargs=(
+ --prefix=/usr
+ --libdir="/usr/$(get_libdir)"
+ --target="$(rust_abi)"
+ $(usex debug '--debug' '--release')
+ )
+
+ cargo ctest "${cargoargs[@]}" || die "cargo ctest failed"
}
multilib_src_install() {