1. 12 12月, 2007 1 次提交
    • J
      Test libvirtd's config-processing code. · 5a190594
      Jim Meyering 提交于
      And remove a minor diagnostic inconsistency.
      * tests/daemon-conf: New test.
      * tests/Makefile.am (TESTS_ENVIRONMENT): Prepend qemud/ to PATH,
      so we can invoke libvirtd without an absolute name.
      (test_scripts): Add daemon-conf.
      * qemud/qemud.c (remoteConfigGetAuth): Use checkType,
      rather than open-coding it with a different diagnostic.
      5a190594
  2. 07 12月, 2007 2 次提交
  3. 06 12月, 2007 3 次提交
    • J
      Include "config.h". · 87396257
      Jim Meyering 提交于
      * qemud/event.c: Likewise.
      * src/buf.c: Likewise.
      * src/hash.c: Likewise.
      * src/nodeinfo.c: Likewise.
      * src/openvz_conf.c: Likewise.
      * src/proxy_internal.c: Likewise.
      * src/virterror.c: Likewise.
      * src/xmlrpc.c: Likewise.
      * src/xs_internal.c: Likewise.
      * tests/conftest.c: Likewise.
      * tests/xmlrpctest.c: Likewise.
      This fixes a mingw build failure reported by Rich Jones.
      
      Author: Jim Meyering <meyering@redhat.com>
      87396257
    • J
      Use gnulib, starting with its physmem and getaddrinfo modules. · 261e7581
      Jim Meyering 提交于
      New files go into these directories:
        gnulib/lib
        gnulib/m4
        gnulib/tests
      
      * bootstrap: A wrapper around gnulib-tool.
      * configure.in: Invoke gl_EARLY and gl_INIT, being careful to put gl_EARLY
      before any macro that uses AC_COMPILE_IFELSE.
      (AC_OUTPUT): Add lib/Makefile and gl-tests/Makefile.  Remove m4/Makefile.
      * Makefile.am (SUBDIRS): Add gnulib/lib and remove m4.  Add gnulib/tests
      early enough that those tests run before any libvirt unit tests.
      * m4/Makefile.am: Remove file.  Not needed.
      * src/Makefile.am (INCLUDES): Add -I$(top_srcdir)/gnulib/lib -I../gnulib/lib.
      (LDADDS, libvirt_la_LIBADD): Add ../gnulib/lib/libgnu.la.
      * src/nodeinfo.c: Include "physmem.h".
      * qemud/qemud.c, src/remote_internal.c: Include "getaddrinfo.h".
      (MEMINFO_PATH, linuxNodeInfoMemPopulate): Remove definitions.
      (virNodeInfoPopulate): Use physmem_total, not linuxNodeInfoMemPopulate.
      * tests/Makefile.am (INCLUDES): Add -I$(top_srcdir)/gnulib/lib -I../gnulib/lib.
      (LDADDS): Add ../gnulib/lib/libgnu.la.
      * qemud/Makefile.am (libvirtd_LDADD): Add ../gnulib/lib/libgnu.la.
      * tests/nodeinfotest.c (linuxTestCompareFiles): No longer read total
      memory from a file.
      Update expected output not to include "Memory: NNNN"
      * tests/nodeinfodata/linux-nodeinfo-1.txt:
      * tests/nodeinfodata/linux-nodeinfo-2.txt:
      * tests/nodeinfodata/linux-nodeinfo-3.txt:
      * tests/nodeinfodata/linux-nodeinfo-4.txt:
      * tests/nodeinfodata/linux-nodeinfo-5.txt:
      * tests/nodeinfodata/linux-nodeinfo-6.txt:
      * src/test.c [WITH_TEST]: Remove definition of _GNU_SOURCE that
      would conflict with the one now in "config.h".
      * autogen.sh: Add -I gnulib/m4.
      * src/conf.c, src/sexpr.c: Don't define _GNU_SOURCE.
      Instead, include "config.h".
      * qemud/qemud.c: Remove definition of _GNU_SOURCE.
      * src/openvz_driver.c: Likewise.
      * src/qemu_driver.c: Likewise.
      * src/remote_internal.c: Likewise.
      
      * configure.in: Use AC_CONFIG_AUX_DIR(build-aux), so that a bunch
      of gettextize-generated files go into build-aux/, rather than in
      the top-level directory.
      * .cvsignore: Adjust.
      * build-aux/.cvsignore: New file.
      
      
      Author: Jim Meyering <meyering@redhat.com>
      261e7581
    • R
      Wed Dec 5 18:00:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com> · ffdbb903
      Richard W.M. Jones 提交于
              * src/Makefile.am, tests/Makefile.am: Remove LIBOBJS/LTLIBOBJS
                which were incorrectly committed earlier.
      ffdbb903
  4. 05 12月, 2007 2 次提交
    • D
    • R
      Wed Dec 5 13:48:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com> · 4bfdb77a
      Richard W.M. Jones 提交于
              * python/libvir.c, python/libvirt_wrap.h, qemud/qemud.c,
              qemud/remote.c, src/internal.h, src/openvz_conf.c,
              src/openvz_driver.c, src/proxy_internal.h, src/qemu_conf.c,
              src/qemu_driver.c, src/remote_internal.h, src/test.h, src/util.c,
              src/xen_unified.c, src/xen_unified.h, tests/nodeinfotest.c,
              tests/qemuxml2argvtest.c, tests/qemuxml2xmltest.c, tests/reconnect.c,
              tests/sexpr2xmltest.c, tests/virshtest.c, tests/xencapstest.c,
              tests/xmconfigtest.c, tests/xml2sexprtest.c:
              Change #include <> to #include "" for local includes.
              Removed many includes from src/internal.h and put them in
              the C files which actually use them.
              Removed <ansidecl.h> - unused.
              Added a comment around __func__.
              Removed a clashing redefinition of VERSION symbol.
              All limits (PATH_MAX etc) now done in src/internal.h, so we
              don't need to include those headers in other files.
      4bfdb77a
  5. 01 12月, 2007 1 次提交
  6. 26 11月, 2007 1 次提交
  7. 20 11月, 2007 1 次提交
    • D
      * tests/sexpr2xmltest.c tests/xml2sexprtest.c: warn before exiting · ef4006b3
      Daniel Veillard 提交于
        if the path environment variable is missing, add the tests for
        <shareable/> from/to w! ode for disk
      * tests/sexpr2xmldata/sexpr2xml-disk-block-shareable.sexpr
        tests/sexpr2xmldata/sexpr2xml-disk-block-shareable.xml
        tests/xml2sexprdata/xml2sexpr-disk-block-shareable.sexpr
        tests/xml2sexprdata/xml2sexpr-disk-block-shareable.xml:
        the new tests data
      Daniel
      ef4006b3
  8. 18 11月, 2007 1 次提交
  9. 17 11月, 2007 1 次提交
  10. 15 11月, 2007 1 次提交
    • J
      Make "make distcheck" work. · d5117af3
      Jim Meyering 提交于
      * Makefile.am: Expand some "*" wildcards, and (for now) disable
        the relatively unimportant, distuninstallcheck target.
        Fix a few redirect-directly-to-target bugs.
        Add a few $(srcdir)/ prefixes and add an uninstall-local rule.
      * docs/Makefile.am: More of the same.  Split some long lines.
      * python/Makefile.am: Likewise.
      * python/tests/Makefile.am: Likewise.
      * qemud/Makefile.am: Likewise.
      * tests/Makefile.am: Remove the directories already listed in SUBDIRS.
      * docs/examples/index.py: Adapt to produce the desired changes in
        docs/examples/Makefile.am. Also, sort *.c, so results are reproducible,
        and emit a comment telling emacs and vi that the file is read-only.
      * docs/examples/Makefile.am: Regenerate.
      
      
      Author: Jim Meyering <meyering@redhat.com>
      d5117af3
  11. 14 11月, 2007 1 次提交
    • J
      Arrange for tests to pass in a non-srcdir build. · 5a6571eb
      Jim Meyering 提交于
      * tests/Makefile.am: Include the contents of the *data directories
      in the make-dist-built tarball by adding each of that *data
      directories to EXTRA_DIST.
      Also add int-overflow (via $(test_scripts)) to EXTRA_DIST.
      * tests/nodeinfotest.c: Prepend "$abs_top_srcdir/tests" to
      each input file name.
      * tests/qemuxml2argvtest.c: Likewise.
      * tests/qemuxml2xmltest.c: Likewise.
      * tests/sexpr2xmltest.c: Likewise.
      * tests/test_conf.sh: Likewise.
      * tests/virshtest.c: Likewise.
      * tests/xencapstest.c: Likewise.
      * tests/xmconfigtest.c: Likewise.
      * tests/xml2sexprtest.c: Likewise.
      
      
      Author: Jim Meyering <meyering@redhat.com>
      5a6571eb
  12. 13 11月, 2007 1 次提交
  13. 12 11月, 2007 2 次提交
    • D
      Oops, forgot, Daniel · 92c8d7dd
      Daniel Veillard 提交于
      92c8d7dd
    • D
      Begin fixing uses of strtol: parse integers more carefully. · a500a479
      Daniel Veillard 提交于
      Patch from Jim Meyering
      * src/internal.h: Include <errno.h>.
        Define new static inline function, xstrtol_i.
      * src/virsh.c: Detect integer overflow in domain ID number
        in vshCommandOptDomainBy. Detect overflow and invalid port
        number suffix in cmdVNCDisplay.
      * src/xend_internal.c: Parse CPU number more carefully in
        xenDaemonDomainGetVcpus.
      * tests/int-overflow: New script. Test for the above-fixed bug.
      * tests/Makefile.am: Add int-overflow to TESTS. Define
        TESTS_ENVIRONMENT, to propagate $abs_top_* variables into the
        int-overflow script. Adapt the "valgrind" rule not to clobber
        new TESTS_ENVIRONMENT.
      Daniel
      a500a479
  14. 19 10月, 2007 1 次提交
    • D
      * src/conf.c: documentation cleanups from Jim Meyering · 69b9fcf2
      Daniel Veillard 提交于
      * tests/conftest.c: Use fwrite, not printf, since the
        result buffer is not NUL-terminatedi, from Jim Meyering.
      * tests/qemuxml2argvtest.c: Initialize vm.migrateFrom[0],
        to avoid "read-uninitialized" error from within
        qemudBuildCommandLinei, from Jim Meyering.
      Daniel
      69b9fcf2
  15. 30 9月, 2007 2 次提交
    • D
      Only use bootloader for paravirt guests · c4461ff5
      Daniel P. Berrange 提交于
      c4461ff5
    • D
      * include/libvirt/libvirt.h include/libvirt/libvirt.h.in · 9f211bbf
      Daniel Veillard 提交于
        src/driver.h src/libvirt.c src/openvz_driver.c src/qemu_driver.c
        src/test.c src/xen_unified.c src/xend_internal.c: add new API
        virNodeGetFreeMemory(), extends the driver. Lacks remote and
        QEmu support though.
      * src/libvirt.c: allows to fix virNodeGetCellsFreeMemory() adding
        parameter check for startCell.
      * proxy/libvirt_proxy.c src/xend_internal.[ch]
        include/libvirt/libvirt.h include/libvirt/libvirt.h.in: applied
        vncpasswd dump patch from Mark Johnson but with the
        virDomainXMLFlags extension as suggested by Daniel Berrange
        this changed a couple of internal APIs too
      * tests/sexpr2xmldata/sexpr2xml-no-source-cdrom.xml: fix one of the
        tests affected by bootloader dump change.
      Daniel
      9f211bbf
  16. 22 9月, 2007 1 次提交
  17. 20 9月, 2007 1 次提交
  18. 14 9月, 2007 1 次提交
  19. 21 8月, 2007 2 次提交
  20. 10 8月, 2007 1 次提交
  21. 31 7月, 2007 1 次提交
  22. 30 7月, 2007 1 次提交
  23. 26 7月, 2007 1 次提交
  24. 24 7月, 2007 1 次提交
  25. 19 7月, 2007 3 次提交
  26. 17 7月, 2007 1 次提交
  27. 04 7月, 2007 1 次提交
  28. 27 6月, 2007 1 次提交
  29. 15 6月, 2007 1 次提交
  30. 08 6月, 2007 1 次提交
  31. 07 6月, 2007 1 次提交