aboutsummaryrefslogtreecommitdiff
path: root/devel/dbus-tcl/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/dbus-tcl/Makefile')
-rw-r--r--devel/dbus-tcl/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/devel/dbus-tcl/Makefile b/devel/dbus-tcl/Makefile
index 4115b8758d63..5c5505fdcc25 100644
--- a/devel/dbus-tcl/Makefile
+++ b/devel/dbus-tcl/Makefile
@@ -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>