]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: Add tests for fc_host
authorOsier Yang <jyang@redhat.com>
Mon, 6 May 2013 12:45:17 +0000 (20:45 +0800)
committerOsier Yang <jyang@redhat.com>
Mon, 13 May 2013 09:24:18 +0000 (17:24 +0800)
commit9706d85fe950c947f7e5d36881e6189ef04b4016
treec28683771d0e8b0095e7e204263da47753dc360f
parentb7ab719528ff70ec5c4dc6b1cab9c344f82eb623
tests: Add tests for fc_host

Since the NPIV machine is not easy to get, it's very likely to
introduce regressions when doing changes on the existing code.
This patch dumps part of the sysfs files (the necessary ones)
of fc_host as test input data, to test the related util functions.
It could be extended for more fc_host related testing in future.
18 files changed:
tests/Makefile.am
tests/fchostdata/fc_host/host4/fabric_name [new file with mode: 0644]
tests/fchostdata/fc_host/host4/max_npiv_vports [new file with mode: 0644]
tests/fchostdata/fc_host/host4/node_name [new file with mode: 0644]
tests/fchostdata/fc_host/host4/npiv_vports_inuse [new file with mode: 0644]
tests/fchostdata/fc_host/host4/port_name [new file with mode: 0644]
tests/fchostdata/fc_host/host4/port_state [new file with mode: 0644]
tests/fchostdata/fc_host/host4/vport_create [new file with mode: 0644]
tests/fchostdata/fc_host/host4/vport_delete [new file with mode: 0644]
tests/fchostdata/fc_host/host5/fabric_name [new file with mode: 0644]
tests/fchostdata/fc_host/host5/max_npiv_vports [new file with mode: 0644]
tests/fchostdata/fc_host/host5/node_name [new file with mode: 0644]
tests/fchostdata/fc_host/host5/npiv_vports_inuse [new file with mode: 0644]
tests/fchostdata/fc_host/host5/port_name [new file with mode: 0644]
tests/fchostdata/fc_host/host5/port_state [new file with mode: 0644]
tests/fchostdata/fc_host/host5/vport_create [new file with mode: 0644]
tests/fchostdata/fc_host/host5/vport_delete [new file with mode: 0644]
tests/fchosttest.c [new file with mode: 0644]