Skip to content

Fork of git://git.kernel.org/pub/scm/fs/ext2/xfstests-bld.git

Notifications You must be signed in to change notification settings

azat-archive/xfstests-bld

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The xfstests-bld package makes it easy to build xfstests in a hermetic
build environment (so it is not dependent on possibly out-of-date
distro versions of libaio, xfsprogs, etc.).  It also contains scripts
which make it easy to run xfstests in a KVM guest.  It is currently
optimized for ext4 testing, but it should be fairly simple to
generalize this for testing other file systems.

If you are using debian testing, it is pretty simple to generate your
own test appliance which uses kvm to run xfstests.  If you are using a
different distribution, you can fetch a copy of root_fs.img from
https://www.kernel.org/pub/linux/kernel/people/tytso/kvm-xfstests.

Or you can take a look at the kvm-xfstests/test-appliance/gen-image
and create something which works for your distribution.  Please let me
know if create something which works well for other distributions.

1.  "make ; make tarball" to generate the xfstests.tar.gz file.
2.  cd to kvm-xfststs/test-appliance, and run as root the shell script
    "gen-image".  This will create the root_fs.img file.
3.  build a kernel which does not use modules (at least for all of the
    device drivers required for running under kvm).  There are sample
    kernel configs found in the top-level kernel-configs directory.
    Note that if you build a 32-bit i386 kernel, you will need to make
    to build the root_fs.img file in 32-bit build chroot.  You can use
    a 32-bit userspace with a 64-bit kernel; in fact, this is a good
    way to sanity check the ioctl compatibility code.
4.  Adjust the KERNEL= line in kvm-xfststs/config to point at your
    kernel's bzImage file.
5.  cd to kvm-xfstests, and run "kvm-xfstests smoke".  More details of
    how to run kvm-xfstests can be found in kvm-xfstests/README.  If
    you adjust the DIR= line in kvm-xfstests, it will not be
    necessary to be cd'ed into the kvm-xfstests directory before
    kicking off the shell script.

When the kvm-xfstests is done, it will print a summary of which tests
passed and failed.  It will also save the output of the test in a
log.YYYYMMDDHHSS file.  The "get-results" script will parse the log
file and generate the test summary.

About

Fork of git://git.kernel.org/pub/scm/fs/ext2/xfstests-bld.git

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published