Skip to content

Commit

Permalink
dev-rust/autocfg: Fix broken test suite
Browse files Browse the repository at this point in the history
Due to changes in rust-crate for rust-toolchain, this test
can now be run.

Additionally, examples are now stripped.

Closes: #3
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Kent Fredric <[email protected]>
  • Loading branch information
kentfredric committed Jan 24, 2020
1 parent a26ac02 commit dea8266
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions dev-rust/autocfg/autocfg-0.1.6.ebuild
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2019 Gentoo Authors
# Copyright 2019-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7
Expand All @@ -13,13 +13,14 @@ LICENSE="|| ( MIT Apache-2.0 )"
KEYWORDS="~amd64 ~x86"
IUSE=""

src_prepare() {
rm -vrf examples/ || die
default
}
src_test() {
# Default tests broken by invalid TARGET
# https://github.com/gyakovlev/rust-dev-overlay/issues/3
# # Tests write to ./target and fail if ./target doesn't exist
# mkdir -p target
# rust-crate_src_test

# Alternative to tests given tests fail
ecargo build --all-targets
mkdir -p target
rust-crate_src_test
}

0 comments on commit dea8266

Please sign in to comment.