]> git.proxmox.com Git - mirror_qemu.git/blame - tests/Makefile
make check: Add qemu-iotests subset
[mirror_qemu.git] / tests / Makefile
CommitLineData
8959449b
KW
1export SRC_PATH
2
ad65aa88
AL
3CHECKS = check-qdict check-qfloat check-qint check-qstring check-qlist
4CHECKS += check-qjson test-qmp-output-visitor test-qmp-input-visitor
2d7799f2 5CHECKS += test-string-input-visitor test-string-output-visitor test-coroutine
8959449b 6CHECKS += $(SRC_PATH)/tests/qemu-iotests-quick.sh
ad65aa88 7
dbfe06c6
AL
8check-qint.o check-qstring.o check-qdict.o check-qlist.o check-qfloat.o check-qjson.o test-coroutine.o: $(GENERATED_HEADERS)
9
10check-qint: check-qint.o qint.o $(tools-obj-y)
11check-qstring: check-qstring.o qstring.o $(tools-obj-y)
12check-qdict: check-qdict.o qdict.o qfloat.o qint.o qstring.o qbool.o qlist.o $(tools-obj-y)
13check-qlist: check-qlist.o qlist.o qint.o $(tools-obj-y)
14check-qfloat: check-qfloat.o qfloat.o $(tools-obj-y)
15check-qjson: check-qjson.o $(qobject-obj-y) $(tools-obj-y)
16test-coroutine: test-coroutine.o qemu-timer-common.o async.o $(coroutine-obj-y) $(tools-obj-y)
17
2d7799f2
PB
18test-qmp-input-visitor.o test-qmp-output-visitor.o \
19test-string-input-visitor.o test-string-output-visitor.o \
20 test-qmp-commands.o qemu-ga$(EXESUF): QEMU_CFLAGS += -I $(qapi-dir)
dbfe06c6
AL
21
22$(qapi-dir)/test-qapi-types.c $(qapi-dir)/test-qapi-types.h :\
23$(SRC_PATH)/qapi-schema-test.json $(SRC_PATH)/scripts/qapi-types.py
24 $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-types.py $(gen-out-type) -o "$(qapi-dir)" -p "test-" < $<, " GEN $@")
25$(qapi-dir)/test-qapi-visit.c $(qapi-dir)/test-qapi-visit.h :\
26$(SRC_PATH)/qapi-schema-test.json $(SRC_PATH)/scripts/qapi-visit.py
27 $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-visit.py $(gen-out-type) -o "$(qapi-dir)" -p "test-" < $<, " GEN $@")
28$(qapi-dir)/test-qmp-commands.h $(qapi-dir)/test-qmp-marshal.c :\
29$(SRC_PATH)/qapi-schema-test.json $(SRC_PATH)/scripts/qapi-commands.py
30 $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-commands.py $(gen-out-type) -o "$(qapi-dir)" -p "test-" < $<, " GEN $@")
31
32
2d7799f2
PB
33test-string-output-visitor.o: $(addprefix $(qapi-dir)/, test-qapi-types.c test-qapi-types.h test-qapi-visit.c test-qapi-visit.h) $(qapi-obj-y)
34test-string-output-visitor: test-string-output-visitor.o $(qobject-obj-y) $(qapi-obj-y) $(tools-obj-y) $(qapi-dir)/test-qapi-visit.o $(qapi-dir)/test-qapi-types.o
35
36test-string-input-visitor.o: $(addprefix $(qapi-dir)/, test-qapi-types.c test-qapi-types.h test-qapi-visit.c test-qapi-visit.h) $(qapi-obj-y)
37test-string-input-visitor: test-string-input-visitor.o $(qobject-obj-y) $(qapi-obj-y) $(tools-obj-y) $(qapi-dir)/test-qapi-visit.o $(qapi-dir)/test-qapi-types.o
38
dbfe06c6
AL
39test-qmp-output-visitor.o: $(addprefix $(qapi-dir)/, test-qapi-types.c test-qapi-types.h test-qapi-visit.c test-qapi-visit.h) $(qapi-obj-y)
40test-qmp-output-visitor: test-qmp-output-visitor.o $(qobject-obj-y) $(qapi-obj-y) $(tools-obj-y) $(qapi-dir)/test-qapi-visit.o $(qapi-dir)/test-qapi-types.o
41
42test-qmp-input-visitor.o: $(addprefix $(qapi-dir)/, test-qapi-types.c test-qapi-types.h test-qapi-visit.c test-qapi-visit.h) $(qapi-obj-y)
43test-qmp-input-visitor: test-qmp-input-visitor.o $(qobject-obj-y) $(qapi-obj-y) $(tools-obj-y) $(qapi-dir)/test-qapi-visit.o $(qapi-dir)/test-qapi-types.o
44
45test-qmp-commands.o: $(addprefix $(qapi-dir)/, test-qapi-types.c test-qapi-types.h test-qapi-visit.c test-qapi-visit.h test-qmp-marshal.c test-qmp-commands.h) $(qapi-obj-y)
46test-qmp-commands: test-qmp-commands.o $(qobject-obj-y) $(qapi-obj-y) $(tools-obj-y) $(qapi-dir)/test-qapi-visit.o $(qapi-dir)/test-qapi-types.o $(qapi-dir)/test-qmp-marshal.o module.o
47
8959449b
KW
48$(SRC_PATH)/tests/qemu-iotests-quick.sh: qemu-img qemu-io
49
dbfe06c6 50.PHONY: check
ad65aa88 51check: $(CHECKS)
3c941c61 52 $(call quiet-command, gtester $(CHECKS), " CHECK")