a0c9fc534412c1b859c13f599d65ac058145d518
[libguestfs.git] / tools / test-virt-ls.sh
1 #!/bin/bash -
2
3 export LANG=C
4 set -e
5
6 # Just a random UUID.
7 uuid=868b1447-0ec5-41bf-a2e5-6a77a4c9b66f
8
9 # Read out the test directory using virt-ls.
10 if [ "$(./virt-ls ../images/fedora.img /bin)" != "ls
11 test1
12 test2
13 test3
14 test4
15 test5
16 test6
17 test7" ]; then
18     echo "$0: error: unexpected output from virt-ls"
19     exit 1
20 fi