mirror_zfs/scripts
Brian Behlendorf a16bc6bdd9 Add zimport.sh compatibility test script
Verify that an assortment of known good reference pools can be imported
using different versions of the ZoL code.

By default references pools for the major ZFS implementation will be
checked against the most recent ZoL tags and the master development branch.
Alternate tags or branches may be verified with the '-s <src-tag> option.
Passing the keyword "installed" will instruct the script to test whatever
version is installed.

Preferentially a reference pool is used for all tests.  However, if one
does not exist and the pool-tag matches one of the src-tags then a new
reference pool will be created using binaries from that source build.
This is particularly useful when you need to test your changes before
opening a pull request.

New reference pools may be added by placing a bzip2 compressed tarball
of the pool in the scripts/zpool-example directory and then passing
the -p <pool-tag> option.  To increase the test coverage reference pools
should be collected for all the major ZFS implementations.  Having these
pools easily available is also helpful to the developers.

Care should be taken to run these tests with a kernel supported by all
the listed tags.  Otherwise build failure will cause false positives.

EXAMPLES:

The following example will verify the zfs-0.6.2 tag, the master branch,
and the installed zfs version can correctly import the listed pools.
Note there is no reference pool available for master and installed but
because binaries are available one is automatically constructed.  The
working directory is also preserved between runs (-k) preventing the
need to rebuild from source for multiple runs.

 zimport.sh -k -f /var/tmp/zimport \
     -s "zfs-0.6.1 zfs-0.6.2 master installed" \
     -p "all master installed"

--------------------- ZFS on Linux Source Versions --------------
                zfs-0.6.1       zfs-0.6.2       master          0.6.2-180
-----------------------------------------------------------------
Clone SPL       Skip		Skip		Skip		Skip
Clone ZFS       Skip		Skip		Skip		Skip
Build SPL       Skip		Skip		Skip		Skip
Build ZFS       Skip		Skip		Skip		Skip
-----------------------------------------------------------------
zevo-1.1.1      Pass		Pass		Pass		Pass
zol-0.6.1       Pass		Pass		Pass		Pass
zol-0.6.2-173   Fail		Fail		Pass		Pass
zol-0.6.2       Pass		Pass		Pass		Pass
master          Fail		Fail		Pass		Pass
installed       Pass		Pass		Pass		Pass

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tim Chase <tim@chase2k.com>
Signed-off-by: Richard Yao <ryao@gentoo.org>
Issue #2094
2014-02-21 12:10:31 -08:00
..
zfs-images@3331601f6d Add zimport.sh compatibility test script 2014-02-21 12:10:31 -08:00
zpios-profile Replace libexecdir with datadir 2013-03-06 15:46:40 -08:00
zpios-test Replace libexecdir with datadir 2013-03-06 15:46:40 -08:00
zpool-config Add default FILEDIR path to zpool-config scripts 2014-02-12 09:37:46 -08:00
.gitignore Remove autotools products 2012-08-27 11:47:44 -07:00
common.sh.in Remove ZFC_IOC_*_MINOR ioctl()s 2013-12-16 09:15:57 -08:00
cstyle.pl cstyle: Allow spaces in all comments 2013-12-18 16:46:35 -08:00
dkms.mkconf Use requested kernel for dkms builds 2013-03-21 12:51:06 -07:00
dkms.postinst Refresh RPM packaging 2013-03-18 15:33:17 -07:00
kmodtool Add kmod repo integration 2013-08-01 09:48:07 -07:00
Makefile.am Add zimport.sh compatibility test script 2014-02-21 12:10:31 -08:00
smb.sh Implemented sharing datasets via SMB using libshare 2012-12-03 09:42:15 -08:00
zconfig.sh Fix zconfig.sh test 9 2014-02-10 15:48:32 -08:00
zfault.sh Disable 90-zfs.rules for test suite 2011-10-11 14:45:37 -07:00
zfs2zol-patch.sed Add script to fix file names in upstream patches 2013-10-29 10:30:43 -07:00
zfs.sh Add default stack checking 2011-06-13 13:50:21 -07:00
zimport.sh Add zimport.sh compatibility test script 2014-02-21 12:10:31 -08:00
zpios-sanity.sh Disable 90-zfs.rules for test suite 2011-10-11 14:45:37 -07:00
zpios-survey.sh Add linux zpios support 2010-08-31 13:42:01 -07:00
zpios.sh build: resolve orthographic and other grammatical errors 2013-04-02 10:44:52 -07:00
zpool-create.sh Add build system 2010-08-31 13:41:27 -07:00