[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 136/143] meson: convert check-block
From: |
Paolo Bonzini |
Subject: |
[PATCH 136/143] meson: convert check-block |
Date: |
Thu, 6 Aug 2020 21:16:12 +0200 |
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
tests/Makefile.include | 18 ++----------------
tests/meson.build | 4 ++++
tests/qemu-iotests/meson.build | 8 ++++++++
3 files changed, 14 insertions(+), 16 deletions(-)
create mode 100644 tests/qemu-iotests/meson.build
diff --git a/tests/Makefile.include b/tests/Makefile.include
index 7468e99..a1e4871 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
@@ -487,16 +485,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)
-
-tests/qemu-iotests/socket_scm_helper$(EXESUF):
tests/qemu-iotests/socket_scm_helper.o
-
-.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
@@ -550,13 +538,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
@@ -568,8 +556,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 d724402..f834c27 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 0000000..60e81a2
--- /dev/null
+++ b/tests/qemu-iotests/meson.build
@@ -0,0 +1,8 @@
+dep = [qemu_img, qemu_io, qemu_nbd, emulators]
+if 'CONFIG_LINUX' in config_host
+ dep += executable('socket_scm_helper', 'socket_scm_helper.c',
+ build_by_default: false)
+endif
+test('qemu-iotests', sh, args: [files('../check-block.sh')], depends: dep,
+ suite: 'block', timeout: 10000)
+
--
1.8.3.1
- [PATCH 124/143] meson: target, (continued)
- [PATCH 124/143] meson: target, Paolo Bonzini, 2020/08/06
- [PATCH 129/143] meson: plugins, Paolo Bonzini, 2020/08/06
- [PATCH 128/143] meson: cpu-emu, Paolo Bonzini, 2020/08/06
- [PATCH 131/143] meson: convert systemtap files, Paolo Bonzini, 2020/08/06
- [PATCH 130/143] meson: link emulators without Makefile.target, Paolo Bonzini, 2020/08/06
- [PATCH 132/143] rules.mak: remove version.o, Paolo Bonzini, 2020/08/06
- [PATCH 133/143] remove Makefile.target, Paolo Bonzini, 2020/08/06
- [PATCH 135/143] meson: build texi doc, Paolo Bonzini, 2020/08/06
- [PATCH 136/143] meson: convert check-block,
Paolo Bonzini <=
- [PATCH 138/143] meson: replace create-config with meson configure_file, Paolo Bonzini, 2020/08/06
- [PATCH 140/143] meson: move SDL and SDL-image detection to meson, Paolo Bonzini, 2020/08/06
- [PATCH 139/143] meson: convert sample plugins, Paolo Bonzini, 2020/08/06
- [PATCH 134/143] meson: sphinx-build, Paolo Bonzini, 2020/08/06
- [PATCH 141/143] meson: convert VNC and dependent libraries to meson, Paolo Bonzini, 2020/08/06
- [PATCH 137/143] rules.mak: drop unneeded macros, Paolo Bonzini, 2020/08/06
- [PATCH 142/143] meson: convert po/, Paolo Bonzini, 2020/08/06
- [PATCH 143/143] meson: update build-system documentation, Paolo Bonzini, 2020/08/06
- Re: [DRAFT PATCH 000/143] Meson integration for 5.2, Cornelia Huck, 2020/08/07