Path: blob/main/tests/sys/cddl/zfs/include/libtest_test.sh
39536 views
# CDDL HEADER START1#2# The contents of this file are subject to the terms of the3# Common Development and Distribution License (the "License").4# You may not use this file except in compliance with the License.5#6# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE7# or http://www.opensolaris.org/os/licensing.8# See the License for the specific language governing permissions9# and limitations under the License.10#11# When distributing Covered Code, include this CDDL HEADER in each12# file and include the License file at usr/src/OPENSOLARIS.LICENSE.13# If applicable, add the following below this CDDL HEADER, with the14# fields enclosed by brackets "[]" replaced with your own identifying15# information: Portions Copyright [yyyy] [name of copyright owner]16#17# CDDL HEADER END18#1920#21# Copyright 2016 Spectra Logic. All rights reserved.22# Use is subject to license terms.23#2425atf_test_case raidz_dva_to_block_addr26raidz_dva_to_block_addr_head()27{28atf_set "descr" "Unit tests for raidz_dva_to_block_addr"29}30raidz_dva_to_block_addr_body()31{32. $(atf_get_srcdir)/default.cfg3334# These test cases were determined by hand on an actual filesystem35atf_check_equal 3211 `raidz_dva_to_block_addr 0:3f40000:4000 3 13`36}3738atf_init_test_cases()39{40atf_add_test_case raidz_dva_to_block_addr41}424344