No package change.
`make test' only runs unit tests at the moment, but the bats(1) suite
covers more and will gain a new test for a new fix soon, so I'd like to
see those results in our port as well.
OK?
Index: Makefile
===================================================================
RCS file: /cvs/ports/sysutils/bupstash/Makefile,v
retrieving revision 1.13
diff -u -p -r1.13 Makefile
--- Makefile 8 Nov 2022 16:14:42 -0000 1.13
+++ Makefile 1 Jan 2023 17:12:18 -0000
@@ -19,15 +19,34 @@ MASTER_SITES = https://github.com/andre
DISTFILES = ${DISTNAME}-man${EXTRACT_SUFX} \
${DISTNAME}-src+deps${EXTRACT_SUFX}
-MODULES = devel/cargo
+MODULES = devel/cargo \
+ lang/python
+
MODCARGO_RUSTFLAGS = -C debuginfo=0
+MODPY_RUNDEP = No
+MODPY_BUILDDEP = No
+MODPY_ADJ_FILES = cli-tests/mk-random-dir.py
+
LIB_DEPENDS = security/libsodium
-TEST_DEPENDS = devel/bats
+TEST_DEPENDS = devel/bats \
+ sysutils/coreutils \
+ sysutils/truncate \
+ textproc/gdiff \
+ textproc/jq
SEPARATE_BUILD = Yes
WRKDIST = ${WRKDIR}
+
+do-test:
+ ${MODCARGO_TEST_TARGET}
+ # GNU `head -c', `cmp --silent', `truncate'
+.for prog in head cmp truncate
+ ln -sf /usr/local/bin/g${prog} ${WRKDIR}/bin/${prog}
+.endfor
+ env PATH=${WRKBUILD}/target/release:${PORTPATH} \
+ bats --timing ${WRKSRC}/cli-tests/
post-install:
.for m in 1 7
No comments:
Post a Comment