Skip to content

Commit

Permalink
DOSE-442 zpool export tests (openzfs#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
ankurs-delphix authored Jan 10, 2022
1 parent 4b385bb commit dbfa19d
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/runfiles/object_store.run
Original file line number Diff line number Diff line change
Expand Up @@ -447,3 +447,25 @@ tags = ['functional', 'cli_user', 'misc']
[tests/functional/large_files]
tests = ['large_files_001_pos', 'large_files_002_pos']
tags = ['functional', 'large_files']

[tests/functional/cli_root/zpool_export]
tests = ['zpool_export_001_pos', 'zpool_export_002_pos',
'zpool_export_003_neg', 'zpool_export_004_pos']
tags = ['functional', 'cli_root', 'zpool_export']

[tests/functional/largest_pool]
tests = ['largest_pool_001_pos']
pre =
post =
tags = ['functional', 'largest_pool']

[tests/functional/inuse]
tests = ['inuse_004_pos', 'inuse_005_pos', 'inuse_008_pos', 'inuse_009_pos']
post =
tags = ['functional', 'inuse']

[tests/functional/log_spacemap]
tests = ['log_spacemap_import_logs']
pre =
post =
tags = ['functional', 'log_spacemap']
13 changes: 13 additions & 0 deletions tests/test-runner/bin/zts-report.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,19 @@ if os.environ.get('ZTS_OBJECT_STORE') == 'true':
'cli_user/misc/zpool_online_001_neg': ['SKIP', object_store_skip],
'cli_user/misc/zpool_remove_001_neg': ['SKIP', object_store_skip],
'cli_user/misc/zpool_replace_001_neg': ['SKIP', object_store_skip],
'cli_root/zpool_export/zpool_export_004_pos':
['SKIP', object_store_skip],
'inuse/setup': ['SKIP', object_store_skip],
'inuse/inuse_001_pos': ['SKIP', object_store_skip],
'inuse/inuse_003_pos': ['SKIP', object_store_skip],
'inuse/inuse_004_pos': ['SKIP', object_store_skip],
'inuse/inuse_005_pos': ['SKIP', object_store_skip],
'inuse/inuse_006_pos': ['SKIP', object_store_skip],
'inuse/inuse_007_pos': ['SKIP', object_store_skip],
'inuse/inuse_008_pos': ['SKIP', object_store_skip],
'inuse/inuse_009_pos': ['SKIP', object_store_skip],
'log_spacemap/log_spacemap_import_logs': ['SKIP', object_store_skip],

})

#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@
function zpool_export_cleanup
{
[[ -d $TESTDIR0 ]] && log_must rm -rf $TESTDIR0
import_pool -p $TESTPOOL
default_cleanup
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@
# 10. Import the pool.
#

if use_object_store; then
log_unsupported "Not supported for object store run."
fi

verify_runnable "global"

log_assert "Verify zpool export succeed or fail with spare."
Expand Down
4 changes: 4 additions & 0 deletions tests/zfs-tests/tests/functional/inuse/setup.ksh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@

. $STF_SUITE/include/libtest.shlib

if use_object_store; then
log_unsupported "Not supported with object store run."
fi

verify_runnable "global"

log_pass
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ log_onexit cleanup
# -----------------------------------------------------------------------
typeset str
typeset -i ret

use_object_store && VOLSIZES="2pb 5pb 10pb"

for volsize in $VOLSIZES; do
log_note "Create a pool which will contain a volume device"
create_pool -p $TESTPOOL2 -d "$DISKS"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
# 7. Reset tunables.
#

if use_object_store; then
log_unsupported "Not supported for object store run."
fi

verify_runnable "global"

function cleanup
Expand Down

0 comments on commit dbfa19d

Please sign in to comment.