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 Feb 5, 2020
1 parent cc4f84b commit 987cdd6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 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
}
7 changes: 2 additions & 5 deletions dev-rust/autocfg/autocfg-1.0.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ 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 987cdd6

Please sign in to comment.