X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=cat%2Ftest-virt-ls.sh;h=3f702b7cbf7929c6fc960b23b874f9849fd78a25;hp=784fd67ad83761e79983d650fd7cdc82a3fff60c;hb=ca8c2b599663563976d83766182ab8cf0722c755;hpb=f6d3d5677194ae7aaea70d43845341d91907b5ee diff --git a/cat/test-virt-ls.sh b/cat/test-virt-ls.sh index 784fd67..3f702b7 100755 --- a/cat/test-virt-ls.sh +++ b/cat/test-virt-ls.sh @@ -15,3 +15,19 @@ test7" ]; then echo "$0: error: unexpected output from virt-ls" exit 1 fi + +# Try the -lR option. +output="$(./virt-ls -lR ../images/fedora.img /boot | awk '{print $1 $2 $4}')" +expected="d0755/boot +d0755/boot/grub +-0644/boot/grub/grub.conf +d0700/boot/lost+found" +if [ "$output" != "$expected" ]; then + echo "$0: error: unexpected output from virt-ls -lR" + echo "output: ------------------------------------------" + echo "$output" + echo "expected: ----------------------------------------" + echo "$expected" + echo "--------------------------------------------------" + exit 1 +fi