public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
From: "Jason Pyeron" <jpyeron@pdinc.us>
To: <cygwin-apps@cygwin.com>
Subject: RE: cygport test has zero exit status on failures
Date: Wed, 19 May 2021 12:32:54 -0400	[thread overview]
Message-ID: <6d3701d74ccc$9ec1cf60$dc456e20$@pdinc.us> (raw)
In-Reply-To: <50c37d50-1965-50cb-feb9-f386ab0b1374@gmail.com>

> -----Original Message-----
> From: Marco Atzeri
> Sent: Wednesday, May 19, 2021 3:06 AM
> 
> On 19.05.2021 07:16, ASSI wrote:
> > Jason Pyeron writes:
> 
> >
> >> In any case the all or all-test does not execute the test step, so the
> >> customization of the src_test does not impact the default behaviors.
> >
> > That's beside the point.  We were only talking about the test behaviours
> > or at least I was, anyway.  Now again, if you do that in the cygport
> > file you mix that expectation of getting a return value (that really
> > comes from the way you run cygport in the CI and determine the test
> > status) with the package definition.  If you force that to satisfy your
> > CI requirements, you also break the flow for folks who (as an example)
> > rather do
> >
> > cygport $p finish prep compile inst test pkg

So for the pdfgrep that I am going to maintain, is it acceptable that I want the package to not happen until I address the test failure? Like so?

...
BUILD_REQUIRES="asciidoc gcc-g++ libpoppler-cpp-devel libgcrypt-devel libpcre-devel dejagnu texlive-collection-latex docbook-xml45"

src_test() {
        cd ${B}
        make check
}

> >
> > because a test fail would now error out before getting to the packaging
> > step.  Which is why I was musing that your preference in how to treat a
> > test fail should really be injected from the run-time environment rather
> > than the package definition.  Once that mechanism is in place I can also
> > start writing my own src_test functions that switch their behaviour
> > depending on that setting so that these package definitions would work
> > in either environment.
> 
> in general a generic test failure is not a valid reason to NOT package.
> Most of my packages have peculiar test failures that can be just ignored
> 
> In several, I just use "cygmake -i check" in src_test
> to avoid premature stop of the tests.
> 
> Others requires to be installed before the testsuite is
> properly executed.

Since it is not required to be installed, I would like to lean towards stopping to fix first.

v/r,

Jason


  reply	other threads:[~2021-05-19 16:32 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-09 21:12 Jason Pyeron
2021-05-10  5:06 ` ASSI
2021-05-17 22:29   ` Jason Pyeron
2021-05-18  4:36     ` ASSI
2021-05-18 19:17       ` Jason Pyeron
2021-05-18 20:16         ` Achim Gratz
2021-05-18 20:57           ` Jason Pyeron
2021-05-19  5:16             ` ASSI
2021-05-19  7:05               ` Marco Atzeri
2021-05-19 16:32                 ` Jason Pyeron [this message]
2021-05-19 17:14                   ` Achim Gratz
2021-05-19 17:24                   ` Marco Atzeri
2021-05-19 17:30                     ` Achim Gratz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='6d3701d74ccc$9ec1cf60$dc456e20$@pdinc.us' \
    --to=jpyeron@pdinc.us \
    --cc=cygwin-apps@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).