[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 21/22] tests/qtest/migration-test: Fix and enable test_ignore_shar
From: |
Fabiano Rosas |
Subject: |
[PULL 21/22] tests/qtest/migration-test: Fix and enable test_ignore_shared |
Date: |
Thu, 12 Dec 2024 12:09:48 -0300 |
From: Nicholas Piggin <npiggin@gmail.com>
This test is already starting to bitrot, so first remove it from ifdef
and fix compile issues. ppc64 transfers about 2MB, so bump the size
threshold too.
It was said to be broken on aarch64 but it may have been due to the
limited shm size under Gitlab CI.
Cc: Yury Kotov <yury-kotov@yandex-team.ru>
Cc: Dr. David Alan Gilbert <dave@treblig.org>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Dr. David Alan Gilbert <dave@treblig.org>
[put it under flaky tests, we still don't have a solution for the CI]
Signed-off-by: Fabiano Rosas <farosas@suse.de>
---
tests/qtest/migration-test.c | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)
diff --git a/tests/qtest/migration-test.c b/tests/qtest/migration-test.c
index 0d1c8154d7..4b366a94a2 100644
--- a/tests/qtest/migration-test.c
+++ b/tests/qtest/migration-test.c
@@ -107,14 +107,15 @@ static void test_analyze_script(void)
}
#endif
-#if 0
-/* Currently upset on aarch64 TCG */
static void test_ignore_shared(void)
{
g_autofree char *uri = g_strdup_printf("unix:%s/migsocket", tmpfs);
QTestState *from, *to;
+ MigrateStart args = {
+ .use_shmem = true,
+ };
- if (migrate_start(&from, &to, uri, false, true, NULL, NULL)) {
+ if (migrate_start(&from, &to, uri, &args)) {
return;
}
@@ -139,11 +140,11 @@ static void test_ignore_shared(void)
wait_for_migration_complete(from);
/* Check whether shared RAM has been really skipped */
- g_assert_cmpint(read_ram_property_int(from, "transferred"), <, 1024 *
1024);
+ g_assert_cmpint(
+ read_ram_property_int(from, "transferred"), <, 4 * 1024 * 1024);
migrate_end(from, to, true);
}
-#endif
static void do_test_validate_uuid(MigrateStart *args, bool should_fail)
{
@@ -290,7 +291,13 @@ int main(int argc, char **argv)
migration_test_add("/migration/analyze-script", test_analyze_script);
#endif
- /* migration_test_add("/migration/ignore_shared", test_ignore_shared); */
+ /*
+ * Our CI system has problems with shared memory.
+ * Don't run this test until we find a workaround.
+ */
+ if (getenv("QEMU_TEST_FLAKY_TESTS")) {
+ migration_test_add("/migration/ignore-shared", test_ignore_shared);
+ }
migration_test_add("/migration/validate_uuid", test_validate_uuid);
migration_test_add("/migration/validate_uuid_error",
--
2.35.3
- [PULL 07/22] tests/migration: Disambiguate guestperf vs. a-b, (continued)
- [PULL 07/22] tests/migration: Disambiguate guestperf vs. a-b, Fabiano Rosas, 2024/12/12
- [PULL 08/22] tests/qtest/migration: Move bootfile code to its own file, Fabiano Rosas, 2024/12/12
- [PULL 09/22] tests/qtest/migration: Move qmp helpers to a separate file, Fabiano Rosas, 2024/12/12
- [PULL 10/22] tests/qtest/migration: Rename migration-helpers.c, Fabiano Rosas, 2024/12/12
- [PULL 11/22] tests/qtest/migration: Move ufd_version_check to utils, Fabiano Rosas, 2024/12/12
- [PULL 12/22] tests/qtest/migration: Move kvm_dirty_ring_supported to utils, Fabiano Rosas, 2024/12/12
- [PULL 13/22] tests/qtest/migration: Isolate test initialization, Fabiano Rosas, 2024/12/12
- [PULL 15/22] tests/qtest/migration: Split TLS tests from migration-test.c, Fabiano Rosas, 2024/12/12
- [PULL 17/22] tests/qtest/migration: Split postcopy tests, Fabiano Rosas, 2024/12/12
- [PULL 20/22] tests/qtest/migration: Split CPR tests, Fabiano Rosas, 2024/12/12
- [PULL 21/22] tests/qtest/migration-test: Fix and enable test_ignore_shared,
Fabiano Rosas <=
- [PULL 14/22] tests/qtest/migration: Move common test code, Fabiano Rosas, 2024/12/12
- [PULL 22/22] tests/qtest/migration: Split validation tests + misc, Fabiano Rosas, 2024/12/12
- [PULL 16/22] tests/qtest/migration: Split compression tests from migration-test.c, Fabiano Rosas, 2024/12/12
- [PULL 18/22] tests/qtest/migration: Split file tests, Fabiano Rosas, 2024/12/12
- [PULL 19/22] tests/qtest/migration: Split precopy tests, Fabiano Rosas, 2024/12/12
- Re: [PULL 00/22] QTest patches for 2024-12-12, Stefan Hajnoczi, 2024/12/12