1. 30 1月, 2019 3 次提交
  2. 08 1月, 2019 2 次提交
  3. 19 12月, 2018 1 次提交
  4. 14 12月, 2018 1 次提交
  5. 13 12月, 2018 1 次提交
  6. 10 10月, 2018 1 次提交
    • M
      virfiletst: Test virFileIsSharedFS · a7b4eb7d
      Michal Privoznik 提交于
      Introduce some basic test cases for virFileIsSharedFS(). More
      will be added later. In order to achieve desired result, mocks
      for setmntent() and statfs() need to be invented because the
      first thing that virFileIsSharedFS() does is calling the latter.
      If it finds a FUSE mount it'll call the former.
      
      The mock might look a bit complicated, but in fact it's quite
      simple. The test sets LIBVIRT_MTAB env variable to hold the
      absolute path to a file containing mount table. Then, statfs()
      returns matching FS it finds, and setmntent() is there just to
      replace /proc/mounts with the file the test wants to load.
      
      Adding this test also exposed a bug we have - because we assume
      the given path points to a file we cut off what we assume is a
      file name to obtain directory path and only then we call
      statfs(). This is buggy because the passed path could be already
      a mount point.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NJiri Denemark <jdenemar@redhat.com>
      a7b4eb7d
  7. 17 9月, 2018 1 次提交
  8. 24 8月, 2018 1 次提交
    • S
      vsh: Added tests · 95785c1c
      Simon Kobyda 提交于
      For now, there are 9 test cases
      - testVshTableNew: Creating table with empty header
      - testVshTableHeader: Printing table with/without header
      - testVshTableRowAppend: Appending row with various number of cells.
        Only row with same number of cells as in header is accepted.
      - testUnicode: Printing table with unicode characters.
        Checking correct alignment.
      - testUnicodeArabic: test opposite (right to left) writing
      - testUnicodeZeroWidthChar
      - testUnicodeCombiningChar
      - testUnicodeNonPrintableChar,
      - testNTables: Create and print varios types of tables - one column,
        one row table, table without content, standart table...
      Signed-off-by: NSimon Kobyda <skobyda@redhat.com>
      95785c1c
  9. 13 8月, 2018 1 次提交
  10. 18 7月, 2018 1 次提交
  11. 10 7月, 2018 1 次提交
  12. 26 6月, 2018 1 次提交
  13. 05 6月, 2018 1 次提交
  14. 23 5月, 2018 1 次提交
  15. 15 5月, 2018 1 次提交
    • M
      tests: Link mocks with libvirt.so · f50ad2ff
      Michal Privoznik 提交于
      In a lot of our mocks (if not all of them) we use our internal
      APIs (e.g. VIR_ALLOC). So far, we're relying on test binary that
      links with the mock to drag in libvirt.so. Well, this works only
      partially. Firstly, whatever binary we execute from tests will
      fail (e.g. as Martin reported on the list ./qemucapsprobe fails
      to execute qemu). Secondly, if there's a program that tries to
      validate linking (like valgrind is doing) it fails because of
      unresolved symbols.
      
      Because of that we have to link our mocks with libvirt.so.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      f50ad2ff
  16. 07 5月, 2018 2 次提交
  17. 03 5月, 2018 1 次提交
  18. 18 4月, 2018 2 次提交
  19. 17 4月, 2018 1 次提交
  20. 10 4月, 2018 5 次提交
  21. 03 4月, 2018 1 次提交
    • P
      tests: qemuxml2argv: Allow testing of config processed at startup · f0a528ce
      Peter Krempa 提交于
      Add a new kind of XML output test for the files in qemuxml2argvtest
      where we can validate setup and defaults applied when starting up the
      VM.
      
      This is achieved by formatting of the definition processed by the
      qemuxml2argvtest into a XML and it's compared against files in
      qemuxml2startupxmloutdata. This test is automatically executed if the
      output file is present and it's skipped otherwise.
      
      The first example test case is created from 'disk-drive-shared' test
      case.
      Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
      f0a528ce
  22. 23 3月, 2018 3 次提交
  23. 14 3月, 2018 1 次提交
  24. 13 3月, 2018 2 次提交
  25. 27 2月, 2018 1 次提交
  26. 19 2月, 2018 2 次提交
  27. 12 2月, 2018 1 次提交