mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
Move example XML files into examples/xml
* 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
This commit is contained in:
parent
bde4589189
commit
13f59ad733
@ -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
|
||||
|
@ -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 \
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user