-----BEGIN PGP SIGNATURE-----
iQFEBAABCAAuFiEEUAN8t5cGD3bwIa1WyjViTGqRccYFAlmS0fwQHGZhbXpAcmVk aGF0LmNvbQAKCRDKNWJMapFxxpmuB/94sfeSRzzyELILrZHXWPMfADO8MU0jlZRz +h6pJ3z0ebRgOdpXYie8Aq9Xrp1eSF7MuZVgbPkMdMqB3tUhNU+yiv05wmUj0eZs 4auFmYc0jLs6BqRflPHq4+DOxZ+KVULWCo8fa8+WhHbLjBlBQpUqBDEI++WEB2O6 ZGLvBaT7XvERHF4DqB8g2VfD0qaMp7Nh/h4EV0eR83S0mn6To8wrl0Gaim8Isyl2 1/Do2jku9eyltcih67ecL/vnUpcQ/2F9pgdhevpOWEWd5ov23pkI6kZr/V6UHL4J 8EHl9mjbkE8tuDCF98KukyNZgPW0SKaArq2J2ADiYTRtWsWnoevQ =YYke -----END PGP SIGNATURE----- Merge remote-tracking branch 'remotes/famz/tags/build-and-test-pull-request' into staging # gpg: Signature made Tue 15 Aug 2017 11:50:36 BST # gpg: using RSA key 0xCA35624C6A9171C6 # gpg: Good signature from "Fam Zheng <famz@redhat.com>" # gpg: WARNING: This key is not certified with sufficiently trusted signatures! # gpg: It is not certain that the signature belongs to the owner. # Primary key fingerprint: 5003 7CB7 9706 0F76 F021 AD56 CA35 624C 6A91 71C6 * remotes/famz/tags/build-and-test-pull-request: docker: add centos7 image docker: install more packages on CentOS to extend code coverage docker: add Xen libs to centos6 image docker: use one package per line in CentOS config Makefile: Let "make check-help" work without running ./configure Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
commit
c4a6a8887c
2
Makefile
2
Makefile
@ -281,9 +281,7 @@ dummy := $(call unnest-vars,, \
|
||||
common-obj-m \
|
||||
trace-obj-y)
|
||||
|
||||
ifneq ($(wildcard config-host.mak),)
|
||||
include $(SRC_PATH)/tests/Makefile.include
|
||||
endif
|
||||
|
||||
all: $(DOCS) $(TOOLS) $(HELPERS-y) recurse-all modules
|
||||
|
||||
|
@ -1,3 +1,26 @@
|
||||
|
||||
.PHONY: check-help
|
||||
check-help:
|
||||
@echo "Regression testing targets:"
|
||||
@echo
|
||||
@echo " make check Run all tests"
|
||||
@echo " make check-qtest-TARGET Run qtest tests for given target"
|
||||
@echo " make check-qtest Run qtest tests"
|
||||
@echo " make check-unit Run qobject tests"
|
||||
@echo " make check-speed Run qobject speed tests"
|
||||
@echo " make check-qapi-schema Run QAPI schema tests"
|
||||
@echo " make check-block Run block tests"
|
||||
@echo " make check-report.html Generates an HTML test report"
|
||||
@echo " make check-clean Clean the tests"
|
||||
@echo
|
||||
@echo "Please note that HTML reports do not regenerate if the unit tests"
|
||||
@echo "has not changed."
|
||||
@echo
|
||||
@echo "The variable SPEED can be set to control the gtester speed setting."
|
||||
@echo "Default options are -k and (for make V=1) --verbose; they can be"
|
||||
@echo "changed with variable GTESTER_OPTIONS."
|
||||
|
||||
ifneq ($(wildcard config-host.mak),)
|
||||
export SRC_PATH
|
||||
|
||||
qapi-py = $(SRC_PATH)/scripts/qapi.py $(SRC_PATH)/scripts/ordereddict.py
|
||||
@ -802,27 +825,6 @@ $(check-qtest-y): $(qtest-obj-y)
|
||||
|
||||
tests/test-qga: tests/test-qga.o $(qtest-obj-y)
|
||||
|
||||
.PHONY: check-help
|
||||
check-help:
|
||||
@echo "Regression testing targets:"
|
||||
@echo
|
||||
@echo " make check Run all tests"
|
||||
@echo " make check-qtest-TARGET Run qtest tests for given target"
|
||||
@echo " make check-qtest Run qtest tests"
|
||||
@echo " make check-unit Run qobject tests"
|
||||
@echo " make check-speed Run qobject speed tests"
|
||||
@echo " make check-qapi-schema Run QAPI schema tests"
|
||||
@echo " make check-block Run block tests"
|
||||
@echo " make check-report.html Generates an HTML test report"
|
||||
@echo " make check-clean Clean the tests"
|
||||
@echo
|
||||
@echo "Please note that HTML reports do not regenerate if the unit tests"
|
||||
@echo "has not changed."
|
||||
@echo
|
||||
@echo "The variable SPEED can be set to control the gtester speed setting."
|
||||
@echo "Default options are -k and (for make V=1) --verbose; they can be"
|
||||
@echo "changed with variable GTESTER_OPTIONS."
|
||||
|
||||
SPEED = quick
|
||||
GTESTER_OPTIONS = -k $(if $(V),--verbose,-q)
|
||||
GCOV_OPTIONS = -n $(if $(V),-f,)
|
||||
@ -917,3 +919,5 @@ all: $(QEMU_IOTESTS_HELPERS-y)
|
||||
|
||||
-include $(wildcard tests/*.d)
|
||||
-include $(wildcard tests/libqos/*.d)
|
||||
|
||||
endif
|
||||
|
@ -1,8 +1,29 @@
|
||||
FROM centos:6
|
||||
RUN yum install -y epel-release
|
||||
ENV PACKAGES libfdt-devel ccache \
|
||||
tar git make gcc g++ flex bison \
|
||||
zlib-devel glib2-devel SDL-devel pixman-devel \
|
||||
epel-release
|
||||
RUN yum install -y epel-release centos-release-xen
|
||||
ENV PACKAGES \
|
||||
bison \
|
||||
bzip2-devel \
|
||||
ccache \
|
||||
csnappy-devel \
|
||||
flex \
|
||||
g++ \
|
||||
gcc \
|
||||
git \
|
||||
glib2-devel \
|
||||
libepoxy-devel \
|
||||
libfdt-devel \
|
||||
librdmacm-devel \
|
||||
lzo-devel \
|
||||
make \
|
||||
mesa-libEGL-devel \
|
||||
mesa-libgbm-devel \
|
||||
pixman-devel \
|
||||
SDL-devel \
|
||||
spice-glib-devel \
|
||||
spice-server-devel \
|
||||
tar \
|
||||
vte-devel \
|
||||
xen-devel \
|
||||
zlib-devel
|
||||
RUN yum install -y $PACKAGES
|
||||
RUN rpm -q $PACKAGES | sort > /packages.txt
|
||||
|
31
tests/docker/dockerfiles/centos7.docker
Normal file
31
tests/docker/dockerfiles/centos7.docker
Normal file
@ -0,0 +1,31 @@
|
||||
FROM centos:7
|
||||
RUN yum install -y epel-release centos-release-xen
|
||||
RUN yum -y update
|
||||
ENV PACKAGES \
|
||||
bison \
|
||||
bzip2-devel \
|
||||
ccache \
|
||||
csnappy-devel \
|
||||
flex \
|
||||
g++ \
|
||||
gcc \
|
||||
git \
|
||||
glib2-devel \
|
||||
libepoxy-devel \
|
||||
libfdt-devel \
|
||||
librdmacm-devel \
|
||||
lzo-devel \
|
||||
make \
|
||||
mesa-libEGL-devel \
|
||||
mesa-libgbm-devel \
|
||||
pixman-devel \
|
||||
SDL-devel \
|
||||
spice-glib-devel \
|
||||
spice-server-devel \
|
||||
tar \
|
||||
vte-devel \
|
||||
xen-devel \
|
||||
zlib-devel
|
||||
RUN yum install -y $PACKAGES
|
||||
RUN rpm -q $PACKAGES | sort > /packages.txt
|
||||
|
Loading…
Reference in New Issue
Block a user