#!/bin/bash -export LANG=C
set -e# Read out the test files from the image using virt-cat.if["$(./virt-cat test.img /etc/test1)"!="abcdefg"];thenecho"$0: error: mismatch in file test1"exit1fiif["$(./virt-cat test.img /etc/test2)"!=""];thenecho"$0: error: mismatch in file test2"exit1fi