summary refs log tree commit diff stats
path: root/tests/qtest/migration/postcopy-tests.c
diff options
context:
space:
mode:
authorFabiano Rosas <farosas@suse.de>2025-02-07 15:31:04 +0000
committerAlex Bennée <alex.bennee@linaro.org>2025-02-10 13:47:58 +0000
commit43ab3fb375ebb55c5b2ee7b88945f1466e7e2d5f (patch)
tree11834bb3829ce5303e246c14c3e858bfb7dc679a /tests/qtest/migration/postcopy-tests.c
parentbc2a1f1a45eb9d52d0e22fea93589bab1a6e95be (diff)
downloadfocaccia-qemu-43ab3fb375ebb55c5b2ee7b88945f1466e7e2d5f.tar.gz
focaccia-qemu-43ab3fb375ebb55c5b2ee7b88945f1466e7e2d5f.zip
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>
Diffstat (limited to 'tests/qtest/migration/postcopy-tests.c')
-rw-r--r--tests/qtest/migration/postcopy-tests.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/tests/qtest/migration/postcopy-tests.c b/tests/qtest/migration/postcopy-tests.c
index b08cde3270..7e84e60fea 100644
--- a/tests/qtest/migration/postcopy-tests.c
+++ b/tests/qtest/migration/postcopy-tests.c
@@ -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);