[Date Prev][Date Next] [Thread Prev][Thread Next]
Re: automated storage test framework
- From: Martin Sivak <msivak redhat com>
- To: Discussion of Development and Customization of the Red Hat Linux Installer <anaconda-devel-list redhat com>
- Subject: Re: automated storage test framework
- Date: Tue, 11 May 2010 03:53:52 -0400 (EDT)
I do not agree with Hans on this, I would not put this kind of stuff to tests/ dir. Or it should be possible to disable the whole set as needed.
The tests described here are more verification using virtual machine than unit test system. We might create two separate test suites.. one for past-build verification of components and API and one for acceptance-testing.
I've been working on Mock unit testing framework for some time as I want to be able to run majority of tests during development (to see if I have broken something else). And I expect to put our Brno intern to this task too. Testing separated classes with their bindings faked will require almost nothing special on our machines.
Acceptance testing is then very useful when we have the final thing, but it is pain when you only need a quick check of your modifications. And those heavyweight tests require a lots of stuff installed and prepared on the testing machine. I already hate the autotools we have in anaconda, because we need all dependencies with proper versions to create a tarball.. Do you know how painful is preparing .srpm for koji on f12 because of this?
I like the idea of those tests and I think we need them, but do not make it mandatory for the developer to have all the requirements on his devel box or just .. do not make me run them when I need fast build-test-improve cycle (typically for stage1 loader changes) in mock or koji.
msivak redhat com
Red Hat Czech
Anaconda team / Brno, CZ
----- "Hans de Goede" <hdegoede redhat com> wrote:
> On 05/10/2010 10:53 PM, James Laska wrote:
> > On Mon, 2010-05-10 at 15:05 -0400, Chris Lumens wrote:
> >> http://clumens.fedorapeople.org/anaconda-storage-test
> >> Over the past few weeks, I've been hard at work on creating an
> >> storage test framework for anaconda. We came up with this concept
> >> sometime around FUDCon Toronto, but it's just finally come
> >> This framework provides a way to automatically run a kickstart
> >> partitioning snippet and validate that it does what you intended it
> >> I currently have it running against the latest anaconda package in
> >> rawhide, but there's no reason it couldn't instead be run against
> >> git repo. We'd just have to do scratch builds beforehand.
> >> Running against F13 and earlier is impossible since it requires my
> >> modular anaconda patches.
> >> I also don't see any reason why this couldn't be even more
> automated -
> >> instead of requiring you to kick off a run, we could easily script
> it to
> >> happen every time there's a new anaconda build provided we have
> >> spare hardware to do so. If we decide to do that, I'll have to
> >> results reporting fancier as it's just logging to a local directory
> >> now.
> >> My current strategy is to go through the partitioning section of
> >> Fedora test matrix
> >> and convert all those into test cases. Once we've got that done,
> we can
> >> start adding test cases to check very specific pieces - ignoredisk
> >> behavior, what happens when you have two existing disks with
> >> LVM metadata, conditions from a single bug, iSCSI, whatever. It's
> >> really pretty flexible.
> >> Currently, this code doesn't live anywhere besides a directory on
> >> computer. It's not in a local anaconda git branch. It's not in
> >> Is there a good place for this stuff to live, or is it destined to
> >> off on its own?
> > Committing this to AutoQA seems appropriate to me. I can see this
> > living alongside other installation related tests in AutoQA. Not
> > if you have commit privs, but we can certainly fix that.
> Or maybe just make it part of the tests dir in anaconda git, see
> > What frequency do you anticipate having these tests run? Every new
> > anaconda build?
> I would really like to see these tests be run as part of a build,
> is a reason a spec file can have a %check section, because test cases
> is a very valid reason to abort a build.
> I'm not sure how feasible this is though, I guess that for building
> livecd repo and thus network access is needed, and it will take quite
> a bit of resources too. If others agree it is desirable to run this
> anacona (package / rpm) build time, we could chat to the
> people about this.
> >> What does everyone think? Are my test cases too picky? Not picky
> >> enough? Is there something obviously stupid that I'm doing? I'd
> >> to get some help plowing through the test matrix before I open this
> >> to the world at large to play with.
> > This is amazing stuff! Well done :)
> I have to second that, great work!
> Are you aware of the scsi_debug module ? That allows you to create
> fake scsi
> disks with very precise parameters. I guess you can probably make them
> enough to make multipath tools think they are a multipath. This would
> tests for things like partition aligning (faking 4k physical sector
> disks), etc.
> Anaconda-devel-list mailing list
> Anaconda-devel-list redhat com
[Date Prev][Date Next] [Thread Prev][Thread Next]