|
@@ -379,6 +379,7 @@ qapi-schema += doc-duplicated-since.json
|
|
|
qapi-schema += doc-empty-arg.json
|
|
|
qapi-schema += doc-empty-section.json
|
|
|
qapi-schema += doc-empty-symbol.json
|
|
|
+qapi-schema += doc-good.json
|
|
|
qapi-schema += doc-interleaved-section.json
|
|
|
qapi-schema += doc-invalid-end.json
|
|
|
qapi-schema += doc-invalid-end2.json
|
|
@@ -607,6 +608,9 @@ $(SRC_PATH)/tests/qapi-schema/qapi-schema-test.json $(SRC_PATH)/scripts/qapi-int
|
|
|
$(gen-out-type) -o tests -p "test-" $<, \
|
|
|
"GEN","$@")
|
|
|
|
|
|
+tests/qapi-schema/doc-good.test.texi: $(SRC_PATH)/tests/qapi-schema/doc-good.json $(SRC_PATH)/scripts/qapi2texi.py $(qapi-py)
|
|
|
+ $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi2texi.py $< > $@,"GEN","$@")
|
|
|
+
|
|
|
tests/test-string-output-visitor$(EXESUF): tests/test-string-output-visitor.o $(test-qapi-obj-y)
|
|
|
tests/test-string-input-visitor$(EXESUF): tests/test-string-input-visitor.o $(test-qapi-obj-y)
|
|
|
tests/test-qmp-event$(EXESUF): tests/test-qmp-event.o $(test-qapi-obj-y)
|
|
@@ -856,9 +860,6 @@ QEMU_IOTESTS_HELPERS-$(CONFIG_LINUX) = tests/qemu-iotests/socket_scm_helper$(EXE
|
|
|
check-tests/qemu-iotests-quick.sh: tests/qemu-iotests-quick.sh qemu-img$(EXESUF) qemu-io$(EXESUF) $(QEMU_IOTESTS_HELPERS-y)
|
|
|
$<
|
|
|
|
|
|
-.PHONY: check-tests/test-qapi.py
|
|
|
-check-tests/test-qapi.py: tests/test-qapi.py
|
|
|
-
|
|
|
.PHONY: $(patsubst %, check-%, $(check-qapi-schema-y))
|
|
|
$(patsubst %, check-%, $(check-qapi-schema-y)): check-%.json: $(SRC_PATH)/%.json
|
|
|
$(call quiet-command, PYTHONPATH=$(SRC_PATH)/scripts \
|
|
@@ -871,10 +872,14 @@ $(patsubst %, check-%, $(check-qapi-schema-y)): check-%.json: $(SRC_PATH)/%.json
|
|
|
@perl -p -e 's|\Q$(SRC_PATH)\E/||g' $*.test.err | diff -q $(SRC_PATH)/$*.err -
|
|
|
@diff -q $(SRC_PATH)/$*.exit $*.test.exit
|
|
|
|
|
|
+.PHONY: check-tests/qapi-schema/doc-good.texi
|
|
|
+check-tests/qapi-schema/doc-good.texi: tests/qapi-schema/doc-good.test.texi
|
|
|
+ @diff -q $(SRC_PATH)/tests/qapi-schema/doc-good.texi $<
|
|
|
+
|
|
|
# Consolidated targets
|
|
|
|
|
|
.PHONY: check-qapi-schema check-qtest check-unit check check-clean
|
|
|
-check-qapi-schema: $(patsubst %,check-%, $(check-qapi-schema-y))
|
|
|
+check-qapi-schema: $(patsubst %,check-%, $(check-qapi-schema-y)) check-tests/qapi-schema/doc-good.texi
|
|
|
check-qtest: $(patsubst %,check-qtest-%, $(QTEST_TARGETS))
|
|
|
check-unit: $(patsubst %,check-%, $(check-unit-y))
|
|
|
check-block: $(patsubst %,check-%, $(check-block-y))
|