From owner-svn-ports-head@freebsd.org Mon Nov 9 17:32:07 2015 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A463FA2A412; Mon, 9 Nov 2015 17:32:07 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 55A5910B0; Mon, 9 Nov 2015 17:32:07 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id tA9HW6eq073923; Mon, 9 Nov 2015 17:32:06 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id tA9HW67l073922; Mon, 9 Nov 2015 17:32:06 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <201511091732.tA9HW67l073922@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Mon, 9 Nov 2015 17:32:06 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r401117 - head/Mk X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Nov 2015 17:32:07 -0000 Author: amdmi3 Date: Mon Nov 9 17:32:06 2015 New Revision: 401117 URL: https://svnweb.freebsd.org/changeset/ports/401117 Log: Don't use cookie for test target Test target doesn't produce anything and nothing depends on it. Also it's often useful to run tests multiple times in a row, so having a cookie which remembers that the tests were already ran and inhibits subsequent test runs is needless. It also eliminates the need for retest target. Approved by: portmgr (mat) Differential Revision: D3875 Modified: head/Mk/bsd.port.mk Modified: head/Mk/bsd.port.mk ============================================================================== --- head/Mk/bsd.port.mk Mon Nov 9 17:14:12 2015 (r401116) +++ head/Mk/bsd.port.mk Mon Nov 9 17:32:06 2015 (r401117) @@ -1987,7 +1987,6 @@ REINPLACE_CMD?= ${SED} ${REINPLACE_ARGS} EXTRACT_COOKIE?= ${WRKDIR}/.extract_done.${PORTNAME}.${PREFIX:S/\//_/g} CONFIGURE_COOKIE?= ${WRKDIR}/.configure_done.${PORTNAME}.${PREFIX:S/\//_/g} INSTALL_COOKIE?= ${WRKDIR}/.install_done.${PORTNAME}.${PREFIX:S/\//_/g} -TEST_COOKIE?= ${WRKDIR}/.test_done.${PORTNAME}.${PREFIX:S/\//_/g} BUILD_COOKIE?= ${WRKDIR}/.build_done.${PORTNAME}.${PREFIX:S/\//_/g} PATCH_COOKIE?= ${WRKDIR}/.patch_done.${PORTNAME}.${PREFIX:S/\//_/g} PACKAGE_COOKIE?= ${WRKDIR}/.package_done.${PORTNAME}.${PREFIX:S/\//_/g} @@ -2981,7 +2980,7 @@ build: configure # Disable test .if defined(NO_TEST) && !target(test) test: stage - @${TOUCH} ${TOUCH_FLAGS} ${TEST_COOKIE} + @${DO_NADA} .endif # Disable package @@ -5788,7 +5787,7 @@ _${_t}_REAL_SUSEQ+= ${s} # See above *_SEQ and *_DEP. The _DEP will run before this defined target is # ran. The _SEQ will run as this target once _DEP is satisfied. -.for target in extract patch configure build stage install test package +.for target in extract patch configure build stage install package # Check if config dialog needs to show and execute it if needed. If is it not # needed (_OPTIONS_OK), then just depend on the cookie which is defined later @@ -5857,6 +5856,10 @@ fetch: ${_FETCH_DEP} ${_FETCH_REAL_SEQ} pkg: ${_PKG_DEP} ${_PKG_REAL_SEQ} .endif +.if !target(test) +test: ${_TEST_DEP} ${_TEST_REAL_SEQ} +.endif + .endif # End of post-makefile section.