summaryrefslogtreecommitdiffstats
path: root/tools/test-virt-cat.sh
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2010-11-11 16:20:25 +0000
committerRichard W.M. Jones <rjones@redhat.com>2010-11-11 16:56:11 +0000
commit4d900cdac8258daa2e99c6ceb2a4985154e94150 (patch)
tree3405a12423aaadc9f31fbd0d467ebf0ba92d32ca /tools/test-virt-cat.sh
parent4d59e271046f2b5f0d9b1730cd23425fd631c76c (diff)
downloadlibguestfs-4d900cdac8258daa2e99c6ceb2a4985154e94150.tar.gz
libguestfs-4d900cdac8258daa2e99c6ceb2a4985154e94150.tar.xz
libguestfs-4d900cdac8258daa2e99c6ceb2a4985154e94150.zip
Generate a dummy 'Fedora' fedora.img in images directory for use by tests.
We were generating this dummy 'Fedora' image already in the tools directory. It contains just enough Fedora-like files to fool our inspection code and thus to test the tools. This is general enough that we can use it everywhere.
Diffstat (limited to 'tools/test-virt-cat.sh')
-rwxr-xr-xtools/test-virt-cat.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/test-virt-cat.sh b/tools/test-virt-cat.sh
index d87c4b8c..19b8d875 100755
--- a/tools/test-virt-cat.sh
+++ b/tools/test-virt-cat.sh
@@ -4,11 +4,11 @@ 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
+if [ "$(./virt-cat ../images/fedora.img /etc/test1)" != "abcdefg" ]; then
echo "$0: error: mismatch in file test1"
exit 1
fi
-if [ "$(./virt-cat test.img /etc/test2)" != "" ]; then
+if [ "$(./virt-cat ../images/fedora.img /etc/test2)" != "" ]; then
echo "$0: error: mismatch in file test2"
exit 1
fi