1. 03 4月, 2018 1 次提交
  2. 06 10月, 2017 6 次提交
  3. 11 7月, 2017 1 次提交
    • M
      iotests: Use absolute paths for executables · 3190683e
      Max Reitz 提交于
      A user may specify a relative path for accessing qemu, qemu-img, etc.
      through environment variables ($QEMU_PROG and friends) or a symlink.
      
      If a test decides to change its working directory, relative paths will
      cease to work, however. Work around this by making all of the paths to
      programs that should undergo testing absolute. Besides "realpath", we
      also have to use "type -p" to support programs in $PATH.
      
      As a side effect, this fixes specifying these programs as symlinks for
      out-of-tree builds: Before, you would have to create two symlinks, one
      in the build and one in the source tree (the first one for common.config
      to find, the second one for the iotest to use). Now it is sufficient to
      create one in the build tree because common.config will resolve it.
      Reported-by: NKevin Wolf <kwolf@redhat.com>
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      Message-id: 20170702150510.23276-2-mreitz@redhat.com
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Tested-by: NEric Blake <eblake@redhat.com>
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      3190683e
  4. 27 4月, 2017 2 次提交
  5. 25 4月, 2017 1 次提交
  6. 12 2月, 2017 1 次提交
  7. 12 5月, 2016 2 次提交
    • D
      block: add support for encryption secrets in block I/O tests · b7e875b2
      Daniel P. Berrange 提交于
      The LUKS block driver tests will require the ability to specify
      encryption secrets with block devices. This requires using the
      --object argument to qemu-img/qemu-io to create a 'secret'
      object.
      
      When the IMGKEYSECRET env variable is set, it provides the
      password to be associated with a secret called 'keysec0'
      
      The _qemu_img_wrapper function isn't modified as that needs
      to cope with differing syntax for subcommands, so can't be
      made to use the image opts syntax unconditionally.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      Message-id: 1462896689-18450-3-git-send-email-berrange@redhat.com
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      b7e875b2
    • D
      block: add support for --image-opts in block I/O tests · 076003f5
      Daniel P. Berrange 提交于
      Currently all block tests use the traditional syntax for images
      just specifying a filename. To support the LUKS driver without
      resorting to JSON, the tests need to be able to use the new
      --image-opts argument to qemu-img and qemu-io.
      
      This introduces a new env variable IMGOPTSSYNTAX. If this is
      set to 'true', then qemu-img/qemu-io should use --image-opts.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      Message-id: 1462896689-18450-2-git-send-email-berrange@redhat.com
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      076003f5
  8. 15 4月, 2016 1 次提交
  9. 18 12月, 2015 1 次提交
  10. 11 11月, 2015 2 次提交
    • J
      qemu-iotests: fix -valgrind option for check · e6c17669
      Jeff Cody 提交于
      Commit 934659c4 switched the iotests to run qemu-io from a bash subshell,
      in order to catch segfaults.  This method is incompatible with the
      current valgrind_qemu_io() bash function.
      
      Move the valgrind usage into the exec subshell in _qemu_io_wrapper(),
      while making sure the original return value is passed back to the
      caller.
      
      Update test output for tests 039, 061, and 137 as it looks for the
      specific subshell command when the process is terminated.
      Reported-by: NKevin Wolf <kwolf@redhat.com>
      Signed-off-by: NJeff Cody <jcody@redhat.com>
      Message-id: 0066fd85d26ca641a1c25135ff2479b7985701cf.1446232490.git.jcody@redhat.com
      Reviewed-by: NMax Reitz <mreitz@redhat.com>
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      e6c17669
    • J
      qemu-iotests: fix cleanup of background processes · f6c8c2e0
      Jeff Cody 提交于
      Commit 934659c4 switched the iotests to run qemu and qemu-nbd from a bash
      subshell, in order to catch segfaults.  Unfortunately, this means the
      process PID cannot be captured via '$!'. We stopped killing qemu and
      qemu-nbd processes, leaving a lot of orphaned, running qemu processes
      after executing iotests.
      
      Since the process is using exec in the subshell, the PID is the
      same as the subshell PID.
      
      Track these PIDs for cleanup using pidfiles in the $TEST_DIR. Only
      track the qemu PID, however, if requested - not all usage requires
      killing the process.
      Reported-by: NJohn Snow <jsnow@redhat.com>
      Signed-off-by: NJeff Cody <jcody@redhat.com>
      Message-id: 9e4f958b3895b7259b98d845bb46f000ba362869.1446232490.git.jcody@redhat.com
      [mreitz@redhat.com: Replaced '! -z "..."' by '-n "..."']
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      f6c8c2e0
  11. 05 9月, 2015 2 次提交
  12. 13 1月, 2015 1 次提交
  13. 10 12月, 2014 1 次提交
  14. 28 6月, 2014 1 次提交
    • M
      iotests: Allow out-of-tree run · e8f8624d
      Max Reitz 提交于
      As out-of-tree builds are preferred for qemu, running the qemu-iotests
      in that out-of-tree build should be supported as well. To do so, a
      symbolic link has to be created pointing to the check script in the
      source directory. That script will check whether it has been run through
      a symlink, and if so, will assume it is run in the build tree. All
      output and temporary operations performed by iotests are then redirected
      here and, unless specified otherwise by the user, QEMU_PROG etc. will be
      set to paths appropriate for the build tree.
      
      Also, drop making every test case executable if it is not yet, as this
      would modify the source tree which is not desired for out-of-tree runs
      and should be fixed in the repository anyway.
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      e8f8624d
  15. 27 9月, 2013 1 次提交
    • J
      qemu-iotests: Add basic ability to use binary sample images · 85edbd37
      Jeff Cody 提交于
      For image formats that are not "QEMU native", but supported for
      compatibility, it is useful to verify that an image created with
      the 'gold standard' native tool can be read / written to successfully
      by QEMU.
      
      In addition to testing non-native images, this could also be useful to
      test against image files created by older versions of QEMU.
      
      This provides a directory to store small sample images, for use by
      scripts in tests/qemu-iotests.
      
      Image files should be compressed with bzip2.
      
      To use a sample image from a bash script, the _use_sample_img function
      will copy and decompress the image into $TEST_DIR, and set $TEST_IMG to
      be the decompressed sample image copy.  To cleanup, call
      _cleanup_test_img as normal.
      Signed-off-by: NJeff Cody <jcody@redhat.com>
      Reviewed-by: NStefan Hajnoczi <stefanha@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      85edbd37
  16. 06 9月, 2013 1 次提交
  17. 15 11月, 2012 1 次提交
  18. 20 4月, 2012 1 次提交
  19. 29 2月, 2012 1 次提交
  20. 23 2月, 2012 2 次提交
  21. 22 2月, 2012 3 次提交