]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Move example XML files into examples/xml
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 16 Sep 2009 18:02:59 +0000 (19:02 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 21 Sep 2009 13:41:48 +0000 (14:41 +0100)
* docs/storage/: Move to examples/xml/storage/
* docs/test*.xml: Move to examples/xml/test/
* docs/Makefile.am: Remove example XML files from dist
* Makefile.am: Add examples/xml to EXTRA_DIST
* tests/virshtest.c: Update for moved test XML
* libvirt.spec.in: Include example XML files as docs
* tests/int-overflow: UPdate for moved XML

23 files changed:
Makefile.am
docs/Makefile.am
examples/xml/storage/pool-dir.xml [moved from docs/storage/pool-dir.xml with 100% similarity]
examples/xml/storage/pool-fs.xml [moved from docs/storage/pool-fs.xml with 100% similarity]
examples/xml/storage/pool-logical.xml [moved from docs/storage/pool-logical.xml with 100% similarity]
examples/xml/storage/pool-netfs.xml [moved from docs/storage/pool-netfs.xml with 100% similarity]
examples/xml/storage/vol-cow.xml [moved from docs/storage/vol-cow.xml with 100% similarity]
examples/xml/storage/vol-qcow.xml [moved from docs/storage/vol-qcow.xml with 100% similarity]
examples/xml/storage/vol-qcow2.xml [moved from docs/storage/vol-qcow2.xml with 100% similarity]
examples/xml/storage/vol-raw.xml [moved from docs/storage/vol-raw.xml with 100% similarity]
examples/xml/storage/vol-sparse.xml [moved from docs/storage/vol-sparse.xml with 100% similarity]
examples/xml/storage/vol-vmdk.xml [moved from docs/storage/vol-vmdk.xml with 100% similarity]
examples/xml/test/testdomfc4.xml [moved from docs/testdomfc4.xml with 100% similarity]
examples/xml/test/testdomfv0.xml [moved from docs/testdomfv0.xml with 100% similarity]
examples/xml/test/testnetdef.xml [moved from docs/testnetdef.xml with 100% similarity]
examples/xml/test/testnetpriv.xml [moved from docs/testnetpriv.xml with 100% similarity]
examples/xml/test/testnode.xml [moved from docs/testnode.xml with 100% similarity]
examples/xml/test/testnodeinline.xml [moved from docs/testnodeinline.xml with 100% similarity]
examples/xml/test/testpool.xml [moved from docs/testpool.xml with 100% similarity]
examples/xml/test/testvol.xml [moved from docs/testvol.xml with 100% similarity]
libvirt.spec.in
tests/int-overflow
tests/virshtest.c

index 3b01d1f1311a64713f39db78581d811040d7e696..a0c9469a702e98fa189a99b46b46ae99a2cb8d94 100644 (file)
@@ -9,6 +9,8 @@ SUBDIRS = gnulib/lib include src daemon tools proxy docs gnulib/tests \
 
 ACLOCAL_AMFLAGS = -I m4 -I gnulib/m4
 
+XML_EXAMPLES = $(wildcard examples/xml/test/*.xml) $(wildcard examples/xml/storage/*.xml)
+
 EXTRA_DIST = \
   ChangeLog-old \
   libvirt.spec libvirt.spec.in \
@@ -22,7 +24,8 @@ EXTRA_DIST = \
   .x-sc_require_config_h \
   .x-sc_prohibit_nonreentrant \
   Makefile.nonreentrant \
-  autogen.sh
+  autogen.sh \
+  $(XML_EXAMPLES)
 
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = libvirt.pc
index e02369db580429ddebab3712b2232f615b39d672..354e14e0d3c6f094e837075d141644b0dbd6f4f8 100644 (file)
@@ -41,14 +41,7 @@ patches = $(wildcard api_extension/*.patch)
 
 xml = \
   libvirt-api.xml \
-  libvirt-refs.xml \
-  testdomfc4.xml \
-  testdomfv0.xml \
-  testnetdef.xml \
-  testnetpriv.xml \
-  testnode.xml \
-  testpool.xml \
-  testvol.xml
+  libvirt-refs.xml
 
 fig = \
   libvirt-net-logical.fig \
index cb2b27432aca54e62d4d80b21b1219245d7e99e8..de4d094fa5e9fd6e9edef8f8c73f24efd7311c0e 100644 (file)
@@ -746,6 +746,7 @@ fi
 %doc examples/domain-events/events-c
 %doc examples/dominfo
 %doc examples/domsuspend
+%doc examples/xml
 
 %if %{with_python}
 %files python
index 63bb71a0f572588e3c8485ccb452db478d5aa1ff..ac3119b475308967d8ee608695f20f37d8c68a53 100755 (executable)
@@ -15,7 +15,7 @@ cd "$t_" || fail=1
 
 echo "error: failed to get domain '4294967298'" > exp || fail=1
 echo domname 4294967298 | $abs_top_builddir/tools/virsh --quiet \
-    --connect test://$abs_top_srcdir/docs/testnode.xml \
+    --connect test://$abs_top_srcdir/examples/xml/test/testnode.xml \
     > /dev/null 2> err || fail=1
 diff -u err exp || fail=1
 
index 264b800b61712a1693ecf57934a1312564ee27a9..ef760e2e12f8dd09f6186f365552d54368f4a08f 100644 (file)
@@ -234,7 +234,7 @@ mymain(int argc, char **argv)
     exit (77); /* means 'test skipped' for automake */
 #endif
 
-    snprintf(buffer, PATH_MAX-1, "test://%s/../docs/testnode.xml", abs_srcdir);
+    snprintf(buffer, PATH_MAX-1, "test://%s/../examples/xml/test/testnode.xml", abs_srcdir);
     buffer[PATH_MAX-1] = '\0';
     progname = argv[0];
     custom_uri = buffer;