mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
tests/qtest/migration: Pick smoke tests
Choose a few tests per group and move them from the full set to the smoke set. Signed-off-by: Fabiano Rosas <farosas@suse.de> Reviewed-by: Peter Xu <peterx@redhat.com> Message-Id: <20250130184012.5711-3-farosas@suse.de> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20250207153112.3939799-10-alex.bennee@linaro.org>
This commit is contained in:
parent
bc2a1f1a45
commit
43ab3fb375
8 changed files with 67 additions and 31 deletions
|
@ -46,7 +46,6 @@ int main(int argc, char **argv)
|
|||
g_test_init(&argc, &argv, NULL);
|
||||
env = migration_get_env();
|
||||
env->full_set = full_set;
|
||||
env->full_set = true; /* temporary */
|
||||
module_call_init(MODULE_INIT_QOM);
|
||||
|
||||
migration_test_add_tls(env);
|
||||
|
|
|
@ -151,10 +151,18 @@ static void test_multifd_tcp_zlib(void)
|
|||
test_precopy_common(&args);
|
||||
}
|
||||
|
||||
static void migration_test_add_compression_smoke(MigrationTestEnv *env)
|
||||
{
|
||||
migration_test_add("/migration/multifd/tcp/plain/zlib",
|
||||
test_multifd_tcp_zlib);
|
||||
}
|
||||
|
||||
void migration_test_add_compression(MigrationTestEnv *env)
|
||||
{
|
||||
tmpfs = env->tmpfs;
|
||||
|
||||
migration_test_add_compression_smoke(env);
|
||||
|
||||
if (!env->full_set) {
|
||||
return;
|
||||
}
|
||||
|
@ -183,7 +191,4 @@ void migration_test_add_compression(MigrationTestEnv *env)
|
|||
migration_test_add("/migration/precopy/unix/xbzrle",
|
||||
test_precopy_unix_xbzrle);
|
||||
}
|
||||
|
||||
migration_test_add("/migration/multifd/tcp/plain/zlib",
|
||||
test_multifd_tcp_zlib);
|
||||
}
|
||||
|
|
|
@ -104,6 +104,8 @@ void migration_test_add_cpr(MigrationTestEnv *env)
|
|||
{
|
||||
tmpfs = env->tmpfs;
|
||||
|
||||
/* no tests in the smoke set for now */
|
||||
|
||||
if (!env->full_set) {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -300,17 +300,25 @@ static void test_multifd_file_mapped_ram_fdset_dio(void)
|
|||
}
|
||||
#endif /* !_WIN32 */
|
||||
|
||||
static void migration_test_add_file_smoke(MigrationTestEnv *env)
|
||||
{
|
||||
migration_test_add("/migration/precopy/file",
|
||||
test_precopy_file);
|
||||
|
||||
migration_test_add("/migration/multifd/file/mapped-ram/dio",
|
||||
test_multifd_file_mapped_ram_dio);
|
||||
}
|
||||
|
||||
void migration_test_add_file(MigrationTestEnv *env)
|
||||
{
|
||||
tmpfs = env->tmpfs;
|
||||
|
||||
migration_test_add_file_smoke(env);
|
||||
|
||||
if (!env->full_set) {
|
||||
return;
|
||||
}
|
||||
|
||||
migration_test_add("/migration/precopy/file",
|
||||
test_precopy_file);
|
||||
|
||||
migration_test_add("/migration/precopy/file/offset",
|
||||
test_precopy_file_offset);
|
||||
#ifndef _WIN32
|
||||
|
@ -330,9 +338,6 @@ void migration_test_add_file(MigrationTestEnv *env)
|
|||
migration_test_add("/migration/multifd/file/mapped-ram/live",
|
||||
test_multifd_file_mapped_ram_live);
|
||||
|
||||
migration_test_add("/migration/multifd/file/mapped-ram/dio",
|
||||
test_multifd_file_mapped_ram_dio);
|
||||
|
||||
#ifndef _WIN32
|
||||
migration_test_add("/migration/multifd/file/mapped-ram/fdset",
|
||||
test_multifd_file_mapped_ram_fdset);
|
||||
|
|
|
@ -258,18 +258,24 @@ static void test_validate_uri_channels_none_set(void)
|
|||
do_test_validate_uri_channel(&args);
|
||||
}
|
||||
|
||||
static void migration_test_add_misc_smoke(MigrationTestEnv *env)
|
||||
{
|
||||
#ifndef _WIN32
|
||||
migration_test_add("/migration/analyze-script", test_analyze_script);
|
||||
#endif
|
||||
}
|
||||
|
||||
void migration_test_add_misc(MigrationTestEnv *env)
|
||||
{
|
||||
tmpfs = env->tmpfs;
|
||||
|
||||
migration_test_add_misc_smoke(env);
|
||||
|
||||
if (!env->full_set) {
|
||||
return;
|
||||
}
|
||||
|
||||
migration_test_add("/migration/bad_dest", test_baddest);
|
||||
#ifndef _WIN32
|
||||
migration_test_add("/migration/analyze-script", test_analyze_script);
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Our CI system has problems with shared memory.
|
||||
|
|
|
@ -79,18 +79,26 @@ static void test_postcopy_preempt_recovery(void)
|
|||
test_postcopy_recovery_common(&args);
|
||||
}
|
||||
|
||||
void migration_test_add_postcopy(MigrationTestEnv *env)
|
||||
static void migration_test_add_postcopy_smoke(MigrationTestEnv *env)
|
||||
{
|
||||
if (!env->full_set) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (env->has_uffd) {
|
||||
migration_test_add("/migration/postcopy/plain", test_postcopy);
|
||||
migration_test_add("/migration/postcopy/recovery/plain",
|
||||
test_postcopy_recovery);
|
||||
migration_test_add("/migration/postcopy/preempt/plain",
|
||||
test_postcopy_preempt);
|
||||
}
|
||||
}
|
||||
|
||||
void migration_test_add_postcopy(MigrationTestEnv *env)
|
||||
{
|
||||
migration_test_add_postcopy_smoke(env);
|
||||
|
||||
if (!env->full_set) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (env->has_uffd) {
|
||||
migration_test_add("/migration/postcopy/preempt/recovery/plain",
|
||||
test_postcopy_preempt_recovery);
|
||||
|
||||
|
|
|
@ -951,14 +951,8 @@ static void test_dirty_limit(void)
|
|||
migrate_end(from, to, true);
|
||||
}
|
||||
|
||||
void migration_test_add_precopy(MigrationTestEnv *env)
|
||||
static void migration_test_add_precopy_smoke(MigrationTestEnv *env)
|
||||
{
|
||||
tmpfs = env->tmpfs;
|
||||
|
||||
if (!env->full_set) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (env->is_x86) {
|
||||
migration_test_add("/migration/precopy/unix/suspend/live",
|
||||
test_precopy_unix_suspend_live);
|
||||
|
@ -970,6 +964,21 @@ void migration_test_add_precopy(MigrationTestEnv *env)
|
|||
test_precopy_unix_plain);
|
||||
|
||||
migration_test_add("/migration/precopy/tcp/plain", test_precopy_tcp_plain);
|
||||
migration_test_add("/migration/multifd/tcp/uri/plain/none",
|
||||
test_multifd_tcp_uri_none);
|
||||
migration_test_add("/migration/multifd/tcp/plain/cancel",
|
||||
test_multifd_tcp_cancel);
|
||||
}
|
||||
|
||||
void migration_test_add_precopy(MigrationTestEnv *env)
|
||||
{
|
||||
tmpfs = env->tmpfs;
|
||||
|
||||
migration_test_add_precopy_smoke(env);
|
||||
|
||||
if (!env->full_set) {
|
||||
return;
|
||||
}
|
||||
|
||||
migration_test_add("/migration/precopy/tcp/plain/switchover-ack",
|
||||
test_precopy_tcp_switchover_ack);
|
||||
|
@ -993,16 +1002,12 @@ void migration_test_add_precopy(MigrationTestEnv *env)
|
|||
test_dirty_limit);
|
||||
}
|
||||
}
|
||||
migration_test_add("/migration/multifd/tcp/uri/plain/none",
|
||||
test_multifd_tcp_uri_none);
|
||||
migration_test_add("/migration/multifd/tcp/channels/plain/none",
|
||||
test_multifd_tcp_channels_none);
|
||||
migration_test_add("/migration/multifd/tcp/plain/zero-page/legacy",
|
||||
test_multifd_tcp_zero_page_legacy);
|
||||
migration_test_add("/migration/multifd/tcp/plain/zero-page/none",
|
||||
test_multifd_tcp_no_zero_page);
|
||||
migration_test_add("/migration/multifd/tcp/plain/cancel",
|
||||
test_multifd_tcp_cancel);
|
||||
if (g_str_equal(env->arch, "x86_64")
|
||||
&& env->has_kvm && env->has_dirty_ring) {
|
||||
|
||||
|
|
|
@ -722,10 +722,18 @@ static void test_multifd_tcp_tls_x509_reject_anon_client(void)
|
|||
}
|
||||
#endif /* CONFIG_TASN1 */
|
||||
|
||||
static void migration_test_add_tls_smoke(MigrationTestEnv *env)
|
||||
{
|
||||
migration_test_add("/migration/precopy/tcp/tls/psk/match",
|
||||
test_precopy_tcp_tls_psk_match);
|
||||
}
|
||||
|
||||
void migration_test_add_tls(MigrationTestEnv *env)
|
||||
{
|
||||
tmpfs = env->tmpfs;
|
||||
|
||||
migration_test_add_tls_smoke(env);
|
||||
|
||||
if (!env->full_set) {
|
||||
return;
|
||||
}
|
||||
|
@ -755,8 +763,6 @@ void migration_test_add_tls(MigrationTestEnv *env)
|
|||
test_precopy_unix_tls_x509_override_host);
|
||||
#endif /* CONFIG_TASN1 */
|
||||
|
||||
migration_test_add("/migration/precopy/tcp/tls/psk/match",
|
||||
test_precopy_tcp_tls_psk_match);
|
||||
migration_test_add("/migration/precopy/tcp/tls/psk/mismatch",
|
||||
test_precopy_tcp_tls_psk_mismatch);
|
||||
#ifdef CONFIG_TASN1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue