X-Original-To: alpine-devel@lists.alpinelinux.org Received: from mail-qt0-f177.google.com (mail-qt0-f177.google.com [209.85.216.177]) by lists.alpinelinux.org (Postfix) with ESMTP id 727035C420F for ; Fri, 27 Jan 2017 01:28:33 +0000 (GMT) Received: by mail-qt0-f177.google.com with SMTP id w20so45560282qtb.1 for ; Thu, 26 Jan 2017 17:28:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dereferenced-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=hThQP0ae7vt+YnY4WcZSc5F5/CH+bqUApC1oY6eva8M=; b=NyOWHH7q2VnVELGmOKqlzhKmj+9fm2PWGfhYSnequFxhHXcx8mkrIS6Dk8obT5mzF/ B9SwVRD0AAaf5txh4ZtmyqH+fPEVz4Y60Pb7kp7kfhcq78Jfu8mgow+7eajvUH5ugd0z 62MZi/awCUjCIRoapHHZQD+r6aM3Vm+tn6d9OIG08KgyvUGgKoIymIERCE/rqWZ4/D6J jv6FD9ZUCUnowZ7hR5WkSJLmHA5Kn6bezV8HyDSQWnAk+M7SAHsIUlpBqr3GCxM01s+R bWekTODmgV+V9pLMPGVTSwCLjVUyE4e1iTMlmz9Lsty+LjVrmQjX1Yf4nzxKM8JkM1Ml D6iA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=hThQP0ae7vt+YnY4WcZSc5F5/CH+bqUApC1oY6eva8M=; b=YNKsJsHp009+rWVmvRQnq7J3tm5OZrf2f/C3bmq+rirvaPjTOfs2IgE4tbE3yY3cQ7 L0CaLdQ7Jkw9oqGapcH4qRh7BrDNbUULnmugmGcglvtHcUbks6mhmxlBWa5f8BrGOxG/ Cu3MZ1Mk8pVsLyNPusWLQWJg/g4unSQj1yobuLAZCVD3RNRU+kuFavroczkLIRXB25G2 u5ougMyAztlKp688l1TRWU7b73FlYmYSbO1NAf1sKo/uViWgZNrMdTi7ofCkh1ODZCFI cECfwktzKqGIqWh/5IHfkbJOJ0ClkediLCOyK1zQukjAr3scoYq2SVbmDBzwwUMJU8ei a8WQ== X-Gm-Message-State: AIkVDXKRdjBM/2V7sRLPggBLQ8FVm02F200nanAURYZ63L6RyDlzictViSqcc+3Q4myaq78MRudZPumV35wF7w== X-Received: by 10.200.39.25 with SMTP id g25mr5390111qtg.228.1485480512821; Thu, 26 Jan 2017 17:28:32 -0800 (PST) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Received: by 10.200.1.17 with HTTP; Thu, 26 Jan 2017 17:28:32 -0800 (PST) In-Reply-To: References: <20170126112655.44ad5c0e@vostro.util.wtbts.net> <4EDA0683-3991-44D0-882C-C34FBD4C38B2@jirutka.cz> From: William Pitcock Date: Thu, 26 Jan 2017 19:28:32 -0600 Message-ID: Subject: Re: [alpine-devel] Proposal: testsuite support in APKBUILDs To: 7heo <7heo@mail.com> Cc: jakub@jirutka.cz, alpine-devel@lists.alpinelinux.org, timo.teras@iki.fi Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, In some ways I am inclined to agree with Jakub, mostly because "make check" is the main way of invoking a testsuite on autotools platforms. It is perhaps not the most correct description of the phase, but it does fit with "make check" usage in autotools, so people would be familiar with it. Lets move forward with check phase and !check in $features? William On Thu, Jan 26, 2017 at 8:34 AM, 7heo <7heo@mail.com> wrote: > Hey, > > Since we're talking about vocabulary and semantics, I would rather avoid = check, since it doesn't reflect what happens. A testsuite is a suite (set o= f, ordered, predictable) of tests (dynamic procedure to validate an element= , that has to be executed). A check is merely an observation with assertion= on an existing state. As an example, you can check the door is open, but y= ou have to test if the lock works (you can't just check it in normal condit= ions and without a specialized apparatus). > > Long story short, I don't have any problem with making it shorter and sim= pler, but I would rather have something that matches what is actually does.= :) > > Theo. > > On Thu Jan 26 14:08:29 2017 GMT+0100, Jakub Jirutka wrote: >> Hi, >> >> currently we have the following phases: sanitycheck, builddeps, clean, f= etch, unpack, prepare, mkusers, rootpkg, cleanup. All of them except rootpk= g are verbs. So I=E2=80=99d prefer =E2=80=9Ccheck=E2=80=9D (as Arch) instea= d of =E2=80=9Ctestsuite=E2=80=9D. >> >> Jakub >> >> > On 26. Jan 2017, at 10:26, Timo Teras wrote: >> > >> > On Wed, 25 Jan 2017 21:38:00 -0600 >> > William Pitcock wrote: >> > >> >> As such, I propose we add a testsuite() phase to the build process, >> >> that runs after build(), but prior to package(). APKBUILDs should >> >> override the testsuite phase, but the default_testsuite() function >> >> will be a noop for the Alpine 3.6 release cycle that raises a warning >> >> that the APKBUILD does not define any mechanism for running a >> >> testsuite. If "!testsuite" is defined in $features, the warning is >> >> ignored. >> >> >> >> For cross-builds, the testsuite would be skipped unless the package >> >> is noarch. >> >> >> >> After Alpine 3.6 (or maybe 3.7), we change the warning to a fatal >> >> error, requiring APKBUILDs to explicitly opt out of running a >> >> testsuite through $features. >> >> >> >> Thoughts? >> > >> > +1 >> > >> > We have some packages that run 'make check' or similar, but it would b= e >> > good to make it a separate step. >> > >> > The above plan sounds good to me. >> > >> > Thanks, >> > Timo >> > >> > >> > --- >> > Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org >> > Help: alpine-devel+help@lists.alpinelinux.org >> > --- >> > >> >> >> >> --- >> Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org >> Help: alpine-devel+help@lists.alpinelinux.org >> --- >> >> --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---