svn commit: r413031 - head/devel/dbus-tcl
Pietro Cerutti
gahr at FreeBSD.org
Mon Apr 11 13:33:21 UTC 2016
Author: gahr
Date: Mon Apr 11 13:33:20 2016
New Revision: 413031
URL: https://svnweb.freebsd.org/changeset/ports/413031
Log:
devel/dbus-tcl: improve test target
Modified:
head/devel/dbus-tcl/Makefile
Modified: head/devel/dbus-tcl/Makefile
==============================================================================
--- head/devel/dbus-tcl/Makefile Mon Apr 11 13:25:21 2016 (r413030)
+++ head/devel/dbus-tcl/Makefile Mon Apr 11 13:33:20 2016 (r413031)
@@ -19,6 +19,8 @@ OPTIONS_DEFINE= DOCS
DOCSDIR= ${PREFIX}/share/doc/dbus
PORTDOCS= *
+TEST_TARGET= do-test
+
USES= pkgconfig tcl:85+
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--with-tcl=${TCL_LIBDIR} \
@@ -32,7 +34,12 @@ post-patch:
${REINPLACE_CMD} -e '/^INSTALL_PROGRAM/s|$$| -s|' \
${WRKSRC}/Makefile.in
-regression-test:
- cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} test
+do-test:
+ DBUS=$$(${LOCALBASE}/bin/dbus-daemon --session --print-address --fork --print-pid); \
+ DBUS_ADDR=$$(echo $$DBUS | awk '{print $$1}'); \
+ DBUS_PID=$$(echo $$DBUS | awk '{print $$2}'); \
+ DBUS_ENV=DBUS_SESSION_BUS_ADDRESS=$$DBUS_ADDR; \
+ ${SETENV} ${MAKE_ENV} $$DBUS_ENV ${MAKE} -C ${WRKSRC} test; \
+ kill $$DBUS_PID
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list