1. 03 4月, 2018 1 次提交
  2. 19 3月, 2018 2 次提交
    • E
      iotests: Avoid realpath, for CentOS 6 · 63ca8406
      Eric Blake 提交于
      CentOS 6 lacks a realpath binary on the base install, which makes
      all iotests runs fail since the 2.11 release:
      
      001         - output mismatch (see 001.out.bad)
      ./check: line 815: realpath: command not found
      diff: missing operand after `/home/dummy/qemu/tests/qemu-iotests/001.out'
      diff: Try `diff --help' for more information.
      
      Many of the uses of 'realpath' in the check script were being
      used on the output of 'type -p' - but that is already an
      absolute file name.  While a canonical name can often be
      shorter (realpath gets rid of /../), it can also be longer (due
      to symlink expansion); and we really don't care if the name is
      canonical, merely that it was an executable file with an
      absolute path.  These were broken in commit cceaf1db.
      
      The remaining use of realpath was to convert a possibly relative
      filename into an absolute one before calling diff to make it
      easier to copy-and-paste the filename for moving the .bad file
      into place as the new reference file even when running iotests
      out-of-tree (see commit 93e53fb6), but $PWD can achieve the same
      purpose.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Reviewed-by: NPaolo Bonzini <pbonzini@redhat.com>
      Reviewed-by: NJeff Cody <jcody@redhat.com>
      Reviewed-by: NPhilippe Mathieu-Daudé <f4bug@amsat.org>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      63ca8406
    • K
      qemu-iotests: Enable write tests for parallels · e1473133
      Kevin Wolf 提交于
      Originally we added parallels as a read-only format to qemu-iotests
      where we did just some tests with a binary image. Since then, write and
      image creation support has been added to the driver, so we can now
      enable it in _supported_fmt generic.
      
      The driver doesn't support migration yet, though, so we need to add it
      to the list of exceptions in 181.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Reviewed-by: NMax Reitz <mreitz@redhat.com>
      Reviewed-by: NJeff Cody <jcody@redhat.com>
      e1473133
  3. 06 10月, 2017 8 次提交
  4. 26 9月, 2017 1 次提交
  5. 14 8月, 2017 3 次提交
  6. 11 7月, 2017 2 次提交
    • S
      qemu-iotests: support per-format golden output files · 217a0683
      Stefan Hajnoczi 提交于
      Some tests produce format-dependent output.  Either the difference is
      filtered out and ignored, or the test case is format-specific so we
      don't need to worry about per-format output differences.
      
      There is a third case: the test script is the same for all image formats
      and the format-dependent output is relevant.  An ugly workaround is to
      copy-paste the test into multiple per-format test cases.  This
      duplicates code and is not maintainable.
      
      This patch allows test cases to add per-format golden output files so a
      single test case can work correctly when format-dependent output must be
      checked:
      
        123.out.qcow2
        123.out.raw
        123.out.vmdk
        ...
      
      This naming scheme is not composable with 123.out.nocache or 123.pc.out,
      two other scenarios where output files are split.  I don't think it
      matters since few test cases need these features.
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      Reviewed-by: NAlberto Garcia <berto@igalia.com>
      Message-id: 20170705125738.8777-9-stefanha@redhat.com
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      217a0683
    • E
      tests: Avoid non-portable 'echo -ARG' · b43671f8
      Eric Blake 提交于
      POSIX says that backslashes in the arguments to 'echo', as well as
      any use of 'echo -n' and 'echo -e', are non-portable; it recommends
      people should favor 'printf' instead.  This is definitely true where
      we do not control which shell is running (such as in makefile snippets
      or in documentation examples).  But even for scripts where we
      require bash (and therefore, where echo does what we want by default),
      it is still possible to use 'shopt -s xpg_echo' to change bash's
      behavior of echo.  And setting a good example never hurts when we are
      not sure if a snippet will be copied from a bash-only script to a
      general shell script (although I don't change the use of non-portable
      \e for ESC when we know the running shell is bash).
      
      Replace 'echo -n "..."' with 'printf %s "..."', and 'echo -e "..."'
      with 'printf %b "...\n"', with the optimization that the %s/%b
      argument can be omitted if the string being printed is a strict
      literal with no '%', '$', or '`' (we could technically also make
      this optimization when there are $ or `` substitutions but where
      we can prove their results will not be problematic, but proving
      that such substitutions are safe makes the patch less trivial
      compared to just being consistent).
      
      In the qemu-iotests check script, fix unusual shell quoting
      that would result in word-splitting if 'date' outputs a space.
      
      In test 051, take an opportunity to shorten the line.
      
      In test 068, get rid of a pointless second invocation of bash.
      
      CC: qemu-trivial@nongnu.org
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Message-id: 20170703180950.9895-1-eblake@redhat.com
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      b43671f8
  7. 12 2月, 2017 1 次提交
  8. 13 4月, 2016 1 次提交
  9. 05 9月, 2015 2 次提交
  10. 22 5月, 2015 1 次提交
    • F
      qemu-iotests: Make debugging python tests easier · aa4f592a
      Fam Zheng 提交于
      Adding "-d" option. The output goes to "tee" so it appears in your
      console. Also, raise the verbosity of unnitest runner.
      
      When testing a topic branch, it's possible that a bug introduced by a
      code change makes the python test case hang, with debug output, it is
      much easier to locate the problem.
      
      This can also be helpful if you want to watch the progress of a python
      test, it offers you a way to sense the speed of each test case method
      you're writing.
      
      Note: because there is no easy way to get *both* the verbose output and
      the output expected by ./check comparison, the case would always fail
      with an "output mismatch". The sole purpose of using this option is
      giving developers a quick way to debug when things go wrong.
      Signed-off-by: NFam Zheng <famz@redhat.com>
      Reviewed-by: NStefan Hajnoczi <stefanha@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      aa4f592a
  11. 13 1月, 2015 1 次提交
  12. 28 6月, 2014 3 次提交
  13. 15 5月, 2014 1 次提交
  14. 09 5月, 2014 1 次提交
  15. 04 12月, 2013 2 次提交
  16. 12 9月, 2013 1 次提交
  17. 06 9月, 2013 2 次提交
    • K
      qemu-iotests: Fixed test case 026 · 8f94b077
      Kevin Wolf 提交于
      The reference output for test case 026 hasn't been updated in a long
      time and it's one of the "known failing" cases. This patch updates the
      reference output so that unintentional changes can be reliably detected
      again.
      
      The problem with this test case is that it produces different output
      depending on whether -nocache is used or not. The solution of this patch
      is to actually have two different reference outputs. If nnn.out.nocache
      exists, it is used as the reference output for -nocache; otherwise,
      nnn.out stays valid for both cases.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      8f94b077
    • K
      qemu-iotests: Whitespace cleanup · 79e40ab1
      Kevin Wolf 提交于
      These scripts used to have a four characters indentation, with eight
      consecutive spaces converted into a tab. Convert everything into spaces.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      79e40ab1
  18. 29 5月, 2013 1 次提交
  19. 20 4月, 2012 1 次提交
  20. 29 2月, 2012 1 次提交
  21. 23 2月, 2012 2 次提交
  22. 22 2月, 2012 2 次提交