1*77c102c2SJeff Cody#!/bin/bash 2*77c102c2SJeff Cody# 3*77c102c2SJeff Cody# Test VPC open of image with large Max Table Entries value. 4*77c102c2SJeff Cody# 5*77c102c2SJeff Cody# Copyright (C) 2015 Red Hat, Inc. 6*77c102c2SJeff Cody# 7*77c102c2SJeff Cody# This program is free software; you can redistribute it and/or modify 8*77c102c2SJeff Cody# it under the terms of the GNU General Public License as published by 9*77c102c2SJeff Cody# the Free Software Foundation; either version 2 of the License, or 10*77c102c2SJeff Cody# (at your option) any later version. 11*77c102c2SJeff Cody# 12*77c102c2SJeff Cody# This program is distributed in the hope that it will be useful, 13*77c102c2SJeff Cody# but WITHOUT ANY WARRANTY; without even the implied warranty of 14*77c102c2SJeff Cody# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15*77c102c2SJeff Cody# GNU General Public License for more details. 16*77c102c2SJeff Cody# 17*77c102c2SJeff Cody# You should have received a copy of the GNU General Public License 18*77c102c2SJeff Cody# along with this program. If not, see <http://www.gnu.org/licenses/>. 19*77c102c2SJeff Cody# 20*77c102c2SJeff Cody 21*77c102c2SJeff Cody# creator 22*77c102c2SJeff Codyowner=jcody@redhat.com 23*77c102c2SJeff Cody 24*77c102c2SJeff Codyseq=`basename $0` 25*77c102c2SJeff Codyecho "QA output created by $seq" 26*77c102c2SJeff Cody 27*77c102c2SJeff Codyhere=`pwd` 28*77c102c2SJeff Codytmp=/tmp/$$ 29*77c102c2SJeff Codystatus=1 # failure is the default! 30*77c102c2SJeff Cody 31*77c102c2SJeff Cody_cleanup() 32*77c102c2SJeff Cody{ 33*77c102c2SJeff Cody _cleanup_test_img 34*77c102c2SJeff Cody} 35*77c102c2SJeff Codytrap "_cleanup; exit \$status" 0 1 2 3 15 36*77c102c2SJeff Cody 37*77c102c2SJeff Cody# get standard environment, filters and checks 38*77c102c2SJeff Cody. ./common.rc 39*77c102c2SJeff Cody. ./common.filter 40*77c102c2SJeff Cody 41*77c102c2SJeff Cody_supported_fmt vpc 42*77c102c2SJeff Cody_supported_proto generic 43*77c102c2SJeff Cody_supported_os Linux 44*77c102c2SJeff Cody 45*77c102c2SJeff Cody_use_sample_img afl5.img.bz2 46*77c102c2SJeff Cody 47*77c102c2SJeff Codyecho 48*77c102c2SJeff Codyecho "=== Verify image open and failure ====" 49*77c102c2SJeff Cody$QEMU_IMG info "$TEST_IMG" 2>&1| _filter_testdir 50*77c102c2SJeff Cody 51*77c102c2SJeff Cody# success, all done 52*77c102c2SJeff Codyecho "*** done" 53*77c102c2SJeff Codyrm -f $seq.full 54*77c102c2SJeff Codystatus=0 55