1*decf2b5eSjmmv# $NetBSD: t_dm.sh,v 1.2 2010/11/07 17:51:17 jmmv Exp $ 206d49ab5Shaad# 306d49ab5Shaad# Copyright (c) 2010 The NetBSD Foundation, Inc. 406d49ab5Shaad# All rights reserved. 506d49ab5Shaad# 606d49ab5Shaad# Redistribution and use in source and binary forms, with or without 706d49ab5Shaad# modification, are permitted provided that the following conditions 806d49ab5Shaad# are met: 906d49ab5Shaad# 1. Redistributions of source code must retain the above copyright 1006d49ab5Shaad# notice, this list of conditions and the following disclaimer. 1106d49ab5Shaad# 2. Redistributions in binary form must reproduce the above copyright 1206d49ab5Shaad# notice, this list of conditions and the following disclaimer in the 1306d49ab5Shaad# documentation and/or other materials provided with the distribution. 1406d49ab5Shaad# 1506d49ab5Shaad# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 1606d49ab5Shaad# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 1706d49ab5Shaad# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 1806d49ab5Shaad# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 1906d49ab5Shaad# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 2006d49ab5Shaad# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 2106d49ab5Shaad# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 2206d49ab5Shaad# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 2306d49ab5Shaad# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 2406d49ab5Shaad# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 2506d49ab5Shaad# POSSIBILITY OF SUCH DAMAGE. 2606d49ab5Shaad# 2706d49ab5Shaad 2806d49ab5Shaadatf_test_case dm_test 2906d49ab5Shaaddm_test_head() 3006d49ab5Shaad{ 3106d49ab5Shaad atf_set "descr" "Check dm driver routines and create lineary, stripe mapped disks" 3206d49ab5Shaad} 3306d49ab5Shaad 3406d49ab5Shaaddm_test_body() 3506d49ab5Shaad{ 3606d49ab5Shaad # XXX Actually we need disks than 1 for stripe check let it leave for later now. 3706d49ab5Shaad #atf_check -s exit:0 uudecode $(atf_get_srcdir)/t_dm_disk_1.bz2.uue 3806d49ab5Shaad #atf_check -s exit:0 bunzip2 t_dm_disk_1.bz2 3906d49ab5Shaad #atf_check -s exit:0 -o file:t_dm_disk_1 $(atf_get_srcdir)/h_dm 4006d49ab5Shaad atf_check -s exit:0 $(atf_get_srcdir)/h_dm 4106d49ab5Shaad} 4206d49ab5Shaad 4306d49ab5Shaadatf_init_test_cases() 4406d49ab5Shaad{ 4506d49ab5Shaad 4606d49ab5Shaad atf_add_test_case dm_test 4706d49ab5Shaad} 48