summaryrefslogtreecommitdiffstats
path: root/tools/test-virt-cat.sh
blob: d87c4b8cabc6fbd2a99561d3c2559951365961c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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" ]; then
    echo "$0: error: mismatch in file test1"
    exit 1
fi
if [ "$(./virt-cat test.img /etc/test2)" != "" ]; then
    echo "$0: error: mismatch in file test2"
    exit 1
fi