|
@@ -661,6 +661,15 @@ static void qtest_process_command(CharBackend *chr, gchar **words)
|
|
qtest_send_prefix(chr);
|
|
qtest_send_prefix(chr);
|
|
qtest_sendf(chr, "OK %"PRIi64"\n",
|
|
qtest_sendf(chr, "OK %"PRIi64"\n",
|
|
(int64_t)qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL));
|
|
(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) {
|
|
} else if (qtest_enabled() && strcmp(words[0], "clock_set") == 0) {
|
|
int64_t ns;
|
|
int64_t ns;
|
|
int ret;
|
|
int ret;
|