diff options
author | Richard Jones <rjones@redhat.com> | 2010-03-30 14:18:44 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2010-03-30 14:20:23 +0100 |
commit | fc5fbd460aa0aaf6bb65ca5fa1be59345f4f079f (patch) | |
tree | 7e970a3822ca6c62abc624675462f4c8de2cafaf /tools/test-virt-tar.sh | |
parent | bbe4888cd4aac8f67c6d34e67d8f622c0c4bfcb4 (diff) | |
download | libguestfs-fc5fbd460aa0aaf6bb65ca5fa1be59345f4f079f.tar.gz libguestfs-fc5fbd460aa0aaf6bb65ca5fa1be59345f4f079f.tar.xz libguestfs-fc5fbd460aa0aaf6bb65ca5fa1be59345f4f079f.zip |
tools: Add basic tests for the virt-* tools.
Diffstat (limited to 'tools/test-virt-tar.sh')
-rwxr-xr-x | tools/test-virt-tar.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/test-virt-tar.sh b/tools/test-virt-tar.sh new file mode 100755 index 00000000..4ee87cbd --- /dev/null +++ b/tools/test-virt-tar.sh @@ -0,0 +1,21 @@ +#!/bin/bash - + +export LANG=C +set -e + +# Read out the test directory using virt-tar. +./virt-tar -x test.img /bin test.tar + +if [ "$(tar tf test.tar)" != "./ +./test1 +./test2 +./test3 +./test4 +./test5 +./test6 +./test7" ]; then + echo "$0: error: unexpected output in tarball from virt-tar" + exit 1 +fi + +rm test.tar |