2009-06-11 22:17:42 +08:00
|
|
|
#include <config.h>
|
|
|
|
|
|
|
|
#ifdef WITH_QEMU
|
|
|
|
|
2010-03-10 02:22:22 +08:00
|
|
|
# include <stdio.h>
|
|
|
|
# include <stdlib.h>
|
2009-06-11 22:17:42 +08:00
|
|
|
|
2010-03-10 02:22:22 +08:00
|
|
|
# include "testutils.h"
|
2010-12-18 00:41:51 +08:00
|
|
|
# include "qemu/qemu_capabilities.h"
|
2011-01-14 00:09:15 +08:00
|
|
|
# include "memory.h"
|
2009-06-11 22:17:42 +08:00
|
|
|
|
2010-03-10 02:22:22 +08:00
|
|
|
# define MAX_HELP_OUTPUT_SIZE 1024*64
|
2009-06-11 22:17:42 +08:00
|
|
|
|
|
|
|
struct testInfo {
|
|
|
|
const char *name;
|
2010-02-09 21:06:56 +08:00
|
|
|
unsigned long long flags;
|
|
|
|
unsigned int version;
|
|
|
|
unsigned int is_kvm;
|
|
|
|
unsigned int kvm_version;
|
2009-06-11 22:17:42 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
static char *progname;
|
|
|
|
static char *abs_srcdir;
|
|
|
|
|
2010-05-13 11:07:00 +08:00
|
|
|
static void printMismatchedFlags(unsigned long long got,
|
|
|
|
unsigned long long expect)
|
2009-12-22 04:36:32 +08:00
|
|
|
{
|
|
|
|
int i;
|
|
|
|
|
2010-05-13 11:07:00 +08:00
|
|
|
for (i = 0 ; i < (sizeof(got)*CHAR_BIT) ; i++) {
|
|
|
|
unsigned long long gotFlag = (got & (1LL << i));
|
|
|
|
unsigned long long expectFlag = (expect & (1LL << i));
|
2009-12-22 04:36:32 +08:00
|
|
|
if (gotFlag && !expectFlag)
|
|
|
|
fprintf(stderr, "Extra flag %i\n", i);
|
|
|
|
if (!gotFlag && expectFlag)
|
|
|
|
fprintf(stderr, "Missing flag %i\n", i);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2009-06-11 22:17:42 +08:00
|
|
|
static int testHelpStrParsing(const void *data)
|
|
|
|
{
|
|
|
|
const struct testInfo *info = data;
|
2011-01-14 00:09:15 +08:00
|
|
|
char *path = NULL;
|
2009-06-11 22:17:42 +08:00
|
|
|
char helpStr[MAX_HELP_OUTPUT_SIZE];
|
|
|
|
char *help = &(helpStr[0]);
|
2010-02-09 21:06:56 +08:00
|
|
|
unsigned int version, is_kvm, kvm_version;
|
|
|
|
unsigned long long flags;
|
2011-01-14 00:09:15 +08:00
|
|
|
int ret = -1;
|
2009-06-11 22:17:42 +08:00
|
|
|
|
2011-01-14 00:09:15 +08:00
|
|
|
if (virAsprintf(&path, "%s/qemuhelpdata/%s", abs_srcdir, info->name) < 0)
|
|
|
|
return -1;
|
2009-06-11 22:17:42 +08:00
|
|
|
|
|
|
|
if (virtTestLoadFile(path, &help, MAX_HELP_OUTPUT_SIZE) < 0)
|
2011-01-14 00:09:15 +08:00
|
|
|
goto cleanup;
|
2009-06-11 22:17:42 +08:00
|
|
|
|
2010-12-18 00:41:51 +08:00
|
|
|
if (qemuCapsParseHelpStr("QEMU", help, &flags,
|
|
|
|
&version, &is_kvm, &kvm_version) == -1)
|
2011-01-14 00:09:15 +08:00
|
|
|
goto cleanup;
|
|
|
|
|
2011-02-08 22:08:12 +08:00
|
|
|
if (qemuCapsGet(info->flags, QEMU_CAPS_DEVICE)) {
|
2011-01-14 00:09:15 +08:00
|
|
|
VIR_FREE(path);
|
|
|
|
if (virAsprintf(&path, "%s/qemuhelpdata/%s-device", abs_srcdir,
|
|
|
|
info->name) < 0)
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
if (virtTestLoadFile(path, &help, MAX_HELP_OUTPUT_SIZE) < 0)
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
if (qemuCapsParseDeviceStr(help, &flags) < 0)
|
|
|
|
goto cleanup;
|
|
|
|
}
|
2009-06-11 22:17:42 +08:00
|
|
|
|
|
|
|
if (flags != info->flags) {
|
2011-01-14 00:09:15 +08:00
|
|
|
fprintf(stderr,
|
|
|
|
"Computed flags do not match: got 0x%llx, expected 0x%llx\n",
|
2009-06-11 22:17:42 +08:00
|
|
|
flags, info->flags);
|
2009-12-22 04:36:32 +08:00
|
|
|
|
|
|
|
if (getenv("VIR_TEST_DEBUG"))
|
|
|
|
printMismatchedFlags(flags, info->flags);
|
|
|
|
|
2011-01-14 00:09:15 +08:00
|
|
|
goto cleanup;
|
2009-06-11 22:17:42 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
if (version != info->version) {
|
|
|
|
fprintf(stderr, "Parsed versions do not match: got %u, expected %u\n",
|
|
|
|
version, info->version);
|
2011-01-14 00:09:15 +08:00
|
|
|
goto cleanup;
|
2009-06-11 22:17:42 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
if (is_kvm != info->is_kvm) {
|
2011-01-14 00:09:15 +08:00
|
|
|
fprintf(stderr,
|
|
|
|
"Parsed is_kvm flag does not match: got %u, expected %u\n",
|
2009-06-11 22:17:42 +08:00
|
|
|
is_kvm, info->is_kvm);
|
2011-01-14 00:09:15 +08:00
|
|
|
goto cleanup;
|
2009-06-11 22:17:42 +08:00
|
|
|
}
|
|
|
|
|
2009-12-22 04:36:32 +08:00
|
|
|
if (kvm_version != info->kvm_version) {
|
2011-01-14 00:09:15 +08:00
|
|
|
fprintf(stderr,
|
|
|
|
"Parsed KVM versions do not match: got %u, expected %u\n",
|
2009-12-22 04:36:32 +08:00
|
|
|
kvm_version, info->kvm_version);
|
2011-01-14 00:09:15 +08:00
|
|
|
goto cleanup;
|
2009-06-11 22:17:42 +08:00
|
|
|
}
|
|
|
|
|
2011-01-14 00:09:15 +08:00
|
|
|
ret = 0;
|
|
|
|
cleanup:
|
|
|
|
VIR_FREE(path);
|
|
|
|
return ret;
|
2009-06-11 22:17:42 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
static int
|
|
|
|
mymain(int argc, char **argv)
|
|
|
|
{
|
|
|
|
int ret = 0;
|
|
|
|
char cwd[PATH_MAX];
|
|
|
|
|
|
|
|
progname = argv[0];
|
|
|
|
|
|
|
|
if (argc > 1) {
|
|
|
|
fprintf(stderr, "Usage: %s\n", progname);
|
|
|
|
return (EXIT_FAILURE);
|
|
|
|
}
|
|
|
|
|
|
|
|
abs_srcdir = getenv("abs_srcdir");
|
|
|
|
if (!abs_srcdir)
|
|
|
|
abs_srcdir = getcwd(cwd, sizeof(cwd));
|
|
|
|
|
2010-03-10 02:22:22 +08:00
|
|
|
# define DO_TEST(name, flags, version, is_kvm, kvm_version) \
|
2009-06-11 22:17:42 +08:00
|
|
|
do { \
|
|
|
|
const struct testInfo info = { name, flags, version, is_kvm, kvm_version }; \
|
|
|
|
if (virtTestRun("QEMU Help String Parsing " name, \
|
|
|
|
1, testHelpStrParsing, &info) < 0) \
|
|
|
|
ret = -1; \
|
|
|
|
} while (0)
|
|
|
|
|
2009-07-06 21:59:19 +08:00
|
|
|
DO_TEST("qemu-0.9.1",
|
2011-02-07 22:54:08 +08:00
|
|
|
QEMU_CAPS_KQEMU |
|
|
|
|
QEMU_CAPS_VNC_COLON |
|
|
|
|
QEMU_CAPS_NO_REBOOT |
|
|
|
|
QEMU_CAPS_DRIVE |
|
|
|
|
QEMU_CAPS_NAME,
|
2009-07-06 21:59:19 +08:00
|
|
|
9001, 0, 0);
|
|
|
|
DO_TEST("kvm-74",
|
2011-02-07 22:54:08 +08:00
|
|
|
QEMU_CAPS_VNC_COLON |
|
|
|
|
QEMU_CAPS_NO_REBOOT |
|
|
|
|
QEMU_CAPS_DRIVE |
|
|
|
|
QEMU_CAPS_DRIVE_BOOT |
|
|
|
|
QEMU_CAPS_NAME |
|
|
|
|
QEMU_CAPS_VNET_HDR |
|
|
|
|
QEMU_CAPS_MIGRATE_KVM_STDIO |
|
|
|
|
QEMU_CAPS_KVM |
|
|
|
|
QEMU_CAPS_DRIVE_FORMAT |
|
|
|
|
QEMU_CAPS_MEM_PATH |
|
|
|
|
QEMU_CAPS_TDF,
|
2009-07-06 21:59:19 +08:00
|
|
|
9001, 1, 74);
|
2010-10-23 00:02:31 +08:00
|
|
|
DO_TEST("kvm-83-rhel56",
|
2011-02-07 22:54:08 +08:00
|
|
|
QEMU_CAPS_VNC_COLON |
|
|
|
|
QEMU_CAPS_NO_REBOOT |
|
|
|
|
QEMU_CAPS_DRIVE |
|
|
|
|
QEMU_CAPS_DRIVE_BOOT |
|
|
|
|
QEMU_CAPS_NAME |
|
|
|
|
QEMU_CAPS_UUID |
|
|
|
|
QEMU_CAPS_VNET_HDR |
|
|
|
|
QEMU_CAPS_MIGRATE_QEMU_TCP |
|
|
|
|
QEMU_CAPS_MIGRATE_QEMU_EXEC |
|
|
|
|
QEMU_CAPS_DRIVE_CACHE_V2 |
|
|
|
|
QEMU_CAPS_KVM |
|
|
|
|
QEMU_CAPS_DRIVE_FORMAT |
|
|
|
|
QEMU_CAPS_DRIVE_SERIAL |
|
|
|
|
QEMU_CAPS_VGA |
|
|
|
|
QEMU_CAPS_PCIDEVICE |
|
|
|
|
QEMU_CAPS_MEM_PATH |
|
|
|
|
QEMU_CAPS_BALLOON |
|
|
|
|
QEMU_CAPS_RTC_TD_HACK |
|
|
|
|
QEMU_CAPS_NO_HPET |
|
|
|
|
QEMU_CAPS_NO_KVM_PIT |
|
|
|
|
QEMU_CAPS_TDF |
|
|
|
|
QEMU_CAPS_DRIVE_READONLY |
|
|
|
|
QEMU_CAPS_SMBIOS_TYPE |
|
|
|
|
QEMU_CAPS_SPICE,
|
2010-10-23 00:02:31 +08:00
|
|
|
9001, 1, 83);
|
2009-07-06 21:59:19 +08:00
|
|
|
DO_TEST("qemu-0.10.5",
|
2011-02-07 22:54:08 +08:00
|
|
|
QEMU_CAPS_KQEMU |
|
|
|
|
QEMU_CAPS_VNC_COLON |
|
|
|
|
QEMU_CAPS_NO_REBOOT |
|
|
|
|
QEMU_CAPS_DRIVE |
|
|
|
|
QEMU_CAPS_NAME |
|
|
|
|
QEMU_CAPS_UUID |
|
|
|
|
QEMU_CAPS_MIGRATE_QEMU_TCP |
|
|
|
|
QEMU_CAPS_MIGRATE_QEM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ONE,
|
2009-07-06 21:59:19 +08:00
|
|
|
10005, 1, 0);
|
|
|
|
DO_TEST("kvm-86",
|
2011-02-07 22:54:08 +08:00
|
|
|
QEMU_CAPS_VNC_COLON |
|
|
|
|
QEMU_CAPS_NO_REBOOT |
|
|
|
|
QEMU_CAPS_DRIVE |
|
|
|
|
QEMU_CAPS_DRIVE_BOOT |
|
|
|
|
QEMU_CAPS_NAME |
|
|
|
|
QEMU_CAPS_UUID |
|
|
|
|
QEMU_CAPS_VNET_HDR |
|
|
|
|
QEMU_CAPS_MIGRATE_QEMU_TCP |
|
|
|
|
QEMU_CAPS_MIGRATE_QEMU_EXEC |
|
|
|
|
QEMU_CAPS_DRIVE_CACHE_V2 |
|
|
|
|
QEMU_CAPS_KVM |
|
|
|
|
QEMU_CAPS_DRIVE_FORMAT |
|
|
|
|
QEMU_CAPS_DRIVE_SERIAL |
|
|
|
|
QEMU_CAPS_VGA |
|
|
|
|
QEMU_CAPS_0_10 |
|
|
|
|
QEMU_CAPS_PCIDEVICE |
|
|
|
|
QEMU_CAPS_SDL |
|
|
|
|
QEMU_CAPS_RTC_TD_HACK |
|
|
|
|
QEMU_CAPS_NO_HPET |
|
|
|
|
QEMU_CAPS_NO_KVM_PIT |
|
|
|
|
QEMU_CAPS_TDF |
|
|
|
|
QEMU_CAPS_NESTING |
|
|
|
|
QEMU_CAPS_SMBIOS_TYPE |
|
|
|
|
QEMU_CAPS_VGA_NONE,
|
2009-07-06 21:59:19 +08:00
|
|
|
10050, 1, 0);
|
2009-09-10 16:36:13 +08:00
|
|
|
DO_TEST("qemu-kvm-0.11.0-rc2",
|
2011-02-07 22:54:08 +08:00
|
|
|
QEMU_CAPS_VNC_COLON |
|
|
|
|
QEMU_CAPS_NO_REBOOT |
|
|
|
|
QEMU_CAPS_DRIVE |
|
|
|
|
QEMU_CAPS_DRIVE_BOOT |
|
|
|
|
QEMU_CAPS_NAME |
|
|
|
|
QEMU_CAPS_UUID |
|
|
|
|
QEMU_CAPS_VN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_READONLY |
|
|
|
|
QEMU_CAPS_VGA |
|
|
|
|
QEMU_CAPS_0_10 |
|
|
|
|
QEMU_CAPS_PCIDEVICE |
|
|
|
|
QEMU_CAPS_MEM_PATH |
|
|
|
|
QEMU_CAPS_MIGRATE_QEMU_UNIX |
|
|
|
|
QEMU_CAPS_CHARDEV |
|
|
|
|
QEMU_CAPS_ENABLE_KVM |
|
|
|
|
QEMU_CAPS_BALLOON |
|
|
|
|
QEMU_CAPS_DEVICE |
|
|
|
|
QEMU_CAPS_SMP_TOPOLOGY |
|
|
|
|
QEMU_CAPS_RTC |
|
|
|
|
QEMU_CAPS_VNET_HOST |
|
|
|
|
QEMU_CAPS_NO_KVM_PIT |
|
|
|
|
QEMU_CAPS_TDF |
|
|
|
|
QEMU_CAPS_PCI_CONFIGFD |
|
|
|
|
QEMU_CAPS_NODEFCONFIG |
|
|
|
|
QEMU_CAPS_BOOT_MENU |
|
|
|
|
QEMU_CAPS_NESTING |
|
|
|
|
QEMU_CAPS_NAME_PROCESS |
|
|
|
|
QEMU_CAPS_SMBIOS_TYPE |
|
|
|
|
QEMU_CAPS_VGA_QXL |
|
|
|
|
QEMU_CAPS_SPICE |
|
|
|
|
QEMU_CAPS_VGA_NONE |
|
|
|
|
QEMU_CAPS_MIGRATE_QEMU_FD |
|
|
|
|
QEMU_CAPS_DRIVE_AIO |
|
|
|
|
QEMU_CAPS_DEVICE_SPICEVMC,
|
2010-12-09 00:29:54 +08:00
|
|
|
12001, 1, 0);
|
2010-05-13 11:07:00 +08:00
|
|
|
DO_TEST("qemu-kvm-0.12.3",
|
2011-02-07 22:54:08 +08:00
|
|
|
QEMU_CAPS_VNC_COLON |
|
|
|
|
QEMU_CAPS_NO_REBOOT |
|
|
|
|
QEMU_CAPS_DRIVE |
|
|
|
|
QEMU_CAPS_DRIVE_BOOT |
|
|
|
|
QEMU_CAPS_NAME |
|
|
|
|
QEMU_CAPS_UUID |
|
|
|
|
QEMU_CAPS_VNET_HDR |
|
|
|
|
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U_CAPS_NODEFCONFIG |
|
|
|
|
QEMU_CAPS_BOOT_MENU |
|
|
|
|
QEMU_CAPS_NESTING |
|
|
|
|
QEMU_CAPS_NAME_PROCESS |
|
|
|
|
QEMU_CAPS_SMBIOS_TYPE |
|
|
|
|
QEMU_CAPS_VGA_QXL |
|
|
|
|
QEMU_CAPS_SPICE |
|
|
|
|
QEMU_CAPS_VGA_NONE |
|
|
|
|
QEMU_CAPS_MIGRATE_QEMU_FD |
|
|
|
|
QEMU_CAPS_HDA_DUPLEX |
|
|
|
|
QEMU_CAPS_DRIVE_AIO |
|
|
|
|
QEMU_CAPS_CCID_PASSTHRU |
|
|
|
|
QEMU_CAPS_CHARDEV_SPICEVMC |
|
|
|
|
QEMU_CAPS_VIRTIO_TX_ALG,
|
2011-01-13 23:54:33 +08:00
|
|
|
12001, 1, 0);
|
2009-06-11 22:17:42 +08:00
|
|
|
|
|
|
|
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
|
|
|
|
}
|
|
|
|
|
|
|
|
VIRT_TEST_MAIN(mymain)
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
int main (void) { return (77); /* means 'test skipped' for automake */ }
|
|
|
|
|
|
|
|
#endif /* WITH_QEMU */
|