mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-28 04:43:54 -06:00

Move the remaining tests into a misc-tests.c file. These tests are mostly about validation of input and should be in the future replaced by unit testing. Reviewed-by: Peter Xu <peterx@redhat.com> Signed-off-by: Fabiano Rosas <farosas@suse.de>
41 lines
971 B
C
41 lines
971 B
C
/*
|
|
* QTest testcase for migration
|
|
*
|
|
* Copyright (c) 2016-2018 Red Hat, Inc. and/or its affiliates
|
|
* based on the vhost-user-test.c that is:
|
|
* Copyright (c) 2014 Virtual Open Systems Sarl.
|
|
*
|
|
* This work is licensed under the terms of the GNU GPL, version 2 or later.
|
|
* See the COPYING file in the top-level directory.
|
|
*
|
|
*/
|
|
|
|
#include "qemu/osdep.h"
|
|
#include "migration/framework.h"
|
|
#include "qemu/module.h"
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
MigrationTestEnv *env;
|
|
int ret;
|
|
|
|
g_test_init(&argc, &argv, NULL);
|
|
env = migration_get_env();
|
|
module_call_init(MODULE_INIT_QOM);
|
|
|
|
migration_test_add_tls(env);
|
|
migration_test_add_compression(env);
|
|
migration_test_add_postcopy(env);
|
|
migration_test_add_file(env);
|
|
migration_test_add_precopy(env);
|
|
migration_test_add_cpr(env);
|
|
migration_test_add_misc(env);
|
|
|
|
ret = g_test_run();
|
|
|
|
g_assert_cmpint(ret, ==, 0);
|
|
|
|
ret = migration_env_clean(env);
|
|
|
|
return ret;
|
|
}
|