X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=qtest.c;h=8b50e2783ee0dde871ecd944340b6a5115902d60;hb=9985e1f48db7449421dafdc22d275551072f0a06;hp=d8b4857c743bfa698b0d795dce0de1215a1089cd;hpb=dcb1578069dd072f9aec74e3024cadb9ed0f3aae;p=mirror_qemu.git diff --git a/qtest.c b/qtest.c index d8b4857c74..8b50e2783e 100644 --- a/qtest.c +++ b/qtest.c @@ -661,6 +661,15 @@ static void qtest_process_command(CharBackend *chr, gchar **words) qtest_send_prefix(chr); qtest_sendf(chr, "OK %"PRIi64"\n", (int64_t)qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL)); + } else if (strcmp(words[0], "module_load") == 0) { + g_assert(words[1] && words[2]); + + qtest_send_prefix(chr); + if (module_load_one(words[1], words[2])) { + qtest_sendf(chr, "OK\n"); + } else { + qtest_sendf(chr, "FAIL\n"); + } } else if (qtest_enabled() && strcmp(words[0], "clock_set") == 0) { int64_t ns; int ret;