mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2025-01-22 22:03:55 +03:00
0494299f57
It's not easily possible to use separate JSON files for the test configuration, because part of it is generated with perl code. While this could be encoded too, it seems cleaner to use the "run a single test by specifing the name" functionality while adding a way for make to obtain a list of the test names. Each test has (and needs) its own directory now, meaning the log files do not need to be renamed anymore. Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
28 lines
861 B
Makefile
28 lines
861 B
Makefile
MIGRATION_TEST_NAMES := $(shell ./run_qemu_migrate_tests.pl DUMP_NAMES)
|
|
MIGRATION_TEST_TARGETS := $(addprefix test_migration_,$(MIGRATION_TEST_NAMES))
|
|
|
|
all: test
|
|
|
|
test: test_snapshot test_ovf test_cfg_to_cmd test_pci_addr_conflicts test_qemu_img_convert test_migration
|
|
|
|
test_snapshot: run_snapshot_tests.pl
|
|
./run_snapshot_tests.pl
|
|
./test_get_replicatable_volumes.pl
|
|
|
|
test_ovf: run_ovf_tests.pl
|
|
./run_ovf_tests.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
|
|
|
|
test_migration: run_qemu_migrate_tests.pl MigrationTest/*.pm $(MIGRATION_TEST_TARGETS)
|
|
|
|
$(MIGRATION_TEST_TARGETS):
|
|
./run_qemu_migrate_tests.pl $(@:test_migration_%=%)
|