1. 24 4月, 2016 1 次提交
    • C
      tests: consistently source test-lib.sh in scripts · 856e84a5
      Cole Robinson 提交于
      This unifies the test scripts to all use the similar pattern added for
      schematests in ace4aecd. This gives the following
      
      - Enables running all tests from outside of tests/ dir
      - Drops redundant abs_* definitions, which are set by test-lib.sh
      - Drops unnecessary srcdir variable which was only used for sourcing
          test-lib.sh
      
      Behavior changes:
      
      - srcdir can no longer be overwritten, but I don't know why anyone would
          really need to...
      - Script VERBOSE setting no longer prints commands executed by test-lib.sh.
          if anyone cares I suggest handling this in test-lib.sh which already
          has other verbose style handling
      856e84a5
  2. 22 4月, 2016 1 次提交
  3. 27 7月, 2012 1 次提交
    • E
      maint: avoid regression on copyright listings · 3ad13c92
      Eric Blake 提交于
      Commit f9ce7dad tried to kill uses of a raw street address, but
      missed a few instances.  Automate things so we don't introduce
      new problems in the future.
      
      * cfg.mk (sc_copyright_address): New rule.
      (exclude_file_name_regexp--sc_copyright_address): Add exemption.
      * bootstrap.conf: Adjust offenders.
      * build-aux/augeas-gentest.pl: Likewise.
      * examples/systemtap/events.stp: Likewise.
      * examples/systemtap/qemu-monitor.stp: Likewise.
      * examples/systemtap/rpc-monitor.stp: Likewise.
      * src/dtrace2systemtap.pl: Likewise.
      * src/esx/esx_vi_generator.py: Likewise.
      * src/hyperv/hyperv_wmi_generator.py: Likewise.
      * src/remote/qemu_protocol.x: Likewise.
      * src/remote/remote_protocol.x: Likewise.
      * src/rpc/gensystemtap.pl: Likewise.
      * src/rpc/virnetprotocol.x: Likewise.
      * tests/object-locking.ml: Likewise.
      * tools/virt-xml-validate.in: Likewise.
      3ad13c92
  4. 17 4月, 2012 1 次提交
  5. 14 9月, 2010 1 次提交
    • E
      build: use portable sed expressions · 249a5b35
      Eric Blake 提交于
      * src/Makefile.am (libvirt.def, libvirt_qemu.def): '\}' and '\t'
      are not required by POSIX.  Use '}' and literal tab instead.
      (install-data-local): Avoid sed -i.
      * tests/read-bufsiz: Likewise.
      Reported by Mitchell Hashimoto.
      249a5b35
  6. 12 5月, 2010 1 次提交
    • J
      tests: use GPLv2+, not GPLv3 · c2c4abb4
      Jim Meyering 提交于
      * tests/cpuset: Change from GPLv3 to GPLv2+
      * tests/read-bufsiz: Likewise.
      * tests/read-non-seekable: Likewise.
      * tests/start: Likewise.
      * tests/undefine: Likewise.
      * tests/vcpupin: Likewise.
      * tests/virsh-all: Likewise.
      * tests/virsh-schedinfo: Likewise.
      * tests/virsh-synopsis: Likewise.
      c2c4abb4
  7. 11 5月, 2010 1 次提交
    • J
      tests: adjust copyrights on scripts: s/FSF/Red Hat/ · c5be8bcb
      Jim Meyering 提交于
      * tests/cpuset: Change copyright holder from FSF to Red Hat, Inc.
      * tests/read-bufsiz: Likewise.
      * tests/read-non-seekable: Likewise.
      * tests/start: Likewise.
      * tests/undefine: Likewise.
      * tests/vcpupin: Likewise.
      * tests/virsh-all: Likewise.
      * tests/virsh-synopsis: Likewise.
      c5be8bcb
  8. 06 11月, 2009 1 次提交
  9. 07 10月, 2009 1 次提交
    • C
      Fix up "make check" · db68d6b1
      Chris Lalancette 提交于
      While running make check, I noticed that it was actually using
      the virsh binary from my system, in /usr/bin/virsh, and not the
      one that was just compiled.  This is actually caused by a bug
      in Makefile.am, where we didn't update the PATH to include tools.
      
      While here, I also updated all of the scripts to properly define
      the srcdir, abs_top_srcdir, and abs_top_builddir environment
      variables.  This is required if you want to be able to run the
      tests standalone (i.e. ./test instead of from make check).  I've
      tested this on both RHEL-5 and Fedora-10 machines, and make check
      works on both, as does running the individual tests by hand.
      Signed-off-by: NChris Lalancette <clalance@redhat.com>
      db68d6b1
  10. 21 1月, 2009 1 次提交
  11. 20 1月, 2009 1 次提交
  12. 19 6月, 2008 1 次提交
  13. 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
  14. 07 4月, 2008 1 次提交
  15. 24 3月, 2008 1 次提交
    • 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