AM_PROG_AS
AM_PROG_CC_C_O
AX_CODE_COVERAGE
+_AM_PROG_TAR(pax)
ZFS_AC_LICENSE
ZFS_AC_PACKAGE
tests/zfs-tests/tests/functional/cli_root/zpool_get/Makefile
tests/zfs-tests/tests/functional/cli_root/zpool_history/Makefile
tests/zfs-tests/tests/functional/cli_root/zpool_import/Makefile
+ tests/zfs-tests/tests/functional/cli_root/zpool_import/blockfiles/Makefile
tests/zfs-tests/tests/functional/cli_root/zpool_labelclear/Makefile
tests/zfs-tests/tests/functional/cli_root/zpool/Makefile
tests/zfs-tests/tests/functional/cli_root/zpool_offline/Makefile
tests/zfs-tests/tests/functional/cli_root/zpool_status/Makefile
tests/zfs-tests/tests/functional/cli_root/zpool_sync/Makefile
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/Makefile
+ tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/Makefile
tests/zfs-tests/tests/functional/cli_user/Makefile
tests/zfs-tests/tests/functional/cli_user/misc/Makefile
tests/zfs-tests/tests/functional/cli_user/zfs_list/Makefile
log_assert "Verify that copies cannot be set with pool version 1"
log_onexit cleanup
-log_must cp $STF_SUITE/tests/functional/cli_root/zpool_upgrade/$ZPOOL_VERSION_1_FILES $TEST_BASE_DIR
+log_must cp $STF_SUITE/tests/functional/cli_root/zpool_upgrade/blockfiles/$ZPOOL_VERSION_1_FILES $TEST_BASE_DIR
log_must bunzip2 $TEST_BASE_DIR/$ZPOOL_VERSION_1_FILES
log_must zpool import -d $TEST_BASE_DIR $ZPOOL_VERSION_1_NAME
log_must zfs create $ZPOOL_VERSION_1_NAME/$TESTFS
log_assert "verify zfs supports multiple consistent snapshots"
log_onexit cleanup
typeset -i i=1
-test_data=$STF_SUITE/tests/functional/cli_root/zpool_upgrade/*.bz2
+test_data=$STF_SUITE/tests/functional/cli_root/zpool_upgrade/blockfiles/*.bz2
log_note "destroy a list of valid snapshots"
for ds in $datasets; do
+SUBDIRS = blockfiles
+
pkgdatadir = $(datadir)/@PACKAGE@/zfs-tests/tests/functional/cli_root/zpool_import
dist_pkgdata_SCRIPTS = \
setup.ksh \
cleanup.ksh \
- zpool_import.kshlib \
import_cache_device_added.ksh \
import_cache_device_removed.ksh \
import_cache_device_replaced.ksh \
zpool_import_encrypted_load.ksh \
zpool_import_errata3.ksh
-BLOCKFILES = \
- unclean_export.dat.bz2 \
- cryptv0.dat.bz2
-
-dist_pkgdata_DATA = $(BLOCKFILES) \
- zpool_import.cfg
+dist_pkgdata_DATA = \
+ zpool_import.cfg \
+ zpool_import.kshlib
-EXTRA_DIST = $(BLOCKFILES)
--- /dev/null
+pkgdatadir = $(datadir)/@PACKAGE@/zfs-tests/tests/functional/cli_root/zpool_import/blockfiles
+dist_pkgdata_DATA = \
+ unclean_export.dat.bz2 \
+ cryptv0.dat.bz2
log_note "Creating pool from $POOL_FILE"
log_must bzcat \
- $STF_SUITE/tests/functional/cli_root/zpool_import/$POOL_FILE.bz2 \
+ $STF_SUITE/tests/functional/cli_root/zpool_import/blockfiles/$POOL_FILE.bz2 \
> /$TESTPOOL/$POOL_FILE
return 0
}
{
log_note "Creating pool from $POOL_FILE"
log_must bzcat \
- $STF_SUITE/tests/functional/cli_root/zpool_import/$POOL_FILE.bz2 \
+ $STF_SUITE/tests/functional/cli_root/zpool_import/blockfiles/$POOL_FILE.bz2 \
> /$TESTPOOL/$POOL_FILE
return 0
}
+SUBDIRS = blockfiles
+
pkgdatadir = $(datadir)/@PACKAGE@/zfs-tests/tests/functional/cli_root/zpool_upgrade
dist_pkgdata_SCRIPTS = \
setup.ksh \
zpool_upgrade_008_pos.ksh \
zpool_upgrade_009_neg.ksh
-BLOCKFILES = \
- zfs-broken-mirror1.dat.bz2 \
- zfs-broken-mirror2.dat.bz2 \
- zfs-pool-v1.dat.bz2 \
- zfs-pool-v10.dat.bz2 \
- zfs-pool-v11.dat.bz2 \
- zfs-pool-v12.dat.bz2 \
- zfs-pool-v13.dat.bz2 \
- zfs-pool-v14.dat.bz2 \
- zfs-pool-v15.dat.bz2 \
- zfs-pool-v1mirror1.dat.bz2 \
- zfs-pool-v1mirror2.dat.bz2 \
- zfs-pool-v1mirror3.dat.bz2 \
- zfs-pool-v1raidz1.dat.bz2 \
- zfs-pool-v1raidz2.dat.bz2 \
- zfs-pool-v1raidz3.dat.bz2 \
- zfs-pool-v1stripe1.dat.bz2 \
- zfs-pool-v1stripe2.dat.bz2 \
- zfs-pool-v1stripe3.dat.bz2 \
- zfs-pool-v2.dat.bz2 \
- zfs-pool-v2mirror1.dat.bz2 \
- zfs-pool-v2mirror2.dat.bz2 \
- zfs-pool-v2mirror3.dat.bz2 \
- zfs-pool-v2raidz1.dat.bz2 \
- zfs-pool-v2raidz2.dat.bz2 \
- zfs-pool-v2raidz3.dat.bz2 \
- zfs-pool-v2stripe1.dat.bz2 \
- zfs-pool-v2stripe2.dat.bz2 \
- zfs-pool-v2stripe3.dat.bz2 \
- zfs-pool-v3.dat.bz2 \
- zfs-pool-v3hotspare1.dat.bz2 \
- zfs-pool-v3hotspare2.dat.bz2 \
- zfs-pool-v3hotspare3.dat.bz2 \
- zfs-pool-v3mirror1.dat.bz2 \
- zfs-pool-v3mirror2.dat.bz2 \
- zfs-pool-v3mirror3.dat.bz2 \
- zfs-pool-v3raidz1.dat.bz2 \
- zfs-pool-v3raidz2.dat.bz2 \
- zfs-pool-v3raidz21.dat.bz2 \
- zfs-pool-v3raidz22.dat.bz2 \
- zfs-pool-v3raidz23.dat.bz2 \
- zfs-pool-v3raidz3.dat.bz2 \
- zfs-pool-v3stripe1.dat.bz2 \
- zfs-pool-v3stripe2.dat.bz2 \
- zfs-pool-v3stripe3.dat.bz2 \
- zfs-pool-v4.dat.bz2 \
- zfs-pool-v5.dat.bz2 \
- zfs-pool-v6.dat.bz2 \
- zfs-pool-v7.dat.bz2 \
- zfs-pool-v8.dat.bz2 \
- zfs-pool-v9.dat.bz2 \
- zfs-pool-v999.dat.bz2 \
- zfs-pool-vBROKEN.dat.bz2
-
-dist_pkgdata_DATA = $(BLOCKFILES) \
+dist_pkgdata_DATA = \
zpool_upgrade.cfg \
zpool_upgrade.kshlib
-
-EXTRA_DIST = $(BLOCKFILES)
--- /dev/null
+pkgdatadir = $(datadir)/@PACKAGE@/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles
+dist_pkgdata_DATA = \
+ zfs-broken-mirror1.dat.bz2 \
+ zfs-broken-mirror2.dat.bz2 \
+ zfs-pool-v1.dat.bz2 \
+ zfs-pool-v10.dat.bz2 \
+ zfs-pool-v11.dat.bz2 \
+ zfs-pool-v12.dat.bz2 \
+ zfs-pool-v13.dat.bz2 \
+ zfs-pool-v14.dat.bz2 \
+ zfs-pool-v15.dat.bz2 \
+ zfs-pool-v1mirror1.dat.bz2 \
+ zfs-pool-v1mirror2.dat.bz2 \
+ zfs-pool-v1mirror3.dat.bz2 \
+ zfs-pool-v1raidz1.dat.bz2 \
+ zfs-pool-v1raidz2.dat.bz2 \
+ zfs-pool-v1raidz3.dat.bz2 \
+ zfs-pool-v1stripe1.dat.bz2 \
+ zfs-pool-v1stripe2.dat.bz2 \
+ zfs-pool-v1stripe3.dat.bz2 \
+ zfs-pool-v2.dat.bz2 \
+ zfs-pool-v2mirror1.dat.bz2 \
+ zfs-pool-v2mirror2.dat.bz2 \
+ zfs-pool-v2mirror3.dat.bz2 \
+ zfs-pool-v2raidz1.dat.bz2 \
+ zfs-pool-v2raidz2.dat.bz2 \
+ zfs-pool-v2raidz3.dat.bz2 \
+ zfs-pool-v2stripe1.dat.bz2 \
+ zfs-pool-v2stripe2.dat.bz2 \
+ zfs-pool-v2stripe3.dat.bz2 \
+ zfs-pool-v3.dat.bz2 \
+ zfs-pool-v3hotspare1.dat.bz2 \
+ zfs-pool-v3hotspare2.dat.bz2 \
+ zfs-pool-v3hotspare3.dat.bz2 \
+ zfs-pool-v3mirror1.dat.bz2 \
+ zfs-pool-v3mirror2.dat.bz2 \
+ zfs-pool-v3mirror3.dat.bz2 \
+ zfs-pool-v3raidz1.dat.bz2 \
+ zfs-pool-v3raidz2.dat.bz2 \
+ zfs-pool-v3raidz21.dat.bz2 \
+ zfs-pool-v3raidz22.dat.bz2 \
+ zfs-pool-v3raidz23.dat.bz2 \
+ zfs-pool-v3raidz3.dat.bz2 \
+ zfs-pool-v3stripe1.dat.bz2 \
+ zfs-pool-v3stripe2.dat.bz2 \
+ zfs-pool-v3stripe3.dat.bz2 \
+ zfs-pool-v4.dat.bz2 \
+ zfs-pool-v5.dat.bz2 \
+ zfs-pool-v6.dat.bz2 \
+ zfs-pool-v7.dat.bz2 \
+ zfs-pool-v8.dat.bz2 \
+ zfs-pool-v9.dat.bz2 \
+ zfs-pool-v999.dat.bz2 \
+ zfs-pool-vBROKEN.dat.bz2
log_note "Creating $pool_name from $pool_files"
for pool_file in $pool_files; do
log_must bzcat \
- $STF_SUITE/tests/functional/cli_root/zpool_upgrade/$pool_file.bz2 \
+ $STF_SUITE/tests/functional/cli_root/zpool_upgrade/blockfiles/$pool_file.bz2 \
>$TEST_BASE_DIR/$pool_file
done
log_must zpool import -d $TEST_BASE_DIR $pool_name
done
# copy a v1 pool from cli_root
- cp $STF_SUITE/tests/functional/cli_root/zpool_upgrade/zfs-pool-v1.dat.bz2 \
+ cp $STF_SUITE/tests/functional/cli_root/zpool_upgrade/blockfiles/zfs-pool-v1.dat.bz2 \
/$TESTDIR
log_must bunzip2 /$TESTDIR/zfs-pool-v1.dat.bz2
log_must zpool import -d /$TESTDIR v1-pool