Generate a dummy 'Fedora' fedora.img in images directory for use by tests.
[libguestfs.git] / tools / test-virt-tar.sh
1 #!/bin/bash -
2
3 export LANG=C
4 set -e
5
6 # Read out the test directory using virt-tar.
7 ./virt-tar -x ../images/fedora.img /bin test.tar
8
9 if [ "$(tar tf test.tar)" != "./
10 ./test1
11 ./test2
12 ./test3
13 ./test4
14 ./test5
15 ./test6
16 ./test7" ]; then
17     echo "$0: error: unexpected output in tarball from virt-tar"
18     exit 1
19 fi
20
21 rm test.tar