From owner-freebsd-ports@freebsd.org Sun May 14 09:13:35 2017 Return-Path: Delivered-To: freebsd-ports@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 3F5BBD6C9CF for ; Sun, 14 May 2017 09:13:35 +0000 (UTC) (envelope-from jjuanino@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 1C5EAC97 for ; Sun, 14 May 2017 09:13:35 +0000 (UTC) (envelope-from jjuanino@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 18B30D6C9CE; Sun, 14 May 2017 09:13:35 +0000 (UTC) Delivered-To: ports@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 16A92D6C9CD for ; Sun, 14 May 2017 09:13:35 +0000 (UTC) (envelope-from jjuanino@gmail.com) Received: from mail-wm0-x232.google.com (mail-wm0-x232.google.com [IPv6:2a00:1450:400c:c09::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 99396C96 for ; Sun, 14 May 2017 09:13:34 +0000 (UTC) (envelope-from jjuanino@gmail.com) Received: by mail-wm0-x232.google.com with SMTP id b84so52839898wmh.0 for ; Sun, 14 May 2017 02:13:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mail-followup-to:mime-version :content-disposition:content-transfer-encoding:user-agent; bh=1JM0A8g0AkGtlPxID9z0wLne7sD/XVPMTdFxM+Srhb0=; b=I7wDbOqF1wwhD52n5MOWoEYrm2qPt3vSAc74fMSEgnUJOJQOWT5mDxQ+kcKm8SkkAx t9omNefDqx02/xDnklMeslFCs1OUqEz+q7A4WBD6C4Xfkea/mF4ZeaO5806v5kmRilOY gLw1EhL6r7kWK8a0bByAKfE1wYtbUl2RXDX77BlNfkxwoEQmUoNIXtH85ZoZnW2Qsm/G wGrgnFDNff+oH4kN1Tkxbj6TMUa9VyGcLkF0h4w2Hb3w/D3vqPuASixmBK6hxXvxobrX ya1KazaTmmB2q2cibBrTubP1gK3LIYd4Mzus9BUUeT/WgTOShq3nX6Nt3Z1vEt6vluYN aDuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mail-followup-to :mime-version:content-disposition:content-transfer-encoding :user-agent; bh=1JM0A8g0AkGtlPxID9z0wLne7sD/XVPMTdFxM+Srhb0=; b=SWGi/XnxPjDUTpcmHyylE26qhD8/JQOEP6XlWTUCuGcLvFRheh6LGQRMDujOO3DbLk g9tV9U1/M2qx4xtk9v3FJDAhWhs8DYDtL1X72RXNA8LH3DmIgKSKo5/Rp7sZNPtRUvJY gzcGC15MGyX5rdywwUskrpFMkqp+p6JSMOBmsyWh8oPY4AKfG2Wd8Y5a9Zp+q/d7AXc5 FfelatxsxHVjBfoLkAb4CCeNQtDUkYowNdO6TwvZOA2LdOIphiHULcsmCHeuMfb6XAUe CAG4LTXg9asAdK9DKwHICdYhJZM6QK1er6yBPIfJmc87zIpxxYqHpK3Lpf2gYV0JdQkM 9RHg== X-Gm-Message-State: AODbwcBxEkRGvBw8ypA6naTeApEYtLf698/OoOdmS6qkvOzDYaKTCmaD +1O74HRpnjnYhF4m X-Received: by 10.28.29.205 with SMTP id d196mr517570wmd.30.1494753211947; Sun, 14 May 2017 02:13:31 -0700 (PDT) Received: from abel.home.inet (82.158.4.181.dyn.user.ono.com. [82.158.4.181]) by smtp.gmail.com with ESMTPSA id i19sm9374423wmf.0.2017.05.14.02.13.30 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 14 May 2017 02:13:31 -0700 (PDT) Date: Sun, 14 May 2017 11:13:25 +0200 From: =?iso-8859-1?Q?Jos=E9_G=2E?= Juanino To: ports@freebsd.org Subject: Standard way to run test target in specific port Message-ID: <20170514091325.76yi5rxb2a2tjs53@abel.home.inet> Mail-Followup-To: =?iso-8859-1?Q?Jos=E9_G=2E?= Juanino , ports@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Operating-System: FreeBSD 11.0-RELEASE-p2 User-Agent: NeoMutt/20161126 (1.7.1) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 May 2017 09:13:35 -0000 Hello FreeBSD ports! I am porting a backup software (bup backup), and the upstream Makefile has a "test" target. I find useful to make a port knob to allow run such test (disabled by default). What is the best way to accomplish that task? Is there any doc or "best practique" to watch for? I am thinking in write something like this: RUNTEST_DESC= Run test suite # knob ..... .if ${PORT_OPTIONS:MRUNTEST} post-build: ${GMAKE} ${MAKE_ARGS} -C ${WRKDIR}/${PORTNAME}-${PORTVERSION} test .endif But it seems very contrived and ugly. You can find the full shar file in 219174 (with no test target deployed). Thanks for your help! -- José G. Juanino