From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 42915 invoked by alias); 12 Apr 2017 20:51:05 -0000 Mailing-List: contact cygwin-apps-help@cygwin.com; run by ezmlm Precedence: bulk Sender: cygwin-apps-owner@cygwin.com List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps@cygwin.com Received: (qmail 41810 invoked by uid 89); 12 Apr 2017 20:51:04 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.9 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=Gratz, gratz, pvr, Hx-languages-length:1310 X-HELO: limerock02.mail.cornell.edu Received: from limerock02.mail.cornell.edu (HELO limerock02.mail.cornell.edu) (128.84.13.242) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 12 Apr 2017 20:51:03 +0000 X-CornellRouted: This message has been Routed already. Received: from authusersmtp.mail.cornell.edu (granite4.serverfarm.cornell.edu [10.16.197.9]) by limerock02.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id v3CKp2C8009915 for ; Wed, 12 Apr 2017 16:51:03 -0400 Received: from [10.128.140.161] (dhcp-gs-3233.eduroam.cornell.edu [10.128.140.161]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id v3CKp1Kw021370 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Wed, 12 Apr 2017 16:51:02 -0400 Subject: Re: per-version hints proposal To: cygwin-apps@cygwin.com References: <8b4723b2-1bd5-3604-1deb-cfd0a1c7b9d9@dronecode.org.uk> <0ae655c4-a36e-9de8-a7d3-953d5cece84d@dronecode.org.uk> <87lgraal6n.fsf@Rainer.invalid> From: Ken Brown Message-ID: <84e63aa0-de56-94c8-0d89-67574acae97b@cornell.edu> Date: Wed, 12 Apr 2017 20:51:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <87lgraal6n.fsf@Rainer.invalid> Content-Type: multipart/mixed; boundary="------------919ECAB39DD0599C632029A6" X-PMX-Cornell-Gauge: Gauge=X X-PMX-CORNELL-AUTH-RESULTS: dkim-out=none; X-IsSubscribed: yes X-SW-Source: 2017-04/txt/msg00036.txt.bz2 This is a multi-part message in MIME format. --------------919ECAB39DD0599C632029A6 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Content-length: 608 On 4/8/2017 1:00 PM, Achim Gratz wrote: > Jon Turney writes: >> cygport will be updated to (details TBC) accept a --test flag which is >> significant to the cygport package stage, and adds this 'test:' line >> to all the generated PVR.hint files. > > I've opted to make it a command (package-test or pkg-test) instead, as > that seems to fall more in line with my usage pattern and types easier. What about just using a variable (say PKG_TEST) in the cygport file. For example, the line PKG_TEST=1 would cause the 'test:' line to be added to the hint files. The attached patch implements this. Ken --------------919ECAB39DD0599C632029A6 Content-Type: text/plain; charset=UTF-8; name="0001-pkg_pkg-implement-PKG_TEST.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-pkg_pkg-implement-PKG_TEST.patch" Content-length: 703 >From a9a63675dd83416a4ec510c3a2e2c2ca9eda9ad4 Mon Sep 17 00:00:00 2001 From: Ken Brown Date: Wed, 12 Apr 2017 15:39:26 -0400 Subject: [PATCH] pkg_pkg: implement PKG_TEST --- lib/pkg_pkg.cygpart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/pkg_pkg.cygpart b/lib/pkg_pkg.cygpart index 5552040..69910fc 100644 --- a/lib/pkg_pkg.cygpart +++ b/lib/pkg_pkg.cygpart @@ -717,6 +717,12 @@ _EOF message: ${pkg_name[${n}]} "${!pkg_message_var}" _EOF fi + if defined PKG_TEST + then + cat >> ${distdir}/${PN}/${distsubdir}/${pkg_name[${n}]}-${PVR}.hint <<-_EOF +test: +_EOF + fi else warning "${pkg_hint[${n}]%.hint}.hint is missing"; fi -- 2.8.3 --------------919ECAB39DD0599C632029A6--