summaryrefslogtreecommitdiffstats
path: root/tools/test-virt-tar.sh
blob: dec4f4820c3af0219c64058708b9a56c60a5df0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash -

export LANG=C
set -e

# Read out the test directory using virt-tar.
./virt-tar -x ../images/fedora.img /bin test.tar

if [ "$(tar tf test.tar | sort)" != "./
./ls
./test1
./test2
./test3
./test4
./test5
./test6
./test7" ]; then
    echo "$0: error: unexpected output in tarball from virt-tar"
    exit 1
fi

rm test.tar