1. 23 9月, 2009 2 次提交
    • M
      ESX add tests for the VMX to/from domain XML mapping · af4c893e
      Matthias Bolte 提交于
      * tests/.gitignore: ignore new test binaries
      * tests/Makefile.am: add new tests
      * tests/esxutilstest.c: test esxVMX_IndexToDiskName()
      * tests/vmx2xmldata/*: config files for the VMX to domain XML test
      * tests/vmx2xmltest.c: test the VMX to domain XML mapping
      * tests/xml2vmxdata/*: config files for the domain XML to VMX test
      * tests/xml2vmxtest.c: test the domain XML to VMX mapping
      af4c893e
    • P
      network: add 'bootp' and 'tftp' config · 738ee810
      Paolo Bonzini 提交于
      Currently, libvirtd will start a dnsmasq process for the virtual
      network, but (aside from killing the dnsmasq process and replacing it),
      there's no way to define tftp boot options.
      
      This change introduces the appropriate tags to the dhcp configuration:
      
       <network>
         <name>default</name>
         <bridge name="virbr%d" />
         <forward/>
         <ip address="192.168.122.1" netmask="255.255.255.0">
           <tftp root="/var/lib/tftproot" />
           <dhcp>
             <range start="192.168.122.2" end="192.168.122.254" />
             <bootp file="pxeboot.img"/>
           </dhcp>
         </ip>
       </network>
      
      When the attributes are present, these are passed to the
      arguments to dnsmasq:
      
       dnsmasq [...] --enable-tftp --tftp-root /srv/tftp --dhcp-boot pxeboot.img
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^
                            from <tftp />                     from <bootp />
      
      At present, only local tftp servers are supported (ie, dnsmasq runs as
      the tftp server), but we could improve this in future by adding a
      server= attribute.
      Signed-off-by: NJeremy Kerr <jk@ozlabs.org>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      
      2009-09-21  Paolo Bonzini  <pbonzini@redhat.com>
                  Jeremy Kerr  <jk@ozlabs.org>
      
      	* docs/formatnetwork.html.in: Document new tags.
      	* docs/formatnetwork.html: Regenerate.
      	* docs/schemas/network.rng: Update.
      	* src/network_conf.c (virNetworkDefFree): Free new fields.
      	(virNetworkDHCPRangeDefParseXML): Parse <bootp>.
      	(virNetworkIPParseXML): New, parsing <dhcp> and <tftp>.
      	(virNetworkDefParseXML): Use virNetworkIPParseXML instead of
      	virNetworkDHCPRangeDefParseXML.
      	(virNetworkDefFormat): Pretty print new fields.
      	* src/network_conf.h (struct _virNetworkDef): Add netboot fields.
      	* src/network_driver.c (networkBuildDnsmasqArgv): Add
      	TFTP and BOOTP arguments.
      
      	* tests/Makefile.am (EXTRA_DIST): Add networkschemadata.
      	* tests/networkschematest: Look in networkschemadata.
      	* tests/networkschemadata/netboot-network.xml: New.
      738ee810
  2. 21 9月, 2009 4 次提交
    • D
      Fix missing data file in qemuhelpdata · b553b50a
      Daniel P. Berrange 提交于
      * tests/Makefile.am: Add missing data file to extra dist
      b553b50a
    • D
      Move all shared utility files to src/util/ · 1355e055
      Daniel P. Berrange 提交于
      * src/bridge.c, src/bridge.h, src/buf.c, src/buf.h, src/cgroup.c,
        src/cgroup.h, src/conf.c, src/conf.h, src/event.c, src/event.h,
        src/hash.c, src/hash.h, src/hostusb.c, src/hostusb.h,
        src/iptables.c, src/iptables.h, src/logging.c, src/logging.h,
        src/memory.c, src/memory.h, src/pci.c, src/pci.h, src/qparams.c,
        src/qparams.h, src/stats_linux.c, src/stats_linux.h,
        src/threads-pthread.c, src/threads-pthread.h, src/threads-win32.c,
        src/threads-win32.h, src/threads.c, src/threads.h, src/util.c,
        src/util.h, src/uuid.c, src/uuid.h, src/virterror.c,
        src/virterror_internal.h, src/xml.c, src/xml.h: Move all files
        into src/util/
      * daemon/Makefile.am: Add -Isrc/util/ to build flags
      * src/Makefile.am: Add -Isrc/util/ to build flags and update for
        moved files
      * src/libvirt_private.syms: Export cgroup APIs since they're now
        in util rather than linking directly to drivers
      * src/xen/xs_internal.c: Disable bogus virEventRemoveHandle call
        when built under PROXY
      * proxy/Makefile.am: Update for changed file locations. Remove
        bogus build of event.c
      * tools/Makefile.am, tests/Makefile.am: Add -Isrc/util/ to build flags
      1355e055
    • D
      Move all XML configuration handling to src/conf/ · e0a48c99
      Daniel P. Berrange 提交于
      * src/capabilities.c, src/capabilities.h, src/domain_conf.c,
        src/domain_conf.h, src/domain_event.c, src/domain_event.h,
        src/interface_conf.c, src/interface_conf.h,
        src/network_conf.c, src/network_conf.h, src/node_device_conf.c,
        src/node_device_conf.h, src/secret_conf.c, src/secret_conf.h,
        src/storage_conf.c, src/storage_conf.h, src/storage_encryption_conf.c,
        src/storage_encryption_conf.h: Move to src/conf/
      * src/Makefile.am: Add -Isrc/conf to the individual build targets
        which need to use XML config APIs. Remove LIBXML_CFLAGS, LIBSSH2_CFLAGS
        and SELINUX_CFLAGS from global INCLUDES and only have them in build
        targets which actually need them.  Create a libvirt_conf.la
        convenience library for all config parsers
      * src/hostusb.h: Remove bogus include of domain_conf.h
      * tests/Makefile.am: Add -Isrc/conf. Remove bogus -I$builddir/src
        since it never has any generated header files
      * daemon/Makefile.am: Add -Isrc/conf
      * proxy/Makefile.am: Add -Isrc/conf and cope with renamed files
      * src/hash.c: Remove bogus include of libxml/threads.h
      e0a48c99
    • D
      Rename qemud/ directory to daemon/ · 5c2a1ae8
      Daniel P. Berrange 提交于
      * qemud/: Rename to daemon/
      * Makefile.am, configure.in, src/Makefile.am, src/remote_internal.c,
        tests/Makefile.am, tests/eventtest.c: s/qemud/daemon/ where needed
      5c2a1ae8
  3. 22 7月, 2009 1 次提交
  4. 16 7月, 2009 1 次提交
    • D
      netcf XML validation and input and output tests · 788c3151
      Daniel Veillard 提交于
      * tests/interfaceschematest: test all XML data against the interface
        schemas
      * tests/interfacexml2xmltest.c: parse and reserialize all XML data
        and check the output is identical
      * tests/Makefile.am: hook up the tests
      * tests/.gitignore: add ignore test
      788c3151
  5. 08 7月, 2009 1 次提交
    • J
      fix another failing "make distcheck" (qemuhelptest) · aef97468
      Jim Meyering 提交于
      It failed in a non-srcdir build because those 5 sample output
      files were not included in the distribution tarball.  Include them.
      * tests/Makefile.am (qemuhelpdata, EXTRA_DIST): Include these:
      kvm-74, kvm-86, qemu-0.10.5, qemu-0.9.1, qemu-kvm-0.10.5.
      aef97468
  6. 11 6月, 2009 1 次提交
  7. 27 5月, 2009 1 次提交
  8. 21 5月, 2009 1 次提交
  9. 19 5月, 2009 1 次提交
  10. 13 5月, 2009 1 次提交
  11. 03 4月, 2009 1 次提交
  12. 04 3月, 2009 2 次提交
  13. 03 3月, 2009 3 次提交
  14. 24 2月, 2009 1 次提交
    • M
      Add nodedevxml2xml test · da61daa2
      Mark McLoughlin 提交于
      Add a test to check node device XML parsing by first parsing
      the XML, then re-formatting as XML and finally comparing the
      resulting XML to the original XML.
      da61daa2
  15. 17 2月, 2009 1 次提交
  16. 27 1月, 2009 1 次提交
  17. 23 1月, 2009 1 次提交
  18. 17 1月, 2009 2 次提交
  19. 09 1月, 2009 1 次提交
  20. 23 12月, 2008 1 次提交
    • D
      fix make check with the new logging support · b4962134
      Daniel Veillard 提交于
      * qemud/qemud.c qemud/test_libvirtd_qemu.aug tests/Makefile.am
        tests/daemon-conf: fix make check with the new logging support
        the messages now carry a timestamp which need to be removed,
        the daemon needs to exit if the log configuration informations
        are wrong and we also look at the LIBVIRT_DEBUG environment
        variable
      Daniel
      b4962134
  21. 21 12月, 2008 1 次提交
  22. 12 12月, 2008 1 次提交
    • J
      remove unused xmlrpc-related files · 506629e6
      Jim Meyering 提交于
      * src/xmlrpc.h: Remove file.
      * src/xmlrpc.c: Likewise.
      * tests/test_xmlrpc.sh: Likewise.
      * tests/xmlrpctest.c: Likewise.
      * tests/xmlrpcserver.py: Likewise.
      * tests/Makefile.am (EXTRA_DIST): Remove xmlserver.py.
      (noinst_PROGRAMS): Remove xmlrpctest, along with associated variables.
      * po/POTFILES.in: Remove src/xmlrpc.c.
      * tests/.cvsignore: Remove xmlrpctest.
      506629e6
  23. 10 12月, 2008 1 次提交
    • J
      fix just-broken "virsh start" and "virsh pool-start" commands · 3693a02f
      Jim Meyering 提交于
      * src/virsh.c (cmdPoolStart, cmdStart): Change hard-coded
      vshCommandOptDomainBy string argument to match just-changed
      option name.  Cole Robinson reported that "virsh start" was
      broken and provided that part of the fix.
      Bug introduced by yesterday's "virsh.c: tweak options to produce
      more accurate help".
      * tests/start: New file.  Test for the above fix.
      * tests/Makefile.am (test_scripts): Add start.
      3693a02f
  24. 25 11月, 2008 2 次提交
  25. 24 11月, 2008 3 次提交
    • J
      tests: new test: virsh-synopsis · 62bcd5d3
      Jim Meyering 提交于
      * tests/virsh-synopsis: new file
      * tests/Makefile.am (test_scripts): Add virsh-synopsis.
      * src/virsh.c: Correct help SYNOPSIS for each of seven commands.
      
      When I first ran this script, "make check" failed like this:
        ...
        invalid help SYNOPSIS for net-create:
            create a network from an XML <file>
        invalid help SYNOPSIS for net-define:
            define a network from an XML <file>
        invalid help SYNOPSIS for net-start:
            start <network>
        invalid help SYNOPSIS for pool-create:
            create a pool from an XML <file>
        invalid help SYNOPSIS for pool-define:
            define a pool from an XML <file>
        invalid help SYNOPSIS for pool-start:
            start <pool>
        invalid help SYNOPSIS for vol-create:
            create <file>
        FAIL: virsh-synopsis
      62bcd5d3
    • J
      tests: virsh-all: new script · 8275cc5e
      Jim Meyering 提交于
      * tests/virsh-all: New script.
      * tests/Makefile.am (test_scripts): Add virsh-all.
      8275cc5e
    • J
      Move the expected output data from virshdata/*.txt into virshtest.c. · 5b5393f2
      Jim Meyering 提交于
      * tests/virshtest.c: Embed literal, expected output here, rather than
      using virshdata/*.txt file names.
      Factor out some common constructs.
      (testCompareOutputLit): New function.
      (testCompareOutput): #ifdef-out, not that it's unused.
      * tests/Makefile.am (SUBDIRS): Remove virshdata/ and all files in it.
      * docs/testnode.xml: Fix typo in a comment.
      * configure.in (AC_OUTPUT): Remove tests/virshdata/Makefile.
      5b5393f2
  26. 21 11月, 2008 1 次提交
  27. 18 11月, 2008 1 次提交
  28. 17 11月, 2008 1 次提交
  29. 05 11月, 2008 1 次提交