sendkey: Check for and install required guest utility

The test assumed that 'rsyslog' was installed on the guest as a
way to log whether the running of command resulted in output going
to /var/log/messages.

Since other tests install guest utilities, have this code follow that
same patter to check and install the rsyslog package.  Along the way
fix a couple of other issues...

- The log file checked is /var/log/messages not /var/log/message
- We need to ensure that rsyslog is actually running before using
  NOTE: Using the service command is more "modern" - this test could
        still fail on older OS's that don't use systemd.  I'm not quite
        sure what check would be made there, but this at least works
        for the more modern ones.
- No need to send an "rm -rf None" if "create_file" is None
- Output to /var/log/messages is actually done to a system buffer first,
  then to /var/log/messages.  This can result in test failure if the
  expected text wasn't yet present.  Follow the other example in the
  code and try for 60 seconds before giving up.  I did try to add code
  that would modify the rsyslog config files to change some configuration
  value to require immediate writes, but that got messy - this was just
  simpler.
- Remove 'sendkey_params' / params_test as it really wasn't necessary
  as either this test uses sysrq or not.  Besides the only time the
  create_file_name is used is for the params_test - so use that.
Add test for virt-win-reg.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
libvirt.tests: Add virsh sysinfo test case

Add virsh sysinfo case and cfg file.

As sysinfo output varies on different platform (ARMv7, s390x, PowerPC,
!WIN32 && x86), only check processor part which each platform sysinfo
output contain, and compare cpu version from processor node xml in
sysinfo with dmidecode output, skip check if dmidecode command fail.

Signed-off-by: Wayne Sun <gsun@redhat.com>
iface_trans: Need to check for required utility

The test uses the 'locate' utility to find the network-scripts, but
does not first determine if it's installed resulting in FAILures rather
than SKIP's.
snapshot: Catch the VMDeadError while removing snapshots

Catch/handle the VMDeadError while removing snapshots in hopes that by
doing so we won't cause other tests run afterwards to fail because there
are still snapshots present.
libvirt-test: Add test for libvirt pci passthrough.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Merge pull request #46 from yangdongsheng/pci_passthrough

libvirt: Add test for pci passthrough for libvirt guest.
Merge pull request #20 from jferlan/iface_trans

iface_trans: Need to check for required utility
Merge pull request #36 from yangdongsheng/virt_win_reg

libguestfs:Add test for virt-win-reg.
Libguestfs.tests: Fix some pep8 problems for virt-win-reg.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
Merge pull request #51 from jferlan/snapshot

snapshot: Catch the VMDeadError while removing snapshots
Merge pull request #26 from jferlan/sendkey

sendkey: Check for and install required guest utility
Merge pull request #17 from waynesun09/virsh_sysinfo

libvirt.tests: Add virsh sysinfo test case
libvirt.tests: Add test for virsh find-storage-pool-sources

Signed-off-by: Yanbing Du <ydu@redhat.com>