1. 25 3月, 2019 1 次提交
    • E
      snapshot: Add tests of virsh -c test:///default snapshot* · 280a2b41
      Eric Blake 提交于
      Had this been in place earlier, I would have avoided the bugs in
      commit 0baf6945 and 55c2ab3e. Writing the test required me to extend
      the power of virsh - creating enough snapshots to cause fanout
      requires enough input in a single session that adding comments and
      markers makes it easier to check that output is correct. It's still a
      bit odd that with test:///default, reverting to a snapshot changes the
      domain from running to paused (possibly a bug in how the test driver
      copied from the qemu driver) - but the important part is that the test
      is reproducible, and any future tweaks we make to snapshot code have
      less chance of breaking successful command sequences.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Acked-by: NMichal Privoznik <mprivozn@redhat.com>
      280a2b41
  2. 15 3月, 2019 1 次提交
  3. 14 3月, 2019 6 次提交
  4. 13 3月, 2019 1 次提交
  5. 12 3月, 2019 3 次提交
  6. 11 3月, 2019 1 次提交
  7. 07 3月, 2019 2 次提交
  8. 12 2月, 2019 2 次提交
  9. 08 2月, 2019 1 次提交
  10. 30 1月, 2019 3 次提交
  11. 08 1月, 2019 2 次提交
  12. 19 12月, 2018 1 次提交
  13. 14 12月, 2018 1 次提交
  14. 13 12月, 2018 1 次提交
  15. 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
  16. 17 9月, 2018 1 次提交
  17. 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
  18. 13 8月, 2018 1 次提交
  19. 18 7月, 2018 1 次提交
  20. 10 7月, 2018 1 次提交
  21. 26 6月, 2018 1 次提交
  22. 05 6月, 2018 1 次提交
  23. 23 5月, 2018 1 次提交
  24. 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
  25. 07 5月, 2018 2 次提交
  26. 03 5月, 2018 1 次提交
  27. 18 4月, 2018 1 次提交