1*11a82d14SPhilippe Mathieu-Daudé#!/usr/bin/env bash 277c102c2SJeff Cody# 377c102c2SJeff Cody# Test VPC open of image with large Max Table Entries value. 477c102c2SJeff Cody# 577c102c2SJeff Cody# Copyright (C) 2015 Red Hat, Inc. 677c102c2SJeff Cody# 777c102c2SJeff Cody# This program is free software; you can redistribute it and/or modify 877c102c2SJeff Cody# it under the terms of the GNU General Public License as published by 977c102c2SJeff Cody# the Free Software Foundation; either version 2 of the License, or 1077c102c2SJeff Cody# (at your option) any later version. 1177c102c2SJeff Cody# 1277c102c2SJeff Cody# This program is distributed in the hope that it will be useful, 1377c102c2SJeff Cody# but WITHOUT ANY WARRANTY; without even the implied warranty of 1477c102c2SJeff Cody# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1577c102c2SJeff Cody# GNU General Public License for more details. 1677c102c2SJeff Cody# 1777c102c2SJeff Cody# You should have received a copy of the GNU General Public License 1877c102c2SJeff Cody# along with this program. If not, see <http://www.gnu.org/licenses/>. 1977c102c2SJeff Cody# 2077c102c2SJeff Cody 2177c102c2SJeff Cody# creator 2277c102c2SJeff Codyowner=jcody@redhat.com 2377c102c2SJeff Cody 2477c102c2SJeff Codyseq=`basename $0` 2577c102c2SJeff Codyecho "QA output created by $seq" 2677c102c2SJeff Cody 2777c102c2SJeff Codystatus=1 # failure is the default! 2877c102c2SJeff Cody 2977c102c2SJeff Cody_cleanup() 3077c102c2SJeff Cody{ 3177c102c2SJeff Cody _cleanup_test_img 3277c102c2SJeff Cody} 3377c102c2SJeff Codytrap "_cleanup; exit \$status" 0 1 2 3 15 3477c102c2SJeff Cody 3577c102c2SJeff Cody# get standard environment, filters and checks 3677c102c2SJeff Cody. ./common.rc 3777c102c2SJeff Cody. ./common.filter 3877c102c2SJeff Cody 3977c102c2SJeff Cody_supported_fmt vpc 4077c102c2SJeff Cody_supported_proto generic 4177c102c2SJeff Cody_supported_os Linux 4277c102c2SJeff Cody 4377c102c2SJeff Cody_use_sample_img afl5.img.bz2 4477c102c2SJeff Cody 4577c102c2SJeff Codyecho 4677c102c2SJeff Codyecho "=== Verify image open and failure ====" 4777c102c2SJeff Cody$QEMU_IMG info "$TEST_IMG" 2>&1| _filter_testdir 4877c102c2SJeff Cody 4977c102c2SJeff Cody# success, all done 5077c102c2SJeff Codyecho "*** done" 5177c102c2SJeff Codyrm -f $seq.full 5277c102c2SJeff Codystatus=0 53