ls: Rewrite virt-ls in C.
[libguestfs.git] / cat / test-virt-ls.sh
1 #!/bin/bash -
2
3 export LANG=C
4 set -e
5
6 # Read out the test directory using virt-ls.
7 if [ "$(./virt-ls ../images/fedora.img /bin)" != "ls
8 test1
9 test2
10 test3
11 test4
12 test5
13 test6
14 test7" ]; then
15     echo "$0: error: unexpected output from virt-ls"
16     exit 1
17 fi