mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-17 14:17:21 +00:00

Tests for parsing and writing VM configuration files. The parsing part is already covered by the config2command test too, but that only focuses on the main section, not other section types and does not also test parsing in strict mode. Signed-off-by: Fiona Ebner <f.ebner@proxmox.com> Link: https://lore.proxmox.com/20250127112923.31703-4-f.ebner@proxmox.com
34 lines
1.1 KiB
Makefile
34 lines
1.1 KiB
Makefile
all: test
|
|
|
|
test: test_snapshot test_cfg_to_cmd test_pci_addr_conflicts test_qemu_img_convert test_migration test_restore_config test_parse_config
|
|
|
|
test_snapshot: run_snapshot_tests.pl
|
|
./run_snapshot_tests.pl
|
|
./test_get_replicatable_volumes.pl
|
|
|
|
test_cfg_to_cmd: run_config2command_tests.pl cfg2cmd/*.conf
|
|
perl -I../ ./run_config2command_tests.pl
|
|
|
|
test_qemu_img_convert: run_qemu_img_convert_tests.pl
|
|
perl -I../ ./run_qemu_img_convert_tests.pl
|
|
|
|
test_pci_addr_conflicts: run_pci_addr_checks.pl
|
|
./run_pci_addr_checks.pl
|
|
|
|
MIGRATION_TEST_TARGETS := $(addprefix test_migration_,$(shell perl -ne 'print "$$1 " if /^\s*name\s*=>\s*["'\'']([^\s"'\'']+)["'\'']\s*,\s*$$/; END { print "\n" }' run_qemu_migrate_tests.pl))
|
|
|
|
test_migration: run_qemu_migrate_tests.pl MigrationTest/*.pm $(MIGRATION_TEST_TARGETS)
|
|
|
|
$(MIGRATION_TEST_TARGETS):
|
|
./run_qemu_migrate_tests.pl $(@:test_migration_%=%)
|
|
|
|
test_restore_config: run_qemu_restore_config_tests.pl
|
|
./run_qemu_restore_config_tests.pl
|
|
|
|
test_parse_config: run_parse_config_tests.pl
|
|
./run_parse_config_tests.pl
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -rf MigrationTest/run parse-config-output
|