tests/pxe-test: Use table of testcases rather than open-coding
commit1e88989f6ae6699c3391630c6aac20988a47583a
authorDavid Gibson <david@gibson.dropbear.id.au>
Tue, 19 Dec 2017 04:45:20 +0000 (19 15:45 +1100)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 21 Dec 2017 00:16:47 +0000 (21 02:16 +0200)
treec1cd2dd6a1b3ce28de60a40ab36798d6fd567d1d
parent5c96e091e8fb2bb7809bb1bfcd1dc1e954627292
tests/pxe-test: Use table of testcases rather than open-coding

Currently pxe-tests open codes the list of tests for each architecture.
This changes it to use tables of test parameters, somewhat similar to
boot-serial-test.

This adds the machine type into the table as well, giving us the ability
to perform tests on multiple machine types for architectures where there's
more than one machine type that matters.

NOTE: This changes the names of the tests in the output, to include the
      machine type and IPv4 vs. IPv6.  I'm not sure if this has the
      potential to break existing tooling.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
tests/pxe-test.c