root / tests / Makefile @ e38ac962
History | View | Annotate | Download (3.9 kB)
1 |
export SRC_PATH |
---|---|
2 |
|
3 |
CHECKS = check-qdict check-qfloat check-qint check-qstring check-qlist |
4 |
CHECKS += check-qjson test-qmp-output-visitor test-qmp-input-visitor |
5 |
CHECKS += test-string-input-visitor test-string-output-visitor test-coroutine |
6 |
CHECKS += test-qmp-commands |
7 |
CHECKS += $(SRC_PATH)/tests/qemu-iotests-quick.sh |
8 |
|
9 |
check-qint.o check-qstring.o check-qdict.o check-qlist.o check-qfloat.o check-qjson.o test-coroutine.o: $(GENERATED_HEADERS) |
10 |
|
11 |
check-qint: check-qint.o qint.o $(tools-obj-y) |
12 |
check-qstring: check-qstring.o qstring.o $(tools-obj-y) |
13 |
check-qdict: check-qdict.o qdict.o qfloat.o qint.o qstring.o qbool.o qlist.o $(tools-obj-y) |
14 |
check-qlist: check-qlist.o qlist.o qint.o $(tools-obj-y) |
15 |
check-qfloat: check-qfloat.o qfloat.o $(tools-obj-y) |
16 |
check-qjson: check-qjson.o $(qobject-obj-y) $(tools-obj-y) |
17 |
test-coroutine: test-coroutine.o qemu-timer-common.o async.o $(coroutine-obj-y) $(tools-obj-y) |
18 |
|
19 |
test-qmp-input-visitor.o test-qmp-output-visitor.o test-qmp-input-strict.o \ |
20 |
test-string-input-visitor.o test-string-output-visitor.o \ |
21 |
test-qmp-commands.o: QEMU_CFLAGS += -I $(qapi-dir) |
22 |
|
23 |
$(qapi-dir)/test-qapi-types.c $(qapi-dir)/test-qapi-types.h :\ |
24 |
$(SRC_PATH)/qapi-schema-test.json $(SRC_PATH)/scripts/qapi-types.py |
25 |
$(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-types.py $(gen-out-type) -o "$(qapi-dir)" -p "test-" < $<, " GEN $@") |
26 |
$(qapi-dir)/test-qapi-visit.c $(qapi-dir)/test-qapi-visit.h :\ |
27 |
$(SRC_PATH)/qapi-schema-test.json $(SRC_PATH)/scripts/qapi-visit.py |
28 |
$(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-visit.py $(gen-out-type) -o "$(qapi-dir)" -p "test-" < $<, " GEN $@") |
29 |
$(qapi-dir)/test-qmp-commands.h $(qapi-dir)/test-qmp-marshal.c :\ |
30 |
$(SRC_PATH)/qapi-schema-test.json $(SRC_PATH)/scripts/qapi-commands.py |
31 |
$(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-commands.py $(gen-out-type) -o "$(qapi-dir)" -p "test-" < $<, " GEN $@") |
32 |
|
33 |
|
34 |
test-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) |
35 |
test-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 |
36 |
|
37 |
test-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) |
38 |
test-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 |
39 |
|
40 |
test-qmp-input-strict.o: $(addprefix $(qapi-dir)/, test-qapi-types.c test-qapi-types.h test-qapi-visit.c test-qapi-visit.h) $(qapi-obj-y) |
41 |
test-qmp-input-strict: test-qmp-input-strict.o $(qobject-obj-y) $(qapi-obj-y) $(tools-obj-y) $(qapi-dir)/test-qapi-visit.o $(qapi-dir)/test-qapi-types.o |
42 |
|
43 |
test-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) |
44 |
test-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 |
45 |
|
46 |
test-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) |
47 |
test-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 |
48 |
|
49 |
test-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) |
50 |
test-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 |
51 |
|
52 |
$(SRC_PATH)/tests/qemu-iotests-quick.sh: qemu-img qemu-io |
53 |
|
54 |
|
55 |
.PHONY: check check-block |
56 |
|
57 |
check: $(CHECKS) |
58 |
$(call quiet-command, gtester $(CHECKS), " CHECK") |
59 |
|
60 |
check-block: |
61 |
$(call quiet-command, $(SHELL) $(SRC_PATH)/tests/check-block.sh , " CHECK") |