[PATCH 0/7] Test parsing of iscsiadm output

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Introduce virCommandSetMockOutputFile for faking output of
asynchronous commands and use it to test parsing of iscsiadm
output in virStorageBackendISCSISession and
virStorageBackendISCSIScanTargets

Ján Tomko (7):
  Change virStorageBackendISCSISession 'probe' arg to bool
  Introduce virStoragePoolSourceDeviceClear
  Use size_t for ndevice in pool source definition
  Introduce vircommandpriv.h for functions used by tests
  Add virCommandSetMockOutputFile
  Add test for virStorageBackendISCSISession
  Add a test for virStorageBackendISCSIScanTargets

 src/Makefile.am                                  |   5 +-
 src/conf/storage_conf.c                          |  36 ++---
 src/conf/storage_conf.h                          |   3 +-
 src/libvirt_private.syms                         |   2 +
 src/storage/storage_backend_iscsi.c              |  14 +-
 src/storage/storage_backend_iscsipriv.h          |  36 +++++
 src/util/vircommand.c                            |  35 ++++-
 src/util/vircommand.h                            |   2 -
 src/util/vircommandpriv.h                        |  29 ++++
 tests/Makefile.am                                |  14 +-
 tests/storageiscsidata/iscsiadm_sendtargets      |   6 +
 tests/storageiscsidata/iscsiadm_session          |   6 +
 tests/storageiscsidata/iscsiadm_session_nonflash |   6 +
 tests/storageiscsitest.c                         | 186 +++++++++++++++++++++++
 tests/virkmodtest.c                              |   2 +-
 tests/virnetdevbandwidthtest.c                   |   2 +-
 16 files changed, 350 insertions(+), 34 deletions(-)
 create mode 100644 src/storage/storage_backend_iscsipriv.h
 create mode 100644 src/util/vircommandpriv.h
 create mode 100644 tests/storageiscsidata/iscsiadm_sendtargets
 create mode 100644 tests/storageiscsidata/iscsiadm_session
 create mode 100644 tests/storageiscsidata/iscsiadm_session_nonflash
 create mode 100644 tests/storageiscsitest.c

-- 
1.8.3.2

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]