meson: convert check-decodetree
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
bdcbea7ae5
commit
ce1c1e7a8b
@ -6,6 +6,7 @@ not_found = dependency('', required: false)
|
||||
keyval = import('unstable-keyval')
|
||||
ss = import('sourceset')
|
||||
|
||||
sh = find_program('sh')
|
||||
cc = meson.get_compiler('c')
|
||||
config_host = keyval.load(meson.current_build_dir() / 'config-host.mak')
|
||||
|
||||
@ -384,6 +385,7 @@ endif
|
||||
|
||||
subdir('tools')
|
||||
subdir('pc-bios')
|
||||
subdir('tests')
|
||||
|
||||
summary_info = {}
|
||||
summary_info += {'Install prefix': config_host['prefix']}
|
||||
|
@ -894,13 +894,6 @@ check-tests/qapi-schema/frontend: $(addprefix $(SRC_PATH)/, $(check-qapi-schema-
|
||||
check-tests/qapi-schema/doc-good.texi: tests/qapi-schema/doc-good.test.texi
|
||||
@diff -u $(SRC_PATH)/tests/qapi-schema/doc-good.texi $<
|
||||
|
||||
.PHONY: check-decodetree
|
||||
check-decodetree:
|
||||
$(call quiet-command, \
|
||||
cd $(SRC_PATH)/tests/decode && \
|
||||
./check.sh "$(PYTHON)" "$(SRC_PATH)/scripts/decodetree.py", \
|
||||
TEST, decodetree.py)
|
||||
|
||||
# Python venv for running tests
|
||||
|
||||
.PHONY: check-venv check-acceptance
|
||||
@ -969,7 +962,7 @@ check-clean:
|
||||
rm -f tests/qtest/dbus-vmstate1-gen-timestamp
|
||||
rm -rf $(TESTS_VENV_DIR) $(TESTS_RESULTS_DIR)
|
||||
|
||||
check: check-block check-qapi-schema check-unit check-softfloat check-qtest check-decodetree
|
||||
check: check-block check-qapi-schema check-unit check-softfloat check-qtest
|
||||
|
||||
clean: check-clean
|
||||
|
||||
|
4
tests/meson.build
Normal file
4
tests/meson.build
Normal file
@ -0,0 +1,4 @@
|
||||
test('decodetree', sh,
|
||||
args: [ files('decode/check.sh'), config_host['PYTHON'], files('../scripts/decodetree.py') ],
|
||||
workdir: meson.current_source_dir() / 'decode',
|
||||
suite: 'decodetree')
|
Loading…
Reference in New Issue
Block a user