1*ca6cbb65SFam Zheng#!/bin/bash 2*ca6cbb65SFam Zheng# 3*ca6cbb65SFam Zheng# Test case for vmdk 4*ca6cbb65SFam Zheng# 5*ca6cbb65SFam Zheng# Copyright (C) 2013 Red Hat, Inc. 6*ca6cbb65SFam Zheng# 7*ca6cbb65SFam Zheng# This program is free software; you can redistribute it and/or modify 8*ca6cbb65SFam Zheng# it under the terms of the GNU General Public License as published by 9*ca6cbb65SFam Zheng# the Free Software Foundation; either version 2 of the License, or 10*ca6cbb65SFam Zheng# (at your option) any later version. 11*ca6cbb65SFam Zheng# 12*ca6cbb65SFam Zheng# This program is distributed in the hope that it will be useful, 13*ca6cbb65SFam Zheng# but WITHOUT ANY WARRANTY; without even the implied warranty of 14*ca6cbb65SFam Zheng# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15*ca6cbb65SFam Zheng# GNU General Public License for more details. 16*ca6cbb65SFam Zheng# 17*ca6cbb65SFam Zheng# You should have received a copy of the GNU General Public License 18*ca6cbb65SFam Zheng# along with this program. If not, see <http://www.gnu.org/licenses/>. 19*ca6cbb65SFam Zheng# 20*ca6cbb65SFam Zheng 21*ca6cbb65SFam Zheng# creator 22*ca6cbb65SFam Zhengowner=famz@redhat.com 23*ca6cbb65SFam Zheng 24*ca6cbb65SFam Zhengseq=`basename $0` 25*ca6cbb65SFam Zhengecho "QA output created by $seq" 26*ca6cbb65SFam Zheng 27*ca6cbb65SFam Zhenghere=`pwd` 28*ca6cbb65SFam Zhengtmp=/tmp/$$ 29*ca6cbb65SFam Zhengstatus=1 # failure is the default! 30*ca6cbb65SFam Zheng 31*ca6cbb65SFam Zheng_cleanup() 32*ca6cbb65SFam Zheng{ 33*ca6cbb65SFam Zheng _cleanup_test_img 34*ca6cbb65SFam Zheng} 35*ca6cbb65SFam Zhengtrap "_cleanup; exit \$status" 0 1 2 3 15 36*ca6cbb65SFam Zheng 37*ca6cbb65SFam Zheng# get standard environment, filters and checks 38*ca6cbb65SFam Zheng. ./common.rc 39*ca6cbb65SFam Zheng. ./common.filter 40*ca6cbb65SFam Zheng 41*ca6cbb65SFam Zheng# This tests vmdk-specific low-level functionality 42*ca6cbb65SFam Zheng_supported_fmt vmdk 43*ca6cbb65SFam Zheng_supported_proto generic 44*ca6cbb65SFam Zheng_supported_os Linux 45*ca6cbb65SFam Zheng 46*ca6cbb65SFam Zhenggranularity_offset=16 47*ca6cbb65SFam Zheng 48*ca6cbb65SFam Zheng# success, all done 49*ca6cbb65SFam Zhengecho "*** done" 50*ca6cbb65SFam Zhengrm -f $seq.full 51*ca6cbb65SFam Zhengstatus=0 52