[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 141/150] meson: convert check-block
From: |
Paolo Bonzini |
Subject: |
[PULL 141/150] meson: convert check-block |
Date: |
Tue, 18 Aug 2020 10:10:16 -0400 |
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
meson.build | 2 ++
tests/Makefile.include | 16 ++--------------
tests/meson.build | 4 ++++
tests/qemu-iotests/meson.build | 10 ++++++++++
4 files changed, 18 insertions(+), 14 deletions(-)
create mode 100644 tests/qemu-iotests/meson.build
diff --git a/meson.build b/meson.build
index f0d6396b62..817ff962b5 100644
--- a/meson.build
+++ b/meson.build
@@ -998,9 +998,11 @@ if have_tools
dependencies: [authz, block, crypto, io, qom, qemuutil], install:
true)
qemu_io = executable('qemu-io', files('qemu-io.c'),
dependencies: [block, qemuutil], install: true)
+ qemu_block_tools = [qemu_img, qemu_io]
if targetos == 'linux' or targetos == 'sunos' or targetos.endswith('bsd')
qemu_nbd = executable('qemu-nbd', files('qemu-nbd.c'),
dependencies: [block, qemuutil], install: true)
+ qemu_block_tools += [qemu_nbd]
endif
subdir('storage-daemon')
diff --git a/tests/Makefile.include b/tests/Makefile.include
index c3874cafd2..e023df817d 100644
--- a/tests/Makefile.include
+++ b/tests/Makefile.include
@@ -160,8 +160,6 @@ check-unit-y += tests/test-uuid$(EXESUF)
check-unit-y += tests/ptimer-test$(EXESUF)
check-unit-y += tests/test-qapi-util$(EXESUF)
-check-block-$(call land,$(CONFIG_POSIX),$(CONFIG_SOFTMMU)) +=
tests/check-block.sh
-
generated-files-y += tests/test-qapi-types.h
generated-files-y += tests/include/test-qapi-types-sub-module.h
generated-files-y += tests/test-qapi-types-sub-sub-module.h
@@ -480,14 +478,6 @@ check-tcg: $(RUN_TCG_TARGET_RULES)
clean-tcg: $(CLEAN_TCG_TARGET_RULES)
-QEMU_IOTESTS_HELPERS-$(call land,$(CONFIG_SOFTMMU),$(CONFIG_LINUX)) =
tests/qemu-iotests/socket_scm_helper$(EXESUF)
-
-.PHONY: check-tests/check-block.sh
-check-tests/check-block.sh: tests/check-block.sh qemu-img$(EXESUF) \
- qemu-io$(EXESUF) qemu-nbd$(EXESUF) $(QEMU_IOTESTS_HELPERS-y) \
- $(patsubst %-softmmu,qemu-system-%,$(filter
%-softmmu,$(TARGET_DIRS)))
- @$<
-
# Python venv for running tests
.PHONY: check-venv check-acceptance
@@ -541,13 +531,13 @@ check-acceptance: check-venv $(TESTS_RESULTS_DIR)
get-vm-images
# Consolidated targets
-.PHONY: check-block check-unit check check-clean get-vm-images
+.PHONY: check-unit check check-clean get-vm-images
ifeq ($(CONFIG_TOOLS),y)
check-block: $(patsubst %,check-%, $(check-block-y))
endif
check-build: build-unit
-check: check-block check-unit
+check: check-unit
check-clean:
rm -rf $(check-unit-y) tests/*.o tests/*/*.o $(QEMU_IOTESTS_HELPERS-y)
rm -f tests/test-qapi-gen-timestamp
@@ -559,8 +549,6 @@ clean: check-clean
# Build the help program automatically
-all: $(QEMU_IOTESTS_HELPERS-y)
-
-include $(wildcard tests/*.d)
endif
diff --git a/tests/meson.build b/tests/meson.build
index d724402cf4..f834c272e8 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -1,3 +1,7 @@
+if have_system and 'CONFIG_POSIX' in config_host
+ subdir('qemu-iotests')
+endif
+
test('decodetree', sh,
args: [ files('decode/check.sh'), config_host['PYTHON'],
files('../scripts/decodetree.py') ],
workdir: meson.current_source_dir() / 'decode',
diff --git a/tests/qemu-iotests/meson.build b/tests/qemu-iotests/meson.build
new file mode 100644
index 0000000000..3de09fb8fa
--- /dev/null
+++ b/tests/qemu-iotests/meson.build
@@ -0,0 +1,10 @@
+if 'CONFIG_LINUX' in config_host
+ socket_scm_helper = executable('socket_scm_helper', 'socket_scm_helper.c',
+ build_by_default: false)
+else
+ socket_scm_helper = []
+endif
+test('qemu-iotests', sh, args: [files('../check-block.sh')],
+ depends: [qemu_block_tools, emulators, socket_scm_helper],
+ suite: 'block', timeout: 10000)
+
--
2.26.2
- [PULL 123/150] meson: convert hw/audio, (continued)
- [PULL 123/150] meson: convert hw/audio, Paolo Bonzini, 2020/08/18
- [PULL 121/150] meson: convert hw/char, Paolo Bonzini, 2020/08/18
- [PULL 129/150] meson: accel, Paolo Bonzini, 2020/08/18
- [PULL 122/150] meson: convert hw/block, Paolo Bonzini, 2020/08/18
- [PULL 120/150] meson: convert hw/cpu, Paolo Bonzini, 2020/08/18
- [PULL 126/150] meson: convert hw/9pfs, cleanup, Paolo Bonzini, 2020/08/18
- [PULL 131/150] meson: bsd-user, Paolo Bonzini, 2020/08/18
- [PULL 125/150] meson: convert hw/acpi, Paolo Bonzini, 2020/08/18
- [PULL 127/150] meson: convert hw/arch*, Paolo Bonzini, 2020/08/18
- [PULL 133/150] meson: plugins, Paolo Bonzini, 2020/08/18
- [PULL 141/150] meson: convert check-block,
Paolo Bonzini <=
- [PULL 135/150] meson: convert systemtap files, Paolo Bonzini, 2020/08/18
- [PULL 147/150] meson: convert po/, Paolo Bonzini, 2020/08/18
- [PULL 144/150] meson: convert sample plugins, Paolo Bonzini, 2020/08/18
- [PULL 119/150] meson: convert hw/display, Paolo Bonzini, 2020/08/18
- [PULL 136/150] rules.mak: remove version.o, Paolo Bonzini, 2020/08/18
- [PULL 148/150] meson: avoid unstable module warning with Meson 0.56.0 or newer, Paolo Bonzini, 2020/08/18
- [PULL 145/150] meson: move SDL and SDL-image detection to meson, Paolo Bonzini, 2020/08/18