diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2017-08-15 12:10:50 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2017-08-15 12:10:50 +0100 |
commit | c4a6a8887c1b2a669e35ff9da9530824300bdce4 (patch) | |
tree | eb87594ef020d95d81660817ec645dcd30a93783 | |
parent | 5681da292242550f37ba4c03f46a8a6f8ee9278a (diff) | |
parent | a8132a2f288c260fb43243eb3c092b5186d84968 (diff) |
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>
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | tests/Makefile.include | 46 | ||||
-rw-r--r-- | tests/docker/dockerfiles/centos6.docker | 31 | ||||
-rw-r--r-- | tests/docker/dockerfiles/centos7.docker | 31 |
4 files changed, 82 insertions, 28 deletions
@@ -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 diff --git a/tests/Makefile.include b/tests/Makefile.include index eb4895f94a..37c1bed683 100644 --- a/tests/Makefile.include +++ b/tests/Makefile.include @@ -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 diff --git a/tests/docker/dockerfiles/centos6.docker b/tests/docker/dockerfiles/centos6.docker index 17a4d24d54..f6aae13f29 100644 --- a/tests/docker/dockerfiles/centos6.docker +++ b/tests/docker/dockerfiles/centos6.docker @@ -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 diff --git a/tests/docker/dockerfiles/centos7.docker b/tests/docker/dockerfiles/centos7.docker new file mode 100644 index 0000000000..0b59aa2f26 --- /dev/null +++ b/tests/docker/dockerfiles/centos7.docker @@ -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 + |