diff options
author | Sam James <sam@gentoo.org> | 2023-09-25 05:22:47 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-09-25 05:22:48 +0100 |
commit | 77f230894ecd7c4dd57e330d535d3e287b3a3513 (patch) | |
tree | 9f80b3e5795aa3d7a579c56c5e15417b37a9b145 /net-libs | |
parent | sys-apps/pkgcraft-tools: drop 0.0.9, 0.0.10 (diff) | |
download | gentoo-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.ebuild | 9 | ||||
-rw-r--r-- | net-libs/rustls-ffi/rustls-ffi-0.9.1-r1.ebuild | 9 |
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() { |