1. 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
  2. 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
  3. 25 11月, 2008 2 次提交
  4. 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
  5. 21 11月, 2008 1 次提交
  6. 18 11月, 2008 1 次提交
  7. 17 11月, 2008 1 次提交
  8. 05 11月, 2008 1 次提交
  9. 04 11月, 2008 1 次提交
  10. 01 8月, 2008 1 次提交
  11. 25 7月, 2008 2 次提交
  12. 23 7月, 2008 1 次提交
  13. 26 6月, 2008 1 次提交
  14. 19 6月, 2008 1 次提交
  15. 29 5月, 2008 1 次提交
  16. 23 5月, 2008 1 次提交
  17. 17 5月, 2008 1 次提交
  18. 28 4月, 2008 1 次提交
  19. 18 4月, 2008 1 次提交
  20. 08 4月, 2008 1 次提交
    • J
      Don't fail to read a file because it's non-seekable (e.g., a pipe). · 3ce465f8
      Jim Meyering 提交于
      * src/util.c (fread_file_lim): New function.
      (__virFileReadAll): Use fread_file_lim, rather than requiring
      that stat.st_size provide a usable file size.
      * tests/read-non-seekable: New test, for the above.
      * tests/Makefile.am (test_scripts): Add read-non-seekable.
      * tests/test-lib.sh (mkfifo_or_skip_): New helper function.
      3ce465f8
  21. 24 3月, 2008 2 次提交
    • J
      Add new testing framework and the first test to use it. · f15efcdf
      Jim Meyering 提交于
      * tests/Makefile.am (test_scripts): Add vcpupin.
      (EXTRA_DIST): Add test-lib.sh.
      * tests/test-lib.sh: Testing framework, from coreutils.
      * tests/vcpupin: New file.
      * build-aux/mktempd: New file, from gnulib.
      * bootstrap: Add posix-shell and mktempd to the list of imported modules.
      * gnulib/m4/posix-shell.m4: New file, from gnulib.
      f15efcdf
    • J
      Fix bugs in tests/Makefile.am. · 870dba07
      Jim Meyering 提交于
      * tests/Makefile.am (TESTS_ENVIRONMENT): Correct invalid
      settings of abs_top_builddir and abs_top_srcdir.
      Also prepend src/ to PATH, so we test the just-built virsh,
      not whatever happens to be in the original $PATH.
      870dba07
  22. 29 2月, 2008 1 次提交
    • J
      Avoid link errors with "configure --disable-shared". · 9262d88e
      Jim Meyering 提交于
      * src/Makefile.am: Create a convenience library, libvirt_test.la,
      and don't restrict access to *its* symbols.
      * tests/Makefile.am (LDADDS): Add ../src/libvirt_test.la, so that
      "configure --disable-shared" no longer provokes link errors.
      (LIBVIRT): Remove definition.
      (LDADDS): Remove use.
      ($(LIBVIRT)): Remove rule.
      (LDADDS): Use the new convenience library instead.
      (CLEANFILES): Define.
      * docs/examples/index.py (dump_Makefile): Append $(COVERAGE_LDFLAGS),
      to the LDADDS definition, to avoid link error with the combination of
      --enable-test-coverage and --disable-shared.
      * docs/examples/Makefile.am: Regenerate.
      * docs/examples/index.html: Likewise.
      * qemud/Makefile.am (libvirtd_LDFLAGS): Append $(COVERAGE_LDFLAGS).
      * src/libvirt_sym.version: Remove some SP-before-TAB.
      9262d88e
  23. 20 2月, 2008 1 次提交
  24. 30 1月, 2008 1 次提交
  25. 12 12月, 2007 2 次提交
    • J
      Accommodate automake-1.9. · 9e188e11
      Jim Meyering 提交于
      * tests/Makefile.am (TESTS_ENVIRONMENT): Adjust PATH setting
      to work also with automake-1.9.  Can't use $(abs_top_builddir).
      
      
      Author: Jim Meyering <meyering@redhat.com>
      9e188e11
    • 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
  26. 06 12月, 2007 2 次提交
    • 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
  27. 05 12月, 2007 1 次提交
  28. 26 11月, 2007 1 次提交
  29. 18 11月, 2007 1 次提交
  30. 17 11月, 2007 1 次提交
  31. 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
  32. 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
  33. 12 11月, 2007 1 次提交
    • 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