tests: Add unit tests for the VM Generation ID feature
commit83f3c7091968979ed07869dce9e0df62170f33b4
authorBen Warren <ben@skyportsystems.com>
Sun, 2 Jul 2017 03:54:03 +0000 (1 23:54 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 3 Jul 2017 19:29:49 +0000 (3 22:29 +0300)
tree324b47bf1b38b2e1d108a9aa3dcb3ad5ae4859d3
parentb9ec9bd468b2c5b218d16642e8f8ea4df60418bb
tests: Add unit tests for the VM Generation ID feature

The following tests are implemented:
* test that a GUID passed in by command line is propagated to the guest.
  Read the GUID from guest memory
* test that the "auto" argument to the GUID generates a valid GUID, as
  seen by the guest.
* test that a GUID passed in can be queried from the monitor

  This patch is loosely based on a previous patch from:
  Gal Hammer <ghammer@redhat.com>  and Igor Mammedov <imammedo@redhat.com>

Signed-off-by: Ben Warren <ben@skyportsystems.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
tests/Makefile.include
tests/vmgenid-test.c [new file with mode: 0644]