[Libvir] [PATCH] Add new testing framework and the first test to use it.
Daniel P. Berrange
berrange at redhat.com
Thu Mar 20 12:50:31 UTC 2008
On Wed, Mar 19, 2008 at 03:27:30PM +0100, Jim Meyering wrote:
> A week or so ago, I read a bug report on this list with a simple
> reproducer + fix that was just begging for a test suite addition.
>
> This change adds framework to make that easy, and adds the first test.
> I uncovered problems in tests/Makefile.am along the way and just
> posted a patch for that.
>
> This adds most of a portable (bourne-shell-based) test framework that also
> provides for convenient isolation of individual tests (so we can easily
> parallelize them without worrying one will tromp on files of another).
> In a couple years when running "make check" runs hundreds of tests,
> you'll definitely want them to run in parallel. The mktempd script is
> not new. I first used it in coreutils and parted, but removed it from
> coreutils after that package acquired its own C-based implementation.
>
> test-lib.sh is from coreutils, but was inspired by the file by the
> same name in git.git's own t/ (tests) directory.
All seems reasonable to me.
Dan.
--
|: Red Hat, Engineering, Boston -o- http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
More information about the libvir-list
mailing list