Adding the env var makes the tests work.
Making the tmp dir yields 4 fewer test failures.
Stu
Index: Makefile
===================================================================
RCS file: /cvs/ports/mail/neomutt/Makefile,v
diff -u -p -u -p -r1.99 Makefile
--- Makefile 9 Jan 2025 12:30:43 -0000 1.99
+++ Makefile 10 Jan 2025 15:51:23 -0000
@@ -51,6 +51,8 @@ CONFIGURE_ENV= autosetup_tclsh="${LOCALB
SYSCONFDIR= ${BASESYSCONFDIR}/mutt
FAKE_FLAGS= sysconfdir="${PREFIX}/share/examples/neomutt"
+TEST_FLAGS= NEOMUTT_TEST_DIR=${WRKBUILD}
+
.if ${FLAVOR:Mgpgme}
CONFIGURE_ARGS+= --autocrypt \
--gpgme \
@@ -78,5 +80,8 @@ LIB_DEPENDS+= databases/kyotocabinet
WANTLIB+= kyotocabinet
CONFIGURE_ARGS+= --kyotocabinet
.endif
+
+pre-test:
+ @mkdir -p ${WRKBUILD}/tmp
.include <bsd.port.mk>