1
2
3
4
5
6
7
8
9
10
11
12
13#ifndef MIGRATION_HELPERS_H
14#define MIGRATION_HELPERS_H
15
16#include "libqtest.h"
17
18extern bool got_stop;
19
20G_GNUC_PRINTF(3, 4)
21QDict *wait_command_fd(QTestState *who, int fd, const char *command, ...);
22
23G_GNUC_PRINTF(2, 3)
24QDict *wait_command(QTestState *who, const char *command, ...);
25
26QDict *qmp_command(QTestState *who, const char *command, ...);
27
28G_GNUC_PRINTF(3, 4)
29void migrate_qmp(QTestState *who, const char *uri, const char *fmt, ...);
30
31QDict *migrate_query(QTestState *who);
32QDict *migrate_query_not_failed(QTestState *who);
33
34void wait_for_migration_status(QTestState *who,
35 const char *goal, const char **ungoals);
36
37void wait_for_migration_complete(QTestState *who);
38
39void wait_for_migration_fail(QTestState *from, bool allow_active);
40
41#endif
42