From: Michael Orlitzky <mjo@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] Proposal for changes for the next EAPI version
Date: Tue, 17 May 2016 07:26:03 -0400 [thread overview]
Message-ID: <573AFFCB.8030305@gentoo.org> (raw)
In-Reply-To: <CAK23ojSrARPcsrzDuXvcpUiJWe=YtAMyEh68+90KEiUDUY1G3Q@mail.gmail.com>
On 05/17/2016 06:01 AM, Pallav Agarwal wrote:
> Hi,
> You are right, of course.
> The target is to standardize something that would encourage maintainers
> to actually provide non-upstream scripts to test packages. At the same
> time, it should be possible to use those scripts for automated testing
> without
> human interference.
>
We already have "emerge --config" which is expected to be run after the
install process has completed, so I don't think that this is too much of
a stretch. Maybe call the phase "pkg_test" analogous to "pkg_config" and
in contrast to "src_test" which runs within the working directory. Then
"emerge --test" could run it.
I stole the Emacs "test plan" idea for a few Haskell packages:
https://wiki.gentoo.org/wiki/Project:Haskell/Test_plans
These do go a little beyond the scope of unit tests: they check that we
installed the package in the right place, that it's available to your
ghci interpreter, and that we haven't installed some other library with
a name collision.
Some of them have predictable output (like when we hash a string), but
others might cause some trouble. The expected output for hscolour is
"you should see a syntax-highlighted version of Example.hs echoed to
your terminal." I don't care what colors show up, as long as that happens.
Still, even if it doesn't work in 100% of cases, I think it could be
useful. Some people may have inflated ideas of what the stabilization
process currently involves. In many cases, it's a compile/execute test
with no expected results and that could easily be automated even if it's
not the world's best stabilization process.
next prev parent reply other threads:[~2016-05-17 11:26 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-16 12:43 [gentoo-dev] Proposal for changes for the next EAPI version Pallav Agarwal
2016-05-16 16:38 ` Luis Ressel
2016-05-17 7:37 ` Pallav Agarwal
2016-05-17 8:02 ` Kent Fredric
2016-05-17 8:46 ` Tobias Klausmann
2016-05-17 9:15 ` Kent Fredric
2016-05-17 10:57 ` Rich Freeman
2016-05-17 11:25 ` Pallav Agarwal
2016-05-17 11:42 ` Rich Freeman
2016-05-17 10:01 ` Pallav Agarwal
2016-05-17 11:26 ` Michael Orlitzky [this message]
2016-05-17 11:29 ` Ciaran McCreesh
2016-05-18 8:18 ` [gentoo-dev] " Duncan
2016-05-17 13:53 ` [gentoo-dev] " M.B.
2016-05-17 14:02 ` Brian Dolbec
2016-05-17 15:34 ` Luis Ressel
2016-05-17 16:05 ` Sébastien Fabbro
2016-05-17 16:42 ` Rich Freeman
2016-05-18 0:14 ` Kent Fredric
2016-05-18 0:35 ` M. J. Everitt
2016-05-18 0:44 ` Kent Fredric
2016-05-18 0:48 ` M. J. Everitt
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=573AFFCB.8030305@gentoo.org \
--to=mjo@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/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