]> git.proxmox.com Git - mirror_zfs.git/commit - tests/zfs-tests/tests/functional/mmap/mmap_write_001_pos.ksh
Enable remaining tests
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 19 May 2017 00:21:15 +0000 (20:21 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 22 May 2017 16:34:32 +0000 (12:34 -0400)
commit95401cb6f7aa9ec3dd2d61335d2dcc9459c2661c
treeea97f7ec3304f671baac8e0d6c7ab67965f80ecf
parentf871ab6ea2dd9a3b9fae157ff0a7665bb269c565
Enable remaining tests

Enable most of the remaining test cases which were previously
disabled.  The required fixes are as follows:

* cache_001_pos - No changes required.

* cache_010_neg - Updated to use losetup under Linux.  Loopback
  cache devices are allowed, ZVOLs as cache devices are not.
  Disabled until all the builders pass reliably.

* cachefile_001_pos, cachefile_002_pos, cachefile_003_pos,
  cachefile_004_pos - Set set_device_dir path in cachefile.cfg,
  updated CPATH1 and CPATH2 to reference unique files.

* zfs_clone_005_pos - Wait for udev to create volumes.

* zfs_mount_007_pos - Updated mount options to expected Linux names.

* zfs_mount_009_neg, zfs_mount_all_001_pos - No changes required.

* zfs_unmount_005_pos, zfs_unmount_009_pos, zfs_unmount_all_001_pos -
  Updated to expect -f to not unmount busy mount points under Linux.

* rsend_019_pos - Observed to occasionally take a long time on both
  32-bit systems and the kmemleak builder.

* zfs_written_property_001_pos - Switched sync(1) to sync_pool.

* devices_001_pos, devices_002_neg - Updated create_dev_file() helper
  for Linux.

* exec_002_neg.ksh - Fixed mmap_exec.c to preserve errno.  Updated
  test case to expect EPERM from Linux as described by mmap(2).

* grow_pool_001_pos - Adding missing setup.ksh and cleanup.ksh
  scripts from OpenZFS.

* grow_replicas_001_pos.ksh - Added missing $SLICE_* variables.

* history_004_pos, history_006_neg, history_008_pos - Fixed by
  previous commits and were not enabled.  No changes required.

* zfs_allow_010_pos - Added missing spaces after assorted zfs
  commands in delegate_common.kshlib.

* inuse_* - Illumos dump device tests skipped.  Remaining test
  cases updated to correctly create required partitions.

* large_files_001_pos - Fixed largest_file.c to accept EINVAL
  as well as EFBIG as described in write(2).

* link_count_001 - Added nproc to required commands.

* umountall_001 - Updated to use umount -a.

* online_offline_001_* - Pull in OpenZFS change to file_trunc.c
  to make the '-c 0' option run the test in a loop.  Included
  online_offline.cfg file in all test cases.

* rename_dirs_001_pos - Updated to use the rename_dir test binary,
  pkill restricted to exact matches and total runtime reduced.

* slog_013_neg, write_dirs_002_pos - No changes required.

* slog_013_pos.ksh - Updated to use losetup under Linux.

* slog_014_pos.ksh - ZED will not be running, manually degrade
  the damaged vdev as expected.

* nopwrite_varying_compression, nopwrite_volume - Forced pool
  sync with sync_pool to ensure up to date property values.

* Fixed typos in ZED log messages.  Refactored zed_* helper
  functions to resolve all-syslog exit=1 errors in zedlog.

* zfs_copies_005_neg, zfs_get_004_pos, zpool_add_004_pos,
  zpool_destroy_001_pos, largest_pool_001_pos, clone_001_pos.ksh,
  clone_001_pos, - Skip until layering pools on zvols is solid.

* largest_pool_001_pos - Limited to 7eb pool, maximum
  supported size in 8eb-1 on Linux.

* zpool_expand_001_pos, zpool_expand_003_neg - Requires
  additional support from the ZED, updated skip reason.

* zfs_rollback_001_pos, zfs_rollback_002_pos - Properly cleanup
  busy mount points under Linux between test loops.

* privilege_001_pos, privilege_003_pos, rollback_003_pos,
  threadsappend_001_pos - Skip with log_unsupported.

* snapshot_016_pos - No changes required.

* snapshot_008_pos - Increased LIMIT from 512K to 2M and added
  sync_pool to avoid false positives.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #6128
85 files changed:
cmd/zed/agents/zfs_mod.c
cmd/zed/zed_disk_event.c
tests/runfiles/linux.run
tests/zfs-tests/cmd/file_common.h
tests/zfs-tests/cmd/file_trunc/file_trunc.c
tests/zfs-tests/cmd/largest_file/largest_file.c
tests/zfs-tests/cmd/mmap_exec/mmap_exec.c
tests/zfs-tests/include/commands.cfg
tests/zfs-tests/include/default.cfg
tests/zfs-tests/include/libtest.shlib
tests/zfs-tests/tests/functional/cache/cache_010_neg.ksh
tests/zfs-tests/tests/functional/cachefile/Makefile.am
tests/zfs-tests/tests/functional/cachefile/cachefile.cfg
tests/zfs-tests/tests/functional/cachefile/cleanup.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/cachefile/setup.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/cli_root/zfs_clone/zfs_clone_005_pos.ksh
tests/zfs-tests/tests/functional/cli_root/zfs_copies/zfs_copies_005_neg.ksh
tests/zfs-tests/tests/functional/cli_root/zfs_get/zfs_get_004_pos.ksh
tests/zfs-tests/tests/functional/cli_root/zfs_get/zfs_get_006_neg.ksh
tests/zfs-tests/tests/functional/cli_root/zfs_mount/zfs_mount_007_pos.ksh
tests/zfs-tests/tests/functional/cli_root/zfs_property/zfs_written_property_001_pos.ksh
tests/zfs-tests/tests/functional/cli_root/zfs_rollback/zfs_rollback_001_pos.ksh
tests/zfs-tests/tests/functional/cli_root/zfs_rollback/zfs_rollback_common.kshlib
tests/zfs-tests/tests/functional/cli_root/zfs_send/zfs_send_005_pos.ksh
tests/zfs-tests/tests/functional/cli_root/zfs_unmount/zfs_unmount_005_pos.ksh
tests/zfs-tests/tests/functional/cli_root/zfs_unmount/zfs_unmount_009_pos.ksh
tests/zfs-tests/tests/functional/cli_root/zfs_unmount/zfs_unmount_all_001_pos.ksh
tests/zfs-tests/tests/functional/cli_root/zfs_unshare/zfs_unshare_002_pos.ksh
tests/zfs-tests/tests/functional/cli_root/zfs_unshare/zfs_unshare_006_pos.ksh
tests/zfs-tests/tests/functional/cli_root/zpool_add/zpool_add_004_pos.ksh
tests/zfs-tests/tests/functional/cli_root/zpool_destroy/zpool_destroy_001_pos.ksh
tests/zfs-tests/tests/functional/cli_root/zpool_expand/cleanup.ksh
tests/zfs-tests/tests/functional/cli_root/zpool_expand/setup.ksh
tests/zfs-tests/tests/functional/cli_root/zpool_expand/zpool_expand_001_pos.ksh
tests/zfs-tests/tests/functional/cli_root/zpool_expand/zpool_expand_003_neg.ksh
tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/zpool_upgrade_004_pos.ksh
tests/zfs-tests/tests/functional/cli_user/misc/zfs_share_001_neg.ksh
tests/zfs-tests/tests/functional/cli_user/misc/zfs_unshare_001_neg.ksh
tests/zfs-tests/tests/functional/delegate/delegate_common.kshlib
tests/zfs-tests/tests/functional/devices/devices_001_pos.ksh
tests/zfs-tests/tests/functional/devices/devices_002_neg.ksh
tests/zfs-tests/tests/functional/devices/devices_common.kshlib
tests/zfs-tests/tests/functional/exec/exec_001_pos.ksh
tests/zfs-tests/tests/functional/exec/exec_002_neg.ksh
tests/zfs-tests/tests/functional/fault/cleanup.ksh
tests/zfs-tests/tests/functional/fault/fault.cfg
tests/zfs-tests/tests/functional/fault/setup.ksh
tests/zfs-tests/tests/functional/grow_pool/Makefile.am
tests/zfs-tests/tests/functional/grow_pool/cleanup.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/grow_pool/grow_pool.cfg
tests/zfs-tests/tests/functional/grow_pool/setup.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/grow_replicas/grow_replicas.cfg
tests/zfs-tests/tests/functional/grow_replicas/grow_replicas_001_pos.ksh
tests/zfs-tests/tests/functional/history/history_006_neg.ksh
tests/zfs-tests/tests/functional/history/history_008_pos.ksh
tests/zfs-tests/tests/functional/inuse/inuse.cfg
tests/zfs-tests/tests/functional/inuse/inuse_001_pos.ksh
tests/zfs-tests/tests/functional/inuse/inuse_003_pos.ksh
tests/zfs-tests/tests/functional/inuse/inuse_005_pos.ksh
tests/zfs-tests/tests/functional/inuse/inuse_006_pos.ksh
tests/zfs-tests/tests/functional/inuse/inuse_007_pos.ksh
tests/zfs-tests/tests/functional/inuse/inuse_008_pos.ksh
tests/zfs-tests/tests/functional/inuse/inuse_009_pos.ksh
tests/zfs-tests/tests/functional/large_files/large_files_001_pos.ksh
tests/zfs-tests/tests/functional/largest_pool/largest_pool.cfg
tests/zfs-tests/tests/functional/largest_pool/largest_pool_001_pos.ksh
tests/zfs-tests/tests/functional/link_count/link_count_001.ksh
tests/zfs-tests/tests/functional/mmap/mmap_write_001_pos.ksh
tests/zfs-tests/tests/functional/mount/umountall_001.ksh
tests/zfs-tests/tests/functional/nopwrite/nopwrite.shlib
tests/zfs-tests/tests/functional/online_offline/online_offline_001_pos.ksh
tests/zfs-tests/tests/functional/online_offline/online_offline_002_neg.ksh
tests/zfs-tests/tests/functional/privilege/privilege_001_pos.ksh
tests/zfs-tests/tests/functional/privilege/privilege_002_pos.ksh
tests/zfs-tests/tests/functional/redundancy/redundancy_004_neg.ksh
tests/zfs-tests/tests/functional/rename_dirs/rename_dirs_001_pos.ksh
tests/zfs-tests/tests/functional/rsend/rsend_019_pos.ksh
tests/zfs-tests/tests/functional/slog/slog_013_pos.ksh
tests/zfs-tests/tests/functional/slog/slog_014_pos.ksh
tests/zfs-tests/tests/functional/snapshot/clone_001_pos.ksh
tests/zfs-tests/tests/functional/snapshot/rollback_003_pos.ksh
tests/zfs-tests/tests/functional/snapshot/snapshot.cfg
tests/zfs-tests/tests/functional/snapshot/snapshot_008_pos.ksh
tests/zfs-tests/tests/functional/snapshot/snapshot_016_pos.ksh
tests/zfs-tests/tests/functional/threadsappend/threadsappend_001_pos.ksh