2 # Get coverage of virsh pool-define-as XML formatting
4 test -z "$srcdir" && srcdir=$(pwd)
5 test -z "$abs_top_srcdir" && abs_top_srcdir=$(pwd)/..
6 test -z "$abs_top_builddir" && abs_top_builddir=$(pwd)/..
8 if test "$VERBOSE" = yes; then
10 $abs_top_builddir/tools/virsh --version
13 . "$srcdir/test-lib.sh"
19 $abs_top_builddir/tools/virsh --connect test:///default \
20 pool-define-as --print-xml \
21 P dir src-host /src/path /src/dev S /target-path \
24 cat <<EOF > pool-list-exp
28 <host name='src-host'/>
29 <dir path='/src/path'/>
30 <device path='/src/dev'/>
34 <path>/target-path</path>
40 compare pool-list-exp out || fail=1