Skip to content

Commit

Permalink
Enable tests
Browse files Browse the repository at this point in the history
Enables 44 additional 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.

* 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.

* 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).

* largest_pool_001_pos - Skipped until layering pools on zvols
  is supported.

* 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 - 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.

* threadsappend_001_pos, write_dirs_002_pos - No changes required.

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

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
  • Loading branch information
behlendorf committed May 13, 2017
1 parent 3d6da72 commit 98c77e7
Show file tree
Hide file tree
Showing 40 changed files with 390 additions and 217 deletions.
177 changes: 56 additions & 121 deletions tests/runfiles/linux.run
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ post_user = root
post = cleanup
outputdir = /var/tmp/test_results

# DISABLED: update to use ZFS_ACL_* variables and user_run helper.
# Update to use ZFS_ACL_* variables and user_run helper.
# posix_001_pos
# posix_002_pos
[tests/functional/acl/posix]
Expand All @@ -33,22 +33,17 @@ tests = ['bootfs_001_pos', 'bootfs_002_neg', 'bootfs_003_pos',
'bootfs_004_neg', 'bootfs_005_neg', 'bootfs_006_pos', 'bootfs_007_pos',
'bootfs_008_pos']

# DISABLED:
# cache_001_pos - needs investigation
# cache_010_neg - needs investigation
[tests/functional/cache]
tests = ['cache_002_pos', 'cache_003_pos', 'cache_004_neg',
tests = ['cache_001_pos', 'cache_002_pos', 'cache_003_pos', 'cache_004_neg',
'cache_005_neg', 'cache_006_pos', 'cache_007_neg', 'cache_008_neg',
'cache_009_pos', 'cache_011_pos']
'cache_009_pos', 'cache_010_neg', 'cache_011_pos']

# DISABLED: needs investigation
#[tests/functional/cachefile]
#tests = ['cachefile_001_pos', 'cachefile_002_pos', 'cachefile_003_pos',
# 'cachefile_004_pos']
#pre =
#post =
[tests/functional/cachefile]
tests = ['cachefile_001_pos', 'cachefile_002_pos', 'cachefile_003_pos',
'cachefile_004_pos']
pre =
post =

# DISABLED: needs investigation
# 'sensitive_none_lookup', 'sensitive_none_delete',
# 'sensitive_formd_lookup', 'sensitive_formd_delete',
# 'insensitive_none_lookup', 'insensitive_none_delete',
Expand Down Expand Up @@ -77,15 +72,12 @@ post =
[tests/functional/cli_root/zfs]
tests = ['zfs_001_neg', 'zfs_002_pos', 'zfs_003_neg']

# DISABLED:
# zfs_clone_005_pos - busy unmount
[tests/functional/cli_root/zfs_clone]
tests = ['zfs_clone_001_neg', 'zfs_clone_002_pos', 'zfs_clone_003_pos',
'zfs_clone_004_pos', 'zfs_clone_006_pos',
'zfs_clone_004_pos', 'zfs_clone_005_pos', 'zfs_clone_006_pos',
'zfs_clone_007_pos', 'zfs_clone_008_neg', 'zfs_clone_009_neg',
'zfs_clone_010_pos']

# DISABLED:
# zfs_copies_003_pos - https://github.com/zfsonlinux/zfs/issues/3484
# zfs_copies_005_neg - https://github.com/zfsonlinux/zfs/issues/3484
[tests/functional/cli_root/zfs_copies]
Expand All @@ -107,7 +99,6 @@ tests = ['zfs_destroy_001_pos', 'zfs_destroy_002_pos', 'zfs_destroy_003_pos',
'zfs_destroy_013_neg', 'zfs_destroy_014_pos', 'zfs_destroy_015_pos',
'zfs_destroy_016_pos']

# DISABLED:
# zfs_get_004_pos - https://github.com/zfsonlinux/zfs/issues/3484
# zfs_get_006_neg - needs investigation
[tests/functional/cli_root/zfs_get]
Expand All @@ -118,27 +109,21 @@ tests = ['zfs_get_001_pos', 'zfs_get_002_pos', 'zfs_get_003_pos',
[tests/functional/cli_root/zfs_inherit]
tests = ['zfs_inherit_001_neg', 'zfs_inherit_002_neg', 'zfs_inherit_003_pos']

# DISABLED:
# zfs_mount_006_pos - https://github.com/zfsonlinux/zfs/issues/4990
# zfs_mount_007_pos - needs investigation
# zfs_mount_009_neg - needs investigation
# zfs_mount_all_001_pos - needs investigation
[tests/functional/cli_root/zfs_mount]
tests = ['zfs_mount_001_pos', 'zfs_mount_002_pos', 'zfs_mount_003_pos',
'zfs_mount_004_pos', 'zfs_mount_005_pos', 'zfs_mount_008_pos',
'zfs_mount_010_neg', 'zfs_mount_011_neg', 'zfs_mount_012_neg']
'zfs_mount_004_pos', 'zfs_mount_005_pos', 'zfs_mount_007_pos',
'zfs_mount_008_pos', 'zfs_mount_009_neg', 'zfs_mount_010_neg',
'zfs_mount_011_neg', 'zfs_mount_012_neg', 'zfs_mount_all_001_pos']

[tests/functional/cli_root/zfs_promote]
tests = ['zfs_promote_001_pos', 'zfs_promote_002_pos', 'zfs_promote_003_pos',
'zfs_promote_004_pos', 'zfs_promote_005_pos', 'zfs_promote_006_neg',
'zfs_promote_007_neg', 'zfs_promote_008_pos']

# DISABLED:
# zfs_written_property_001_pos - https://github.com/zfsonlinux/zfs/issues/2441
[tests/functional/cli_root/zfs_property]
tests = []
tests = ['zfs_written_property_001_pos']

# DISABLED:
# zfs_receive_004_neg - Fails for OpenZFS on illumos
[tests/functional/cli_root/zfs_receive]
tests = ['zfs_receive_001_pos', 'zfs_receive_002_pos', 'zfs_receive_003_pos',
Expand All @@ -148,7 +133,6 @@ tests = ['zfs_receive_001_pos', 'zfs_receive_002_pos', 'zfs_receive_003_pos',
'zfs_receive_013_pos', 'zfs_receive_014_pos', 'zfs_receive_015_pos',
'receive-o-x_props_override']

# DISABLED:
# zfs_rename_006_pos - https://github.com/zfsonlinux/zfs/issues/5647
# zfs_rename_009_neg - https://github.com/zfsonlinux/zfs/issues/5648
[tests/functional/cli_root/zfs_rename]
Expand All @@ -161,7 +145,6 @@ tests = ['zfs_rename_001_pos', 'zfs_rename_002_pos', 'zfs_rename_003_pos',
[tests/functional/cli_root/zfs_reservation]
tests = ['zfs_reservation_001_pos', 'zfs_reservation_002_pos']

# DISABLED:
# zfs_rollback_001_pos - busy mountpoint behavior
# zfs_rollback_002_pos - busy mountpoint behavior
[tests/functional/cli_root/zfs_rollback]
Expand Down Expand Up @@ -195,16 +178,12 @@ tests = ['zfs_snapshot_001_neg', 'zfs_snapshot_002_neg',
'zfs_snapshot_006_pos', 'zfs_snapshot_007_neg', 'zfs_snapshot_008_neg',
'zfs_snapshot_009_pos']

# DISABLED:
# zfs_unmount_005_pos - needs investigation
# zfs_unmount_009_pos - needs investigation
# zfs_unmount_all_001_pos - needs investigation
[tests/functional/cli_root/zfs_unmount]
tests = ['zfs_unmount_001_pos', 'zfs_unmount_002_pos', 'zfs_unmount_003_pos',
'zfs_unmount_004_pos', 'zfs_unmount_006_pos',
'zfs_unmount_007_neg', 'zfs_unmount_008_neg']
'zfs_unmount_004_pos', 'zfs_unmount_005_pos', 'zfs_unmount_006_pos',
'zfs_unmount_007_neg', 'zfs_unmount_008_neg', 'zfs_unmount_009_pos',
'zfs_unmount_all_001_pos']

# DISABLED:
# zfs_unshare_002_pos - zfs set sharenfs=off won't unshare if it was already off
# zfs_unshare_006_pos - some distros come with Samba "user shares" disabled
[tests/functional/cli_root/zfs_unshare]
Expand Down Expand Up @@ -319,7 +298,6 @@ tests = ['zpool_upgrade_001_pos', 'zpool_upgrade_002_pos',
'zpool_upgrade_007_pos', 'zpool_upgrade_008_pos',
'zpool_upgrade_009_neg']

# DISABLED:
# zfs_share_001_neg - requires additional dependencies
# zfs_unshare_001_neg - requires additional dependencies
[tests/functional/cli_user/misc]
Expand Down Expand Up @@ -362,27 +340,20 @@ tests = ['compress_001_pos', 'compress_002_pos', 'compress_003_pos',
[tests/functional/ctime]
tests = ['ctime_001_pos' ]

# DISABLED:
# zfs_allow_010_pos - https://github.com/zfsonlinux/zfs/issues/5646
[tests/functional/delegate]
tests = ['zfs_allow_001_pos', 'zfs_allow_002_pos',
'zfs_allow_004_pos', 'zfs_allow_005_pos', 'zfs_allow_006_pos',
'zfs_allow_007_pos', 'zfs_allow_008_pos', 'zfs_allow_009_neg',
'zfs_allow_011_neg', 'zfs_allow_012_neg',
'zfs_allow_010_pos', 'zfs_allow_011_neg', 'zfs_allow_012_neg',
'zfs_unallow_001_pos', 'zfs_unallow_002_pos', 'zfs_unallow_003_pos',
'zfs_unallow_004_pos', 'zfs_unallow_005_pos', 'zfs_unallow_006_pos',
'zfs_unallow_007_neg', 'zfs_unallow_008_neg']

# DISABLED:
# devices_001_pos - needs investigation
# devices_002_neg - needs investigation
[tests/functional/devices]
tests = ['devices_003_pos']
tests = ['devices_001_pos', 'devices_002_neg', 'devices_003_pos']

# DISABLED:
# exec_002_neg - needs investigation
[tests/functional/exec]
tests = ['exec_001_pos']
tests = ['exec_001_pos', 'exec_002_neg']

[tests/functional/fault]
tests = ['auto_online_001_pos', 'auto_replace_001_pos']
Expand All @@ -395,72 +366,52 @@ tests = ['large_dnode_001_pos', 'large_dnode_002_pos', 'large_dnode_003_pos',
'large_dnode_004_neg', 'large_dnode_005_pos', 'large_dnode_006_pos',
'large_dnode_007_neg']

# DISABLED: needs investigation
#[tests/functional/grow_pool]
#tests = ['grow_pool_001_pos']
#pre =
#post =

# DISABLED: needs investigation
#[tests/functional/grow_replicas]
#tests = ['grow_replicas_001_pos']
#pre =
#post =

# DISABLED:
# history_004_pos - https://github.com/zfsonlinux/zfs/issues/5664
# history_006_neg - https://github.com/zfsonlinux/zfs/issues/5657
# history_008_pos - https://github.com/zfsonlinux/zfs/issues/5658
[tests/functional/grow_pool]
tests = ['grow_pool_001_pos']

[tests/functional/grow_replicas]
tests = ['grow_replicas_001_pos']
pre =
post =

[tests/functional/history]
tests = ['history_001_pos', 'history_002_pos', 'history_003_pos',
'history_005_neg',
'history_007_pos', 'history_009_pos',
'history_004_pos', 'history_005_neg', 'history_006_neg',
'history_007_pos', 'history_008_pos', 'history_009_pos',
'history_010_pos']

[tests/functional/inheritance]
tests = ['inherit_001_pos']
pre =

# DISABLED:
# inuse_001_pos, inuse_007_pos - no dumpadm command
# inuse_005_pos - partition issue
# inuse_006_pos - partition issue
# inuse_008_pos - partition issue
# inuse_009_pos - partition issue
[tests/functional/inuse]
tests = ['inuse_004_pos']
tests = ['inuse_001_pos', 'inuse_003_pos', 'inuse_004_pos',
'inuse_005_pos', 'inuse_006_pos', 'inuse_007_pos', 'inuse_008_pos',
'inuse_009_pos']
post =

# DISABLED: needs investigation
# large_files_001_pos
[tests/functional/large_files]
tests = ['large_files_002_pos']
tests = ['large_files_001_pos', 'large_files_002_pos']

# DISABLED: needs investigation
#[tests/functional/largest_pool]
#tests = ['largest_pool_001_pos']
#pre =
#post =
[tests/functional/largest_pool]
tests = ['largest_pool_001_pos']
pre =
post =

# DISABLED: needs investigation
#[tests/functional/link_count]
#tests = ['link_count_001']
[tests/functional/link_count]
tests = ['link_count_001']

[tests/functional/migration]
tests = ['migration_001_pos', 'migration_002_pos', 'migration_003_pos',
'migration_004_pos', 'migration_005_pos', 'migration_006_pos',
'migration_007_pos', 'migration_008_pos', 'migration_009_pos',
'migration_010_pos', 'migration_011_pos', 'migration_012_pos']

# DISABLED:
# mmap_write_001_pos - needs investigation
[tests/functional/mmap]
tests = ['mmap_read_001_pos']
tests = ['mmap_write_001_pos', 'mmap_read_001_pos']

# DISABLED:
# umountall_001 - requires umountall command.
[tests/functional/mount]
tests = ['umount_001']
tests = ['umount_001', 'umountall_001']

[tests/functional/mv_files]
tests = ['mv_files_001_pos', 'mv_files_002_pos']
Expand All @@ -471,17 +422,14 @@ tests = ['nestedfs_001_pos']
[tests/functional/no_space]
tests = ['enospc_001_pos', 'enospc_002_pos', 'enospc_003_pos']

# DISABLED:
# nopwrite_volume - https://github.com/zfsonlinux/zfs/issues/5510
# nopwrite_varying_compression - needs investigation
[tests/functional/nopwrite]
tests = ['nopwrite_copies', 'nopwrite_mtime', 'nopwrite_negative',
'nopwrite_promoted_clone', 'nopwrite_recsize', 'nopwrite_sync']
'nopwrite_promoted_clone', 'nopwrite_recsize', 'nopwrite_sync',
'nopwrite_varying_compression', 'nopwrite_volume']

# DISABLED: needs investigation
#[tests/functional/online_offline]
#tests = ['online_offline_001_pos', 'online_offline_002_neg',
# 'online_offline_003_neg']
[tests/functional/online_offline]
tests = ['online_offline_001_pos', 'online_offline_002_neg',
'online_offline_003_neg']

[tests/functional/pool_names]
tests = ['pool_names_001_pos', 'pool_names_002_neg']
Expand All @@ -491,7 +439,7 @@ post =
[tests/functional/poolversion]
tests = ['poolversion_001_pos', 'poolversion_002_pos']

# DISABLED: requires pfexec command or 'RBAC profile'
# Requires pfexec command or 'RBAC profile'
#[tests/functional/privilege]
#tests = ['privilege_001_pos', 'privilege_002_pos']

Expand All @@ -510,20 +458,17 @@ tests = ['redundancy_001_pos', 'redundancy_002_pos', 'redundancy_003_pos',
tests = ['refquota_001_pos', 'refquota_002_pos', 'refquota_003_pos',
'refquota_004_pos', 'refquota_005_pos', 'refquota_006_neg']

# DISABLED:
# refreserv_004_pos - needs investigation
# refreserv_004_pos - Fails for OpenZFS on illumos
[tests/functional/refreserv]
tests = ['refreserv_001_pos', 'refreserv_002_pos', 'refreserv_003_pos',
'refreserv_005_pos']

# DISABLED:
#[tests/functional/rename_dirs]
#tests = ['rename_dirs_001_pos']
[tests/functional/rename_dirs]
tests = ['rename_dirs_001_pos']

[tests/functional/replacement]
tests = ['replacement_001_pos', 'replacement_002_pos', 'replacement_003_pos']

# DISABLED:
# reservation_001_pos - https://github.com/zfsonlinux/zfs/issues/4445
# reservation_013_pos - https://github.com/zfsonlinux/zfs/issues/4444
# reservation_018_pos - https://github.com/zfsonlinux/zfs/issues/5642
Expand All @@ -538,7 +483,6 @@ tests = ['reservation_001_pos', 'reservation_002_pos', 'reservation_003_pos',
[tests/functional/rootpool]
tests = ['rootpool_002_neg', 'rootpool_003_neg', 'rootpool_007_pos']

# DISABLED:
# rsend_008_pos - https://github.com/zfsonlinux/zfs/issues/6066
# rsend_009_pos - https://github.com/zfsonlinux/zfs/issues/5887
[tests/functional/rsend]
Expand All @@ -559,16 +503,12 @@ tests = ['rsend_001_pos', 'rsend_002_pos', 'rsend_003_pos', 'rsend_004_pos',
tests = ['scrub_mirror_001_pos', 'scrub_mirror_002_pos',
'scrub_mirror_003_pos', 'scrub_mirror_004_pos']

# DISABLED: Scripts need to be updated.
# slog_012_neg - needs investigation
# slog_013_pos - requires 'lofiadm' command.
# slog_014_pos - needs investigation
[tests/functional/slog]
tests = ['slog_001_pos', 'slog_002_pos', 'slog_003_pos', 'slog_004_pos',
'slog_005_pos', 'slog_006_pos', 'slog_007_pos', 'slog_008_neg',
'slog_009_neg', 'slog_010_neg', 'slog_011_neg', 'slog_015_pos']
'slog_009_neg', 'slog_010_neg', 'slog_011_neg', 'slog_012_neg',
'slog_013_pos', 'slog_014_pos', 'slog_015_pos']

# DISABLED:
# clone_001_pos - https://github.com/zfsonlinux/zfs/issues/3484
# rollback_003_pos - Hangs in unmount and spins.
# snapshot_016_pos - Problem with automount
Expand All @@ -582,7 +522,6 @@ tests = ['rollback_001_pos', 'rollback_002_pos',
'snapshot_012_pos', 'snapshot_013_pos', 'snapshot_014_pos',
'snapshot_015_pos', 'snapshot_017_pos']

# DISABLED:
# snapused_004_pos - https://github.com/zfsonlinux/zfs/issues/5513
[tests/functional/snapused]
tests = ['snapused_001_pos', 'snapused_002_pos', 'snapused_003_pos',
Expand All @@ -591,9 +530,8 @@ tests = ['snapused_001_pos', 'snapused_002_pos', 'snapused_003_pos',
[tests/functional/sparse]
tests = ['sparse_001_pos']

# DISABLED: needs investigation
#[tests/functional/threadsappend]
#tests = ['threadsappend_001_pos']
[tests/functional/threadsappend]
tests = ['threadsappend_001_pos']

[tests/functional/tmpfile]
tests = ['tmpfile_001_pos', 'tmpfile_002_pos', 'tmpfile_003_pos']
Expand All @@ -614,18 +552,15 @@ tests = [
'userspace_001_pos', 'userspace_002_pos', 'userspace_003_pos',
'groupspace_001_pos', 'groupspace_002_pos', 'groupspace_003_pos' ]

# DISABLED:
# vdev_zaps_007_pos -- fails due to a pre-existing issue with zpool split
[tests/functional/vdev_zaps]
tests = ['vdev_zaps_001_pos', 'vdev_zaps_002_pos', 'vdev_zaps_003_pos',
'vdev_zaps_004_pos', 'vdev_zaps_005_pos', 'vdev_zaps_006_pos']

# DISABLED:
# write_dirs_002_pos - needs investigation
[tests/functional/write_dirs]
tests = ['write_dirs_001_pos']
tests = ['write_dirs_001_pos', 'write_dirs_002_pos']

# DISABLED: No 'runat' command, replace the Linux equivalent and add xattrtest
# No 'runat' command, replace the Linux equivalent and add xattrtest
#[tests/functional/xattr]
#tests = ['xattr_001_pos', 'xattr_002_neg', 'xattr_003_neg', 'xattr_004_pos',
# 'xattr_005_pos', 'xattr_006_pos', 'xattr_007_neg', 'xattr_008_pos',
Expand Down
Loading

0 comments on commit 98c77e7

Please sign in to comment.