git: cc03b17bc741 - main - devel/libfaketime: Add testing support
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 26 Oct 2025 10:30:22 UTC
The branch main has been updated by arrowd:
URL: https://cgit.FreeBSD.org/ports/commit/?id=cc03b17bc741be2a1906065621ccfb6b9299165c
commit cc03b17bc741be2a1906065621ccfb6b9299165c
Author: Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2025-10-08 10:16:18 +0000
Commit: Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2025-10-26 10:29:38 +0000
devel/libfaketime: Add testing support
Approved by: bofh
Differential Revision: https://reviews.freebsd.org/D52978
---
devel/libfaketime/Makefile | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/devel/libfaketime/Makefile b/devel/libfaketime/Makefile
index 2ea25c82512e..0c83b849341d 100644
--- a/devel/libfaketime/Makefile
+++ b/devel/libfaketime/Makefile
@@ -11,12 +11,14 @@ LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= coreutils>=0:sysutils/coreutils
+TEST_DEPENDS= bash:shells/bash
-USES= gmake shebangfix
+USES= gmake perl5 shebangfix
USE_GITHUB= yes
GH_ACCOUNT= wolfcw
USE_GCC= yes
USE_LDCONFIG= yes
+USE_PERL5= test
SHEBANG_FILES= test/functests/common.inc test/testframe.sh
@@ -26,6 +28,7 @@ SHEBANG_FILES= test/functests/common.inc test/testframe.sh
MAKE_ENV+= FEATS="-DFAKE_SLEEP -DFAKE_TIMERS -DFAKE_INTERNAL_CALLS" \
WARNS="-Wall"
TEST_TARGET= test
+TESTING_UNSAFE= The functests/test_exclude_mono.sh:get_monotonic_time() test hangs
PLIST_FILES= bin/faketime \
lib/faketime/libfaketime.so.1 \
@@ -34,6 +37,10 @@ PLIST_FILES= bin/faketime \
share/doc/faketime/README \
share/man/man1/faketime.1.gz
+post-patch:
+ ${REINPLACE_CMD} -e 's|-lcompat|-lcompat -lutil|' \
+ ${WRKSRC}/test/Makefile
+
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/faketime \
${STAGEDIR}${PREFIX}/lib/faketime/*.so.*