X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=tools%2Ftest-virt-ls.sh;fp=tools%2Ftest-virt-ls.sh;h=d55b764d1fe2f59093ca296a10812fb71a80934e;hp=0000000000000000000000000000000000000000;hb=fc5fbd460aa0aaf6bb65ca5fa1be59345f4f079f;hpb=bbe4888cd4aac8f67c6d34e67d8f622c0c4bfcb4 diff --git a/tools/test-virt-ls.sh b/tools/test-virt-ls.sh new file mode 100755 index 0000000..d55b764 --- /dev/null +++ b/tools/test-virt-ls.sh @@ -0,0 +1,19 @@ +#!/bin/bash - + +export LANG=C +set -e + +# Just a random UUID. +uuid=868b1447-0ec5-41bf-a2e5-6a77a4c9b66f + +# Read out the test directory using virt-ls. +if [ "$(./virt-ls test.img /bin)" != "test1 +test2 +test3 +test4 +test5 +test6 +test7" ]; then + echo "$0: error: unexpected output from virt-ls" + exit 1 +fi