From: "Diego Elio Pettenò" <flameeyes@flameeyes.eu>
To: "gentoo-dev@lists.gentoo.org" <gentoo-dev@lists.gentoo.org>
Cc: x11@gentoo.org
Subject: Re: [gentoo-dev] [RFC/PATCH] A cleaner API for virtualx.eclass
Date: Mon, 11 Feb 2013 23:48:49 +0100 [thread overview]
Message-ID: <CAHcsgXSh9Di6FOvLpoTVb-eCNi98MmvdhPAgXUf1ha+HgZ3iEQ@mail.gmail.com> (raw)
In-Reply-To: <1360620883-22562-1-git-send-email-mgorny@gentoo.org>
I'd say, "Go for it!"
But on the other hand I wonder if it might make sense to have
something more generic, so that one only has to call something in a
way such as
virtualx_setup
run_tests --foo
virtualx_cleanup
The reason why I'm wondering this is that we need some more "virtual
environments" for testing purposes, really: so many packages need a
D-Bus session (and I'd rather have them using a test session than a
system one!), and at least in Ruby world we often need a database
(sometimes more than one)...
Diego Elio Pettenò — Flameeyes
flameeyes@flameeyes.eu — http://blog.flameeyes.eu/
On Mon, Feb 11, 2013 at 11:14 PM, Michał Górny <mgorny@gentoo.org> wrote:
> Hello, fellow developers,
>
> The current virtualx.eclass API is a bit insane. It seems a bit like
> stacking of a few next APIs, mostly designed to quickly run 'make
> check', then extended to general functions.
>
> For example running a function 'run_tests' with parameter '--foo' would
> look like:
>
> VIRTUALX_COMMAND=run_tests virtualmake --foo
>
> which is really awful, considering that '--foo' is a parameter to
> 'run_tests' and not virtualmake.
>
> My patches introduce a single wrapper with argv-as-parameter syntax.
> That is, the fore-mentioned example would look like:
>
> virtualx run_tests --foo
>
> Depending on the maintainer decisions and your feedback, I believe that
> even all the X* short-hand functions could be deprecated. They are a bit
> shorter:
>
> Xemake check
>
> vs:
>
> virtualx emake check
>
> but I don't think that's much of a difference.
>
> What are your thoughts?
>
>
next prev parent reply other threads:[~2013-02-11 22:48 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-11 22:14 [gentoo-dev] [RFC/PATCH] A cleaner API for virtualx.eclass Michał Górny
2013-02-11 22:14 ` [gentoo-dev] [PATCH virtualx.eclass 1/5] Introduce a cleaner alternative to VIRTUALX_COMMAND="" virtualmake Michał Górny
2013-02-11 22:14 ` [gentoo-dev] [PATCH virtualx.eclass 2/5] Use eqawarn from eutils.eclass Michał Górny
2013-02-11 22:14 ` [gentoo-dev] [PATCH virtualx.eclass 3/5] Convert X* functions to the new API Michał Górny
2013-02-11 22:14 ` [gentoo-dev] [PATCH virtualx.eclass 4/5] Deprecate virtualmake in favor of the new syntax Michał Górny
2013-02-11 22:14 ` [gentoo-dev] [PATCH virtualx.eclass 5/5] (Optionally) deprecate all X* wrappers Michał Górny
2013-02-11 22:48 ` Diego Elio Pettenò [this message]
2013-02-13 15:08 ` [gentoo-dev] [RFC/PATCH] A cleaner API for virtualx.eclass Gilles Dartiguelongue
2013-02-11 23:42 ` Andreas K. Huettel
2013-02-12 17:42 ` "Paweł Hajdan, Jr."
2013-02-26 14:40 ` Michał Górny
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=CAHcsgXSh9Di6FOvLpoTVb-eCNi98MmvdhPAgXUf1ha+HgZ3iEQ@mail.gmail.com \
--to=flameeyes@flameeyes.eu \
--cc=gentoo-dev@lists.gentoo.org \
--cc=x11@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