1 // SPDX-License-Identifier: GPL-2.0-only 2 /* 3 * Machine independent migration tests 4 * 5 * This is just a very simple test that is intended to stress the migration 6 * support in the test harness. This could be expanded to test more guest 7 * library code, but architecture-specific tests should be used to test 8 * migration of tricky machine state. 9 */ 10 #include <libcflat.h> 11 #include <migrate.h> 12 13 #define NR_MIGRATIONS 30 14 15 int main(int argc, char **argv) 16 { 17 int i = 0; 18 19 report_prefix_push("migration"); 20 21 for (i = 0; i < NR_MIGRATIONS; i++) 22 migrate_quiet(); 23 24 report(true, "simple harness stress test"); 25 26 report_prefix_pop(); 27 28 return report_summary(); 29 } 30