From: Hugo Mills <hugo@carfax.org.uk>
To: Dave Chinner <david@fromorbit.com>
Cc: Hemanth Kumar <hemanthkumar51@gmail.com>,
linux-btrfs@vger.kernel.org, skjmca51@gmail.com,
ganeshkumar14@gmail.com, kirantpatil@gmail.com,
praneethu.u@gmail.com, chethan.casey@gmail.com, sensille@gmx.net,
bo.li.liu@oracle.com, sandeen@redhat.com
Subject: Re: [btrfs-progs] testing btrfs hierarchical quotas
Date: Sat, 16 Feb 2013 17:45:44 +0000 [thread overview]
Message-ID: <20130216174544.GJ28997@carfax.org.uk> (raw)
In-Reply-To: <20130216075509.GW26694@dastard>
[-- Attachment #1: Type: text/plain, Size: 2659 bytes --]
On Sat, Feb 16, 2013 at 06:55:09PM +1100, Dave Chinner wrote:
> On Fri, Feb 15, 2013 at 08:59:06PM +0000, Hugo Mills wrote:
> > Hi, Hemanth,
> >
> > Here's a question -- what are you testing? (Not just here, but in
> > general, with your test infrastructure)
> >
> > There are (at least) three classes of tests you could be doing:
> >
> > 1) Unit tests, which test individual functions within the code and
> > ensure they do what they're meant to do.
> >
> > 2) Integration tests, which test the full end-to-end system.
> >
> > 3) Partial integration tests, which exercise the kernel
> > filesystem code.
> >
> > 4) Partial integration tests, which exercise the userspace tools code.
> >
> >
> > Now, clearly you're not doing (1) here. It's going to be hard to
> > separate (2) from (3) and (4), but it's possible to write your tests
> > to do more of one or of the other. (*)
> >
> > xfstests clearly is much more geared to (3), and stresses the
> > kernel filesystem implementation rather than the userspace tools. If
>
> Definitely not. There are lots of userspace tools tests in xfstests
> for stuff like mkfs.xfs, xfs_repair, xfs_dump/restore,
> xfs_quota, xfs_metadump/restore, xfs_copy, etc.
OK, this is my mistake. I guess I've basically seen so many
kernel-side things fail from xfstests, I'd assumed that was
exclusively what it was testing. Thanks for the correction.
> > you want to test the implementation of qgroups, it belongs in
> > xfstests. If you want to test the userspace code, you need to make
> > sure that (over all your tests) you cover every command-line option,
> > and every different way of using the tool, and ensure that it does the
> > right things.
>
> Yup, that's why there are are so many xfs specific tests. :) e.g.
> there are 31 tests that use xfsdump/restore in lots of different
> ways, including exercising dumping to tape devices if you have the
> hardware...
[snip]
> Seriously, guys, just write new tests for xfstests. Everything you
> need to run btrfs-progs tests is already there. Don't try to
> re-invent the wheel simply because you don't understand how the
> current wheels we have are made....
As long as xfstests already has tests for userspace tools in it,
then I'm quite happy to see it all go there.
My point about being clear exactly which bit of the end-to-end
system the test is there to exercise still stands, though.
Hugo.
--
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
--- He's playing Schubert. I think Schubert is losing. ---
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
next prev parent reply other threads:[~2013-02-16 17:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-15 13:05 [btrfs-progs] testing btrfs hierarchical quotas Hemanth Kumar
2013-02-15 13:48 ` shilong wang
2013-02-15 20:59 ` Hugo Mills
2013-02-16 7:55 ` Dave Chinner
2013-02-16 17:45 ` Hugo Mills [this message]
[not found] ` <CAG_LFoCRWaKHe2_AYspN3qUUFw4iWgdB56fWeSGP5C0iKAaX8w@mail.gmail.com>
2013-02-18 11:20 ` Hugo Mills
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=20130216174544.GJ28997@carfax.org.uk \
--to=hugo@carfax.org.uk \
--cc=bo.li.liu@oracle.com \
--cc=chethan.casey@gmail.com \
--cc=david@fromorbit.com \
--cc=ganeshkumar14@gmail.com \
--cc=hemanthkumar51@gmail.com \
--cc=kirantpatil@gmail.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=praneethu.u@gmail.com \
--cc=sandeen@redhat.com \
--cc=sensille@gmx.net \
--cc=skjmca51@gmail.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