mirror of
https://git.freebsd.org/ports.git
synced 2026-06-02 11:08:52 +00:00
sysutils/rust-coreutils: fix unit tests
PR: 294424, 294597 Reported by: diizzy
This commit is contained in:
+7
-1
@@ -172,6 +172,7 @@ CARGO_BUILD_ARGS?=
|
||||
CARGO_INSTALL_ARGS?=
|
||||
CARGO_INSTALL_PATH?= .
|
||||
CARGO_TEST_ARGS?=
|
||||
CARGO_TEST_AFTER_ARGS?=
|
||||
CARGO_UPDATE_ARGS?=
|
||||
|
||||
# Use module targets ?
|
||||
@@ -364,13 +365,18 @@ do-install:
|
||||
. endfor
|
||||
. endif
|
||||
|
||||
. if !empty(CARGO_TEST_AFTER_ARGS)
|
||||
_CARGO_TEST_AFTER_ARGS= -- ${CARGO_TEST_AFTER_ARGS}
|
||||
. endif
|
||||
|
||||
. if !target(do-test) && ${CARGO_TEST:tl} == "yes"
|
||||
do-test:
|
||||
@${CARGO_CARGO_RUN} test \
|
||||
--manifest-path ${CARGO_CARGOTOML} \
|
||||
--verbose \
|
||||
--verbose \
|
||||
${CARGO_TEST_ARGS}
|
||||
${CARGO_TEST_ARGS} \
|
||||
${_CARGO_TEST_AFTER_ARGS}
|
||||
. endif
|
||||
|
||||
#
|
||||
|
||||
@@ -20,6 +20,11 @@ CARGO_FEATURES= unix
|
||||
BINPREFIX= uu-
|
||||
PLIST_SUB= BINPREFIX=${BINPREFIX}
|
||||
|
||||
# The French locale translation tests are flaky across distributions.
|
||||
CARGO_TEST_AFTER_ARGS= --skip test_error_messages_french_translation \
|
||||
--skip test_french_colored_error_messages \
|
||||
--skip test_help_messages_french_translation
|
||||
|
||||
post-build:
|
||||
${INSTALL_SCRIPT} ${FILESDIR}/symlink-install-helper.sh.in ${CARGO_TARGET_DIR}/symlink-install-helper.sh
|
||||
@${REINPLACE_CMD} -e 's|%%GREP%%|${GREP}|g' \
|
||||
|
||||
Reference in New Issue
Block a user