From e84894d2db5760a4299a19eefa79bac8fe38b302 Mon Sep 17 00:00:00 2001 From: Brooks Davis Date: Mon, 7 Nov 2022 22:24:54 +0000 Subject: [PATCH] Hook up nvlist XDR packing test Add a new functional test that runs nvlist_packed for all flags and verifies packed verions against committed XDR streams generated on FreeBSD amd64. Streams should be stable on all platforms supported today. Signed-off-by: Brooks Davis --- tests/runfiles/common.run | 4 + tests/runfiles/sanity.run | 4 + tests/zfs-tests/include/commands.cfg | 1 + tests/zfs-tests/tests/Makefile.am | 75 ++++++++++++++++++ .../tests/functional/libnvpair/cleanup.ksh | 34 ++++++++ .../tests/functional/libnvpair/packed.ksh | 48 +++++++++++ .../functional/libnvpair/refs/boolean.ref | Bin 0 -> 52 bytes .../libnvpair/refs/boolean_array.ref | Bin 0 -> 76 bytes .../libnvpair/refs/boolean_array_empty.ref | Bin 0 -> 64 bytes .../libnvpair/refs/boolean_array_single.ref | Bin 0 -> 68 bytes .../libnvpair/refs/boolean_flag.ref | Bin 0 -> 52 bytes .../tests/functional/libnvpair/refs/byte.ref | Bin 0 -> 48 bytes .../functional/libnvpair/refs/byte_array.ref | Bin 0 -> 56 bytes .../libnvpair/refs/byte_array_empty.ref | Bin 0 -> 56 bytes .../libnvpair/refs/byte_array_single.ref | Bin 0 -> 64 bytes .../functional/libnvpair/refs/double.ref | Bin 0 -> 56 bytes .../functional/libnvpair/refs/empty_name.ref | Bin 0 -> 40 bytes .../functional/libnvpair/refs/hrtime.ref | Bin 0 -> 56 bytes .../tests/functional/libnvpair/refs/int16.ref | Bin 0 -> 52 bytes .../functional/libnvpair/refs/int16_array.ref | Bin 0 -> 72 bytes .../libnvpair/refs/int16_array_empty.ref | Bin 0 -> 64 bytes .../libnvpair/refs/int16_array_single.ref | Bin 0 -> 68 bytes .../tests/functional/libnvpair/refs/int32.ref | Bin 0 -> 52 bytes .../functional/libnvpair/refs/int32_array.ref | Bin 0 -> 72 bytes .../libnvpair/refs/int32_array_empty.ref | Bin 0 -> 64 bytes .../libnvpair/refs/int32_array_single.ref | Bin 0 -> 68 bytes .../tests/functional/libnvpair/refs/int64.ref | Bin 0 -> 56 bytes .../functional/libnvpair/refs/int64_array.ref | Bin 0 -> 88 bytes .../libnvpair/refs/int64_array_empty.ref | Bin 0 -> 64 bytes .../libnvpair/refs/int64_array_single.ref | Bin 0 -> 72 bytes .../tests/functional/libnvpair/refs/int8.ref | Bin 0 -> 48 bytes .../functional/libnvpair/refs/int8_array.ref | Bin 0 -> 72 bytes .../libnvpair/refs/int8_array_empty.ref | Bin 0 -> 60 bytes .../libnvpair/refs/int8_array_single.ref | Bin 0 -> 68 bytes .../functional/libnvpair/refs/nvlist0.ref | Bin 0 -> 232 bytes .../functional/libnvpair/refs/nvlist1.ref | Bin 0 -> 308 bytes .../functional/libnvpair/refs/nvlist2.ref | Bin 0 -> 384 bytes .../functional/libnvpair/refs/nvlist3.ref | Bin 0 -> 460 bytes .../libnvpair/refs/nvlist_array.ref | Bin 0 -> 1244 bytes .../libnvpair/refs/nvlist_array_empty.ref | Bin 0 -> 60 bytes .../libnvpair/refs/nvlist_array_single.ref | Bin 0 -> 244 bytes .../functional/libnvpair/refs/string_.ref | Bin 0 -> 52 bytes .../functional/libnvpair/refs/string_0.ref | Bin 0 -> 56 bytes .../functional/libnvpair/refs/string_01.ref | Bin 0 -> 60 bytes .../functional/libnvpair/refs/string_012.ref | Bin 0 -> 60 bytes .../functional/libnvpair/refs/string_0123.ref | Bin 0 -> 60 bytes .../libnvpair/refs/string_01234.ref | Bin 0 -> 64 bytes .../libnvpair/refs/string_012345.ref | Bin 0 -> 68 bytes .../libnvpair/refs/string_0123456.ref | Bin 0 -> 68 bytes .../libnvpair/refs/string_01234567.ref | Bin 0 -> 68 bytes .../libnvpair/refs/string_012345678.ref | Bin 0 -> 72 bytes .../libnvpair/refs/string_0123456789.ref | Bin 0 -> 76 bytes .../libnvpair/refs/string_0123456789a.ref | Bin 0 -> 76 bytes .../libnvpair/refs/string_0123456789ab.ref | Bin 0 -> 76 bytes .../libnvpair/refs/string_0123456789abc.ref | Bin 0 -> 80 bytes .../libnvpair/refs/string_0123456789abcd.ref | Bin 0 -> 84 bytes .../libnvpair/refs/string_0123456789abcde.ref | Bin 0 -> 84 bytes .../refs/string_0123456789abcdef.ref | Bin 0 -> 84 bytes .../refs/string_0123456789abcdefg.ref | Bin 0 -> 88 bytes .../libnvpair/refs/string_array.ref | Bin 0 -> 92 bytes .../libnvpair/refs/string_array_empty.ref | Bin 0 -> 60 bytes .../libnvpair/refs/string_array_single.ref | Bin 0 -> 68 bytes .../functional/libnvpair/refs/uint16.ref | Bin 0 -> 52 bytes .../libnvpair/refs/uint16_array.ref | Bin 0 -> 72 bytes .../libnvpair/refs/uint16_array_empty.ref | Bin 0 -> 64 bytes .../libnvpair/refs/uint16_array_single.ref | Bin 0 -> 68 bytes .../functional/libnvpair/refs/uint32.ref | Bin 0 -> 52 bytes .../libnvpair/refs/uint32_array.ref | Bin 0 -> 72 bytes .../libnvpair/refs/uint32_array_empty.ref | Bin 0 -> 64 bytes .../libnvpair/refs/uint32_array_single.ref | Bin 0 -> 68 bytes .../functional/libnvpair/refs/uint64.ref | Bin 0 -> 56 bytes .../libnvpair/refs/uint64_array.ref | Bin 0 -> 88 bytes .../libnvpair/refs/uint64_array_empty.ref | Bin 0 -> 64 bytes .../libnvpair/refs/uint64_array_single.ref | Bin 0 -> 72 bytes .../tests/functional/libnvpair/refs/uint8.ref | Bin 0 -> 52 bytes .../functional/libnvpair/refs/uint8_array.ref | Bin 0 -> 72 bytes .../libnvpair/refs/uint8_array_empty.ref | Bin 0 -> 64 bytes .../libnvpair/refs/uint8_array_single.ref | Bin 0 -> 68 bytes .../tests/functional/libnvpair/setup.ksh | 37 +++++++++ 79 files changed, 203 insertions(+) create mode 100644 tests/zfs-tests/tests/functional/libnvpair/cleanup.ksh create mode 100644 tests/zfs-tests/tests/functional/libnvpair/packed.ksh create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/boolean.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/boolean_array.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/boolean_array_empty.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/boolean_array_single.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/boolean_flag.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/byte.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/byte_array.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/byte_array_empty.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/byte_array_single.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/double.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/empty_name.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/hrtime.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/int16.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/int16_array.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/int16_array_empty.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/int16_array_single.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/int32.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/int32_array.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/int32_array_empty.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/int32_array_single.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/int64.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/int64_array.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/int64_array_empty.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/int64_array_single.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/int8.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/int8_array.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/int8_array_empty.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/int8_array_single.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/nvlist0.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/nvlist1.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/nvlist2.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/nvlist3.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/nvlist_array.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/nvlist_array_empty.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/nvlist_array_single.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/string_.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/string_0.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/string_01.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/string_012.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/string_0123.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/string_01234.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/string_012345.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/string_0123456.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/string_01234567.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/string_012345678.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/string_0123456789.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/string_0123456789a.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/string_0123456789ab.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/string_0123456789abc.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/string_0123456789abcd.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/string_0123456789abcde.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/string_0123456789abcdef.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/string_0123456789abcdefg.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/string_array.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/string_array_empty.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/string_array_single.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/uint16.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/uint16_array.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/uint16_array_empty.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/uint16_array_single.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/uint32.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/uint32_array.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/uint32_array_empty.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/uint32_array_single.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/uint64.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/uint64_array.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/uint64_array_empty.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/uint64_array_single.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/uint8.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/uint8_array.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/uint8_array_empty.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/refs/uint8_array_single.ref create mode 100644 tests/zfs-tests/tests/functional/libnvpair/setup.ksh diff --git a/tests/runfiles/common.run b/tests/runfiles/common.run index 73ca699931..fe1d1213f4 100644 --- a/tests/runfiles/common.run +++ b/tests/runfiles/common.run @@ -713,6 +713,10 @@ tests = ['nopwrite_copies', 'nopwrite_mtime', 'nopwrite_negative', 'nopwrite_varying_compression', 'nopwrite_volume'] tags = ['functional', 'nopwrite'] +[tests/functional/libnvpair] +tests = ['packed'] +tags = ['functional', 'libnvpair'] + [tests/functional/online_offline] tests = ['online_offline_001_pos', 'online_offline_002_neg', 'online_offline_003_neg'] diff --git a/tests/runfiles/sanity.run b/tests/runfiles/sanity.run index f115f0b578..242e239e2f 100644 --- a/tests/runfiles/sanity.run +++ b/tests/runfiles/sanity.run @@ -490,6 +490,10 @@ tags = ['functional', 'nestedfs'] tests = ['nopwrite_sync', 'nopwrite_volume'] tags = ['functional', 'nopwrite'] +[tests/functional/libnvpair] +tests = ['packed'] +tags = ['functional', 'libnvpair'] + [tests/functional/pool_checkpoint] tests = ['checkpoint_conf_change', 'checkpoint_discard_many', 'checkpoint_removal', 'checkpoint_sm_scale', 'checkpoint_twice'] diff --git a/tests/zfs-tests/include/commands.cfg b/tests/zfs-tests/include/commands.cfg index b3cfe149ff..c4f32a91e7 100644 --- a/tests/zfs-tests/include/commands.cfg +++ b/tests/zfs-tests/include/commands.cfg @@ -203,6 +203,7 @@ export ZFSTEST_FILES='badsend mmap_seek mmap_sync mmapwrite + nvlist_packed nvlist_to_lua randfree_file randwritecomp diff --git a/tests/zfs-tests/tests/Makefile.am b/tests/zfs-tests/tests/Makefile.am index 39eb44f731..12ec842844 100644 --- a/tests/zfs-tests/tests/Makefile.am +++ b/tests/zfs-tests/tests/Makefile.am @@ -334,6 +334,78 @@ nobase_dist_datadir_zfs_tests_tests_DATA += \ functional/mv_files/mv_files_common.kshlib \ functional/nopwrite/nopwrite.shlib \ functional/no_space/enospc.cfg \ + functional/libnvpair/refs/boolean_flag.ref \ + functional/libnvpair/refs/byte.ref \ + functional/libnvpair/refs/int16.ref \ + functional/libnvpair/refs/uint16.ref \ + functional/libnvpair/refs/int32.ref \ + functional/libnvpair/refs/uint32.ref \ + functional/libnvpair/refs/int64.ref \ + functional/libnvpair/refs/uint64.ref \ + functional/libnvpair/refs/string_.ref \ + functional/libnvpair/refs/string_0.ref \ + functional/libnvpair/refs/string_01.ref \ + functional/libnvpair/refs/string_012.ref \ + functional/libnvpair/refs/string_0123.ref \ + functional/libnvpair/refs/string_01234.ref \ + functional/libnvpair/refs/string_012345.ref \ + functional/libnvpair/refs/string_0123456.ref \ + functional/libnvpair/refs/string_01234567.ref \ + functional/libnvpair/refs/string_012345678.ref \ + functional/libnvpair/refs/string_0123456789.ref \ + functional/libnvpair/refs/byte_array.ref \ + functional/libnvpair/refs/string_0123456789a.ref \ + functional/libnvpair/refs/string_0123456789ab.ref \ + functional/libnvpair/refs/string_0123456789abc.ref \ + functional/libnvpair/refs/string_0123456789abcd.ref \ + functional/libnvpair/refs/string_0123456789abcde.ref \ + functional/libnvpair/refs/string_0123456789abcdef.ref \ + functional/libnvpair/refs/string_0123456789abcdefg.ref \ + functional/libnvpair/refs/byte_array_empty.ref \ + functional/libnvpair/refs/byte_array_single.ref \ + functional/libnvpair/refs/int16_array.ref \ + functional/libnvpair/refs/int16_array_empty.ref \ + functional/libnvpair/refs/int16_array_single.ref \ + functional/libnvpair/refs/uint16_array.ref \ + functional/libnvpair/refs/uint16_array_empty.ref \ + functional/libnvpair/refs/uint16_array_single.ref \ + functional/libnvpair/refs/hrtime.ref \ + functional/libnvpair/refs/int32_array.ref \ + functional/libnvpair/refs/int32_array_empty.ref \ + functional/libnvpair/refs/int32_array_single.ref \ + functional/libnvpair/refs/uint32_array.ref \ + functional/libnvpair/refs/uint32_array_empty.ref \ + functional/libnvpair/refs/uint32_array_single.ref \ + functional/libnvpair/refs/int64_array.ref \ + functional/libnvpair/refs/int64_array_empty.ref \ + functional/libnvpair/refs/int64_array_single.ref \ + functional/libnvpair/refs/uint64_array.ref \ + functional/libnvpair/refs/uint64_array_empty.ref \ + functional/libnvpair/refs/uint64_array_single.ref \ + functional/libnvpair/refs/string_array.ref \ + functional/libnvpair/refs/string_array_empty.ref \ + functional/libnvpair/refs/string_array_single.ref \ + functional/libnvpair/refs/nvlist0.ref \ + functional/libnvpair/refs/nvlist1.ref \ + functional/libnvpair/refs/nvlist2.ref \ + functional/libnvpair/refs/nvlist3.ref \ + functional/libnvpair/refs/nvlist_array.ref \ + functional/libnvpair/refs/nvlist_array_empty.ref \ + functional/libnvpair/refs/nvlist_array_single.ref \ + functional/libnvpair/refs/boolean.ref \ + functional/libnvpair/refs/int8.ref \ + functional/libnvpair/refs/uint8.ref \ + functional/libnvpair/refs/boolean_array.ref \ + functional/libnvpair/refs/boolean_array_empty.ref \ + functional/libnvpair/refs/boolean_array_single.ref \ + functional/libnvpair/refs/int8_array.ref \ + functional/libnvpair/refs/int8_array_empty.ref \ + functional/libnvpair/refs/int8_array_single.ref \ + functional/libnvpair/refs/uint8_array.ref \ + functional/libnvpair/refs/uint8_array_empty.ref \ + functional/libnvpair/refs/uint8_array_single.ref \ + functional/libnvpair/refs/double.ref \ + functional/libnvpair/refs/empty_name.ref \ functional/online_offline/online_offline.cfg \ functional/pool_checkpoint/pool_checkpoint.kshlib \ functional/projectquota/projectquota.cfg \ @@ -1538,6 +1610,9 @@ nobase_dist_datadir_zfs_tests_tests_SCRIPTS += \ functional/no_space/enospc_df.ksh \ functional/no_space/enospc_rm.ksh \ functional/no_space/setup.ksh \ + functional/libnvpair/cleanup.ksh \ + functional/libnvpair/packed.ksh \ + functional/libnvpair/setup.ksh \ functional/online_offline/cleanup.ksh \ functional/online_offline/online_offline_001_pos.ksh \ functional/online_offline/online_offline_002_neg.ksh \ diff --git a/tests/zfs-tests/tests/functional/libnvpair/cleanup.ksh b/tests/zfs-tests/tests/functional/libnvpair/cleanup.ksh new file mode 100644 index 0000000000..dc49790c99 --- /dev/null +++ b/tests/zfs-tests/tests/functional/libnvpair/cleanup.ksh @@ -0,0 +1,34 @@ +#!/bin/ksh -p +# +# CDDL HEADER START +# +# The contents of this file are subject to the terms of the +# Common Development and Distribution License (the "License"). +# You may not use this file except in compliance with the License. +# +# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +# or https://opensource.org/licenses/CDDL-1.0. +# See the License for the specific language governing permissions +# and limitations under the License. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file at usr/src/OPENSOLARIS.LICENSE. +# If applicable, add the following below this CDDL HEADER, with the +# fields enclosed by brackets "[]" replaced with your own identifying +# information: Portions Copyright [yyyy] [name of copyright owner] +# +# CDDL HEADER END +# + +# +# Copyright 2022 SRI International +# +# This software was developed by SRI International, the University of +# Cambridge Computer Laboratory (Department of Computer Science and +# Technology), and Capabilities Limited under Defense Advanced Research +# Projects Agency (DARPA) Contract No. HR001122C0110 ("ETC"). +# + +. $STF_SUITE/include/libtest.shlib + +log_pass diff --git a/tests/zfs-tests/tests/functional/libnvpair/packed.ksh b/tests/zfs-tests/tests/functional/libnvpair/packed.ksh new file mode 100644 index 0000000000..ef50e9a194 --- /dev/null +++ b/tests/zfs-tests/tests/functional/libnvpair/packed.ksh @@ -0,0 +1,48 @@ +#! /bin/ksh -p +# +# CDDL HEADER START +# +# The contents of this file are subject to the terms of the +# Common Development and Distribution License (the "License"). +# You may not use this file except in compliance with the License. +# +# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +# or https://opensource.org/licenses/CDDL-1.0. +# See the License for the specific language governing permissions +# and limitations under the License. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file at usr/src/OPENSOLARIS.LICENSE. +# If applicable, add the following below this CDDL HEADER, with the +# fields enclosed by brackets "[]" replaced with your own identifying +# information: Portions Copyright [yyyy] [name of copyright owner] +# +# CDDL HEADER END +# + +# +# Copyright 2022 SRI International +# +# This software was developed by SRI International, the University of +# Cambridge Computer Laboratory (Department of Computer Science and +# Technology), and Capabilities Limited under Defense Advanced Research +# Projects Agency (DARPA) Contract No. HR001122C0110 ("ETC"). +# + +. $STF_SUITE/include/libtest.shlib + +# +# DESCRIPTION: +# Ensure that nvlists can be packed and unpacked correctly. +# +# STRATEGY: +# Run all test cases and check against reference outputs +# + +verify_runnable "both" + +log_assert "Ensure nvlist pack/unpack work" + +log_must nvlist_packed -a -r ${STF_SUITE}/tests/functional/libnvpair/refs + +log_pass "Packed nvlists round trip and compare to references" diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/boolean.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/boolean.ref new file mode 100644 index 0000000000000000000000000000000000000000..e169cf5ffab468c06f34173e9bdd3b8ba1c25a40 GIT binary patch literal 52 hcmZQ%WIzTAKn@7AC*|koq$cJ8nGB*p3{nMG2>?@r13>@) literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/boolean_array.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/boolean_array.ref new file mode 100644 index 0000000000000000000000000000000000000000..a66f023f289dfce7b6de0d81317741cc7440db5e GIT binary patch literal 76 qcmZQ%WIzTMK#ll`+=B4MP0>veO7^DM+flLMl05#JH(EtDd literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/boolean_flag.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/boolean_flag.ref new file mode 100644 index 0000000000000000000000000000000000000000..019f6b4e858fd7cdf5ab05530d1d0d10128e3e09 GIT binary patch literal 52 gcmZQ%WIzTAKn@7=B<1Jlq$cLYr{yH31NkVb0C*M!DF6Tf literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/byte.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/byte.ref new file mode 100644 index 0000000000000000000000000000000000000000..8f021bb1fd743e7c4b4fcc6989bd7bed9bfde7b3 GIT binary patch literal 48 gcmZQ%WIzToK#l?svm{lPqylLsAO@*O1Y$4%05TT>TL1t6 literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/byte_array.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/byte_array.ref new file mode 100644 index 0000000000000000000000000000000000000000..20191e4259190646966b2b0cf814150109105b88 GIT binary patch literal 56 ocmZQ%WIzTgK#m3wb0t-lq{b%}6(v@JrMZA4OJY)T3YZ5Z0Fk=}BLDyZ literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/byte_array_empty.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/byte_array_empty.ref new file mode 100644 index 0000000000000000000000000000000000000000..d1eed756508f17e69eb5f9ac75bebc5a8a262c1e GIT binary patch literal 56 ncmZQ%WIzTgK#m3w3nW#Rq{b%}6(v^2r{)%vR074gkQD*|vv~(8 literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/byte_array_single.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/byte_array_single.ref new file mode 100644 index 0000000000000000000000000000000000000000..d94b7683144d0d1412a2252781eacc47ce8c4ffb GIT binary patch literal 64 tcmZQ%WIzTwK#lTq{b%}6(v^27iZ?B=cGbZaRDjDL1aJT_ literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/hrtime.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/hrtime.ref new file mode 100644 index 0000000000000000000000000000000000000000..ee20de286674154838b4b1bbaad70365d337c2f3 GIT binary patch literal 56 gcmZQ%WIzTgK#l?svt<;OWag%VrG$Vasw$uW09ZN#=>Px# literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/int16.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/int16.ref new file mode 100644 index 0000000000000000000000000000000000000000..411a9f2ad9df11f1e3f154ac624a60c8968d0249 GIT binary patch literal 52 dcmZQ%WIzTAKn@7AX6BU`ngJO=zzoDFssJ|Q0sa60 literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/int16_array.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/int16_array.ref new file mode 100644 index 0000000000000000000000000000000000000000..0ae965558d4ba3839ea89e1e8cb0ebf2c9d5e2f5 GIT binary patch literal 72 ucmZQ%WIzTcK#m3wb7$t27@EZ=78NB{g5t7L2QdHu literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/int16_array_single.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/int16_array_single.ref new file mode 100644 index 0000000000000000000000000000000000000000..61389231b5f11b27b83f5b1aee61065c0216ebdd GIT binary patch literal 68 rcmZQ%WIzT6Kn@5CW#*L_n#Cs;6(v^27iZ?B=cIy_aRW(^4isGg5fTTJ literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/int32.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/int32.ref new file mode 100644 index 0000000000000000000000000000000000000000..254e0bc38484161730d4750a05556e57ff2f407b GIT binary patch literal 52 dcmZQ%WIzTAKn@7AX6BU`8vz+0HV~tz0suDG0sa60 literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/int32_array.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/int32_array.ref new file mode 100644 index 0000000000000000000000000000000000000000..e908ca2743939d3ff71ac7b34cc446b85051810a GIT binary patch literal 72 ucmZQ%WIzTcK#lt6+2QdHu literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/int32_array_single.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/int32_array_single.ref new file mode 100644 index 0000000000000000000000000000000000000000..6f82c2108e45fc96f3c97cbdac85bab5e7d3a5c8 GIT binary patch literal 68 rcmZQ%WIzT6Kn@5CW#*L_8^tFU6(v^27iZ?B=cIy_@d8PZ4isGg5bg() literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/int64.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/int64.ref new file mode 100644 index 0000000000000000000000000000000000000000..503a97b2fae5eaa71d52b3cb328b3acbb199accc GIT binary patch literal 56 fcmZQ%WIzTgK#l?svu5U%n3+Ii*nt$PDxd%WKr8|Y literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/int64_array.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/int64_array.ref new file mode 100644 index 0000000000000000000000000000000000000000..68d1b43a83357fd3727082443c53f3b72180706e GIT binary patch literal 88 ucmZQ%WIzTkK#l_tb7$t2n3=>U78NB{g5>#um<5VKd>DY~X8I2WFbM#MnGDwe literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/int64_array_empty.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/int64_array_empty.ref new file mode 100644 index 0000000000000000000000000000000000000000..31d50ff1bcc47b57bb4542f41357bad24da097f0 GIT binary patch literal 64 pcmZQ%WIzTwK#m3w3ufk(n3=>U78NB{#;4{MlvF}g@gpk+u>t9W2RHx# literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/int64_array_single.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/int64_array_single.ref new file mode 100644 index 0000000000000000000000000000000000000000..eaeb0de9f99d50110c641a8493af92600af6a71a GIT binary patch literal 72 ucmZQ%WIzTcK#lU78NB{#usPirRSuAmGJ{fkPcK`Kmhvbe6@u6R%YFw7 literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/int8_array_single.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/int8_array_single.ref new file mode 100644 index 0000000000000000000000000000000000000000..40d4a6d24b7c39fd4cef1e0b8c0d3b29dc6ffc60 GIT binary patch literal 68 qcmZQ%WIzT6Kn@5CX6BVx#3vRNC0524XXd5nq(W3l0x6IV6kPxi83%Cy literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/nvlist0.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/nvlist0.ref new file mode 100644 index 0000000000000000000000000000000000000000..8a29be67013a706d98e7b4b3902cfcae13c12900 GIT binary patch literal 232 zcmZ9F!3x4a3`DcyZt?8ZLk=E1ii-bZvB*N%gH4P6r~jibvITMAF*772A;_;@lszhoY8WexL|yH;W@*X}_<5$2r@Sz*~et-}}Kvlg_H#$4=ppot_1Z-j3_f!lUI5l{o) adEMF371Ch$Ty7+h75I-hUHZ|V{_6w9S{^I_ literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/nvlist1.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/nvlist1.ref new file mode 100644 index 0000000000000000000000000000000000000000..dc355f8a502b01719c0044cd8ddbdfb602829284 GIT binary patch literal 308 zcmb8p%?iRW48ZYJY=>vB9&+&D(T}nBaX6$fdT`y)_w;@AAE~g52LnHn(2&$QnT1oD zJ*qVIamWWsS>ropSqmT2rMuG*9`p&773IrY+CeY9>n|T`yoQynSo(C%D-TU=)d>?O2sey literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/nvlist_array.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/nvlist_array.ref new file mode 100644 index 0000000000000000000000000000000000000000..93561ac89f6ccbbe0c92235c705f2faca252b491 GIT binary patch literal 1244 zcmeH`%L;-(6o$w0LeQ?3EoRZ8WjA`AP?8YDg^rSM)8q62y-$5d4I~V47t{}*a}MV? zGyXGLmTJkqkz8S#6mgW9qo1aJNj?V~MDm7iaH8ZCUPzDwuh|yF8tkAnA>#<77JzPW z^C&U9Etyg-SP#Uw1P#n>4toORK~-;hR^%Go%%o9rCQ@nwvW8RmaW0F#Nou;GYu{48 z!y3H$`z2H}keaA(4(a*EZl3%m4rY literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/nvlist_array_empty.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/nvlist_array_empty.ref new file mode 100644 index 0000000000000000000000000000000000000000..e27fbf98ac253a61f2012221d9b44f9262974afd GIT binary patch literal 60 ocmZQ%WIzTQKn@5C<(1`R7MH{)78NB{#;4{MlvIM1i6AQm0OW)SB>(^b literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/nvlist_array_single.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/nvlist_array_single.ref new file mode 100644 index 0000000000000000000000000000000000000000..b20a194365db211c34480170cdd0b2e343290b15 GIT binary patch literal 244 zcmYk0O$x#=5JnR*5!bqOk%bG_DxSexloX2uLKaP0>}|b?z9}j6gU8I5`N?Rl*7{OL4`VCgxLJJ_~Ukp&x&S_`gXhmgwcic`vh o{vqNS9I(4Q?j&djbG`Ol@D6M)Jx7u$wFmjbj6M$Y)$+R1A5-Nci~s-t literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/string_.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/string_.ref new file mode 100644 index 0000000000000000000000000000000000000000..325938256eb6dc5c4f29dc4152cff6f21b74a601 GIT binary patch literal 52 fcmZQ%WIzTAKn@7A7nc-e=B392nGBpjjG_tvRV)Ka literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/string_0.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/string_0.ref new file mode 100644 index 0000000000000000000000000000000000000000..860cf3d071d24b6795e155e83c6b3449f99689e6 GIT binary patch literal 56 kcmZQ%WIzTgK#m3wa}<{pW#*;F8vxmyKnzmF2;#s10Bb%2xBvhE literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/string_01.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/string_01.ref new file mode 100644 index 0000000000000000000000000000000000000000..5c6724102cd897b61de65b507d2693429845ffd8 GIT binary patch literal 60 lcmZQ%WIzTQKn@6V7MB!d=B39Q7(!$@ffPt36HEXk3;==?D01^ZMkR}A~ literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/string_01234.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/string_01234.ref new file mode 100644 index 0000000000000000000000000000000000000000..70d1748939d54034cd1399e23f35ce28daa9ba26 GIT binary patch literal 64 qcmZQ%WIzTwK#m3w^Awj9W#*;F8yFfHn*jNoKnzmJ3KIab!2kfQFa=xy literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/string_012345.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/string_012345.ref new file mode 100644 index 0000000000000000000000000000000000000000..800d18e723ad5bae5da2adf1481ce90f0f516696 GIT binary patch literal 68 qcmZQ%WIzT6K#m3w^A?vBW#*;F8yFfHo0vjWZ~`fiYBpp+kQ4yObp^}- literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/string_0123456.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/string_0123456.ref new file mode 100644 index 0000000000000000000000000000000000000000..d80bae7103923daed0ad8a8ee6dccf5a1dde0b13 GIT binary patch literal 68 rcmZQ%WIzT6K#m3w^A(pAW#*;F8yFfHo0yt`m2d({kZN{hL68gp(OCvM literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/string_01234567.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/string_01234567.ref new file mode 100644 index 0000000000000000000000000000000000000000..ff971aef05ccd99321eadfa6783c8a2c26f9b07f GIT binary patch literal 68 rcmZQ%WIzT6Kn@7=7nc-e=B39Q7#bOyn3|b`)NleZNHqttAV>lL+kghL literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/string_012345678.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/string_012345678.ref new file mode 100644 index 0000000000000000000000000000000000000000..d6344c11946051b78b1cb7f0b22dd1a4ea60d84a GIT binary patch literal 72 tcmZQ%WIzTcK#m0v3lx_WW#*;F8yFfHo0yuJgTy$27^IpLSrEtv0{{a72QUBt literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/string_0123456789.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/string_0123456789.ref new file mode 100644 index 0000000000000000000000000000000000000000..6488575d835270708b06e081ec6af62ea2d62914 GIT binary patch literal 76 tcmZQ%WIzTMKn@5C7MB!d=B39Q7#bOyn3|beSVB~B0x6IVE_4ZyGyo&o2dDr5 literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/string_0123456789a.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/string_0123456789a.ref new file mode 100644 index 0000000000000000000000000000000000000000..c693671ed52295068d5c934ba73edca742d7be40 GIT binary patch literal 76 ucmZQ%WIzTMKn@5C6_*rc=B39Q7#bOyn3|beSSEs%aRNz@4sLV_kSqW-F$in` literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/string_0123456789ab.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/string_0123456789ab.ref new file mode 100644 index 0000000000000000000000000000000000000000..2eaade3c167a6e7bdfd55777833770f5c581f60c GIT binary patch literal 76 vcmZQ%WIzTMKn@5C7nc-e=B39Q7#bOyn3|beSSBWc)NukaNCywP1V|D9MezwT literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/string_0123456789abc.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/string_0123456789abc.ref new file mode 100644 index 0000000000000000000000000000000000000000..8db35412b9ddcabdea9c6495942079da4c76a29f GIT binary patch literal 80 ycmZQ%WIzTsK#m0vixig>W#*;F8yFfHo0yuJTUaJ0B?HAdff%HN7hM7<1_l6s0tx;A literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/string_0123456789abcd.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/string_0123456789abcd.ref new file mode 100644 index 0000000000000000000000000000000000000000..2bba00dc315f97fbf8970f07844673c136ae1f73 GIT binary patch literal 84 ycmZQ%WIzTEK#m0vix!s@W#*;F8yFfHo0yuJTUaJ0C8t1CasnxkE24GIg| literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/string_array_empty.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/string_array_empty.ref new file mode 100644 index 0000000000000000000000000000000000000000..a47a74f1308ec54a149ef815b822a0a97c5bc317 GIT binary patch literal 60 ocmZQ%WIzTQKn@5C6_*rc=B39c78NB{#;4{MlvIM12_h>70OMo`82|tP literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/string_array_single.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/string_array_single.ref new file mode 100644 index 0000000000000000000000000000000000000000..86eddce6f03fd4527b2cc404c8ef7690ad70b236 GIT binary patch literal 68 vcmZQ%WIzT6K#m0v3m2CZW#*;FCl(bYR>l_tnK`K-b%H<)(!rPr;z0obHbDsJ literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/uint16.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/uint16.ref new file mode 100644 index 0000000000000000000000000000000000000000..0ac7b54bbb4f8a7a7873eb18ebbb3119c2d31590 GIT binary patch literal 52 fcmZQ%WIzTAKn@7Am1gFZ7@7fD3=AwljG_tvLMsAw literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/uint16_array.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/uint16_array.ref new file mode 100644 index 0000000000000000000000000000000000000000..37168018d90c99a12748620ca2bba5a72dafd457 GIT binary patch literal 72 vcmZQ%WIzTcK#m3w^OR=hl^B}ECl(bYR)Y9I%mT$giUFjH35frLI3NH3=aL2{ literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/uint16_array_empty.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/uint16_array_empty.ref new file mode 100644 index 0000000000000000000000000000000000000000..e31d698e26b1cb275143d30cfebe61b27af31e74 GIT binary patch literal 64 qcmZQ%WIzTwK#m3w3zcT(l^B}ECl(bYR>r617L-(imGK}e2C)J3k_V^& literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/uint16_array_single.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/uint16_array_single.ref new file mode 100644 index 0000000000000000000000000000000000000000..3722cc114275bcfeee6401e37cc7e6fc9ffa3101 GIT binary patch literal 68 scmZQ%WIzT6Kn@5CmuBXb7@EZ=78NB{#usPirRSuA)bRi@NC%2803Kfm3IG5A literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/uint32.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/uint32.ref new file mode 100644 index 0000000000000000000000000000000000000000..2773cc71ebb63f1aedbe79bcca95369b9cefa119 GIT binary patch literal 52 ecmZQ%WIzTAKn@7Am1gFZ7#jguKsFGgr~&{&Ap&&( literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/uint32_array.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/uint32_array.ref new file mode 100644 index 0000000000000000000000000000000000000000..257accf94fb599e91915c62c0ac22f573417c617 GIT binary patch literal 72 wcmZQ%WIzTcK#lr617L-(imGL1f2C)J3a0jRW literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/uint32_array_single.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/uint32_array_single.ref new file mode 100644 index 0000000000000000000000000000000000000000..48e74f046bb2b142a7f73ba36e21cc0454d61b1e GIT binary patch literal 68 scmZQ%WIzT6Kn@5CmuBXb7#qbW78NB{#usPirRSuA)bRl^NC%2803JOE3IG5A literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/uint64.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/uint64.ref new file mode 100644 index 0000000000000000000000000000000000000000..5cf66821f9e93aa1e9f26b904059b75c7fccb271 GIT binary patch literal 56 gcmZQ%WIzTgK#l?svz2D%m6(};r8s~jsw$uW08LE-fB*mh literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/uint64_array.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/uint64_array.ref new file mode 100644 index 0000000000000000000000000000000000000000..dfceee2f151a250f7a29d075dec32d3d9b3f7a4f GIT binary patch literal 88 vcmZQ%WIzTkK#l_t^OR=hm6(~tCl(bYRs#6~K+FQgKnf0Ex|#k%0Zaw}p%@KL literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/uint64_array_empty.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/uint64_array_empty.ref new file mode 100644 index 0000000000000000000000000000000000000000..f2632fbe0d23fdf328d5226600d335c2d7fb905e GIT binary patch literal 64 qcmZQ%WIzTwK#m3w3zcT(m6(~tCl(bYR>r617L-(il?fm#2C)J4Ll`+=B4MPg478BF-QlhE}#GaKvf78 literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/uint8.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/uint8.ref new file mode 100644 index 0000000000000000000000000000000000000000..d051cccfe99dd62212746f3795b165220d51e4ad GIT binary patch literal 52 dcmZQ%WIzTAKn@7AmS*OaSO6J7AP&SRssKM90$2b5 literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/uint8_array.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/uint8_array.ref new file mode 100644 index 0000000000000000000000000000000000000000..23418e847dab986bad357d5e51ce3a38977465dd GIT binary patch literal 72 ucmZQ%WIzTcK#m3wbC+i3l~}|l78NB{g5;%um<5VKe2^}t|3CoZfB*mly$JyT literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/uint8_array_empty.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/uint8_array_empty.ref new file mode 100644 index 0000000000000000000000000000000000000000..a69446d7346d0ee802393fc6ae11d90ed94c6325 GIT binary patch literal 64 pcmZQ%WIzTwK#m3w3zlZ)l~}|l78NB{#;4{MlvF}gNg*o+u>te_2ZjIu literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/refs/uint8_array_single.ref b/tests/zfs-tests/tests/functional/libnvpair/refs/uint8_array_single.ref new file mode 100644 index 0000000000000000000000000000000000000000..cf69f38a69dd1543d71206e9e2976f5998317774 GIT binary patch literal 68 rcmZQ%WIzT6Kn@5Cm1gFZSi~n56(v^27iZ?B=cIy_NdZZa4isGg9hC>@ literal 0 HcmV?d00001 diff --git a/tests/zfs-tests/tests/functional/libnvpair/setup.ksh b/tests/zfs-tests/tests/functional/libnvpair/setup.ksh new file mode 100644 index 0000000000..c8a0bcd27b --- /dev/null +++ b/tests/zfs-tests/tests/functional/libnvpair/setup.ksh @@ -0,0 +1,37 @@ +#!/bin/ksh -p +# +# CDDL HEADER START +# +# The contents of this file are subject to the terms of the +# Common Development and Distribution License (the "License"). +# You may not use this file except in compliance with the License. +# +# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +# or https://opensource.org/licenses/CDDL-1.0. +# See the License for the specific language governing permissions +# and limitations under the License. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file at usr/src/OPENSOLARIS.LICENSE. +# If applicable, add the following below this CDDL HEADER, with the +# fields enclosed by brackets "[]" replaced with your own identifying +# information: Portions Copyright [yyyy] [name of copyright owner] +# +# CDDL HEADER END +# + +# +# Copyright 2022 SRI International +# +# This software was developed by SRI International, the University of +# Cambridge Computer Laboratory (Department of Computer Science and +# Technology), and Capabilities Limited under Defense Advanced Research +# Projects Agency (DARPA) Contract No. HR001122C0110 ("ETC"). +# + +. $STF_SUITE/include/libtest.shlib + +# No setup required, test is self contained other than committed reference +# files. +log_pass +