tcg: add cs_base and flags to -d exec output
[qemu/ar7.git] / tests / vm / Makefile.include
blob5daa2a3b73220c91730dc3df430542cc6ac2f22b
1 # Makefile for VM tests
3 .PHONY: vm-build-all
5 IMAGES := ubuntu.i386 freebsd netbsd openbsd
6 IMAGE_FILES := $(patsubst %, tests/vm/%.img, $(IMAGES))
8 .PRECIOUS: $(IMAGE_FILES)
10 vm-test:
11         @echo "vm-test: Test QEMU in preconfigured virtual machines"
12         @echo
13         @echo "  vm-build-ubuntu.i386            - Build QEMU in ubuntu i386 VM"
14         @echo "  vm-build-freebsd                - Build QEMU in FreeBSD VM"
15         @echo "  vm-build-netbsd                 - Build QEMU in NetBSD VM"
16         @echo "  vm-build-openbsd                - Build QEMU in OpenBSD VM"
18 vm-build-all: $(addprefix vm-build-, $(IMAGES))
20 tests/vm/%.img: $(SRC_PATH)/tests/vm/% \
21                 $(SRC_PATH)/tests/vm/basevm.py \
22                 $(SRC_PATH)/tests/vm/Makefile.include
23         $(call quiet-command, \
24                 $< \
25                 $(if $(V)$(DEBUG), --debug) \
26                 --image "$@" \
27                 --force \
28                 --build-image $@, \
29                 "  VM-IMAGE $*")
32 # Build in VM $(IMAGE)
33 vm-build-%: tests/vm/%.img
34         $(call quiet-command, \
35                 $(SRC_PATH)/tests/vm/$* \
36                 $(if $(V)$(DEBUG), --debug) \
37                 $(if $(DEBUG), --interactive) \
38                 $(if $(J),--jobs $(J)) \
39                 --image "$<" \
40                 --build-qemu $(SRC_PATH), \
41                 "  VM-BUILD $*")