summaryrefslogtreecommitdiffstats
path: root/tools/test-virt-ls.sh
blob: d55b764d1fe2f59093ca296a10812fb71a80934e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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