On 01.12.20 13:06, Fabian Ebner wrote: > Refactor some code and create a test enviroment for migration. See the last > patch for a description of the latter. > > The first two patches depend on libpve-guest-common-perl >=3.1-3 > > Changes from v2: > * drop already applied patch introducing move_config_to_node helper > * rebase on current master and verify tests still behave the same > way (they did, but it's not surprising as QemuMigrate.pm didn't > change much since v2 was sent). > * add a patch to sort volumes migrated with storage_migrate and adapt > affected test > > > container: > > Fabian Ebner (1): > use new move_config_to_node method > > src/PVE/LXC/Migrate.pm | 12 ++---------- > 1 file changed, 2 insertions(+), 10 deletions(-) > > > qemu-server: > > Fabian Ebner (4): > use new move_config_to_node method > migration: factor out starting remote tunnel > migration: sort volumes migrated with storage_migrate > create test environment for migration > > PVE/QemuMigrate.pm | 130 +- > test/Makefile | 5 +- > test/MigrationTest/QemuMigrateMock.pm | 319 +++++ > test/MigrationTest/QmMock.pm | 142 +++ > test/MigrationTest/Shared.pm | 170 +++ > test/run_qemu_migrate_tests.pl | 1594 +++++++++++++++++++++++++ > 6 files changed, 2295 insertions(+), 65 deletions(-) > create mode 100644 test/MigrationTest/QemuMigrateMock.pm > create mode 100644 test/MigrationTest/QmMock.pm > create mode 100644 test/MigrationTest/Shared.pm > create mode 100755 test/run_qemu_migrate_tests.pl >
applied series, thanks! The tests for qemu add ~ 36s of build time, which is rather much for that package. Can you look into this, maybe we can move the tests to single .json file snippets and do them in parallel through the make buildsystem. _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel