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