Date: Mon, 11 Apr 2016 13:33:20 +0000 (UTC) From: Pietro Cerutti <gahr@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r413031 - head/devel/dbus-tcl Message-ID: <201604111333.u3BDXKUn057943@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604111333.u3BDXKUn057943>