From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58365) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVevK-0000Uy-Uw for qemu-devel@nongnu.org; Tue, 16 Feb 2016 07:40:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aVevG-0002xf-S3 for qemu-devel@nongnu.org; Tue, 16 Feb 2016 07:40:10 -0500 Received: from mx1.redhat.com ([209.132.183.28]:44711) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVevG-0002xN-Lc for qemu-devel@nongnu.org; Tue, 16 Feb 2016 07:40:06 -0500 From: Fam Zheng Date: Tue, 16 Feb 2016 20:39:44 +0800 Message-Id: <1455626399-7111-1-git-send-email-famz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH v2 00/15] tests: Introducing docker tests List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, peter.maydell@linaro.org, jsnow@redhat.com, stefanha@redhat.com, sw@weilnetz.de, Paolo Bonzini , =?UTF-8?q?Alex=20Benn=C3=A9e?= , david@gibson.dropbear.id.au v2: - Fix a few coding style warnings of shellcheck and pylint. [Marc-Andr=C3=A9 Lureau] - Rename make targets: docker-run =3D> docker-test docker-build =3D> docker-image docker-run-$TEST.sh@$IMAGE =3D> docker-$TEST@$IMAGE - In help, document the magic makefile vars which are "IMAGES=3D", "TESTS=3D", "J=3D" and "PAUSE=3D" - Rename test-basic =3D> test-quick - Move docker files to tests/docker/dockerfiles/ - Add "test-full" that builds all targets - Workaround broken clang for fedora 23 - Add commit log for .gitignore changes [Alex] - Add "rev-by" in patch 13. [Alex] - Add patch 14 to make debugging easier [Alex] - Adopt Alex's "git archive" idea v1: Since RFC, addressed comments from reviewers, and improved a lot of t= hings. Thanks to Daniel, Eric, Paolo, Stefan, for the feedback. This series adds a new "docker" make target family to run tests in create= d docker containers. To begin with, this can be a place to store standard env/command combinat= ions to build and test QEMU. Secondly, CI usually provides "docker" capability, where we specify standard/repeatable test environments, and run tests in them. However, w= hat tests to cover is better maintained in-tree, in order to keep in sync wit= h the code development. Lastly, this makes it very simple for developers to replicate such tests themselves. Alex Benn=C3=A9e (1): tests/docker/Makefile.include: snapshot the src for docker Fam Zheng (14): tests: Add utilities for docker testing Makefile: Rules for docker testing docker: Add images docker: Add test runner docker: Add common.rc docker: Add quick test docker: Add full test docker: Add clang test docker: Add mingw test docker: Add travis tool docs: Add text for tests/docker in build-system.txt .gitignore: Ignore temporary dockerfile MAINTAINERS: Add tests/docker docker: Support interactive shell for debugging .gitignore | 1 + MAINTAINERS | 7 ++ Makefile | 4 +- docs/build-system.txt | 5 ++ tests/docker/Makefile.include | 110 ++++++++++++++++++++++++++= +++++ tests/docker/common.rc | 29 ++++++++ tests/docker/docker.py | 113 ++++++++++++++++++++++++++= ++++++ tests/docker/docker_build | 42 ++++++++++++ tests/docker/docker_clean | 22 +++++++ tests/docker/docker_run | 29 ++++++++ tests/docker/dockerfiles/centos6.docker | 5 ++ tests/docker/dockerfiles/fedora.docker | 7 ++ tests/docker/dockerfiles/ubuntu.docker | 9 +++ tests/docker/run | 34 ++++++++++ tests/docker/test-clang | 28 ++++++++ tests/docker/test-full | 21 ++++++ tests/docker/test-mingw | 36 ++++++++++ tests/docker/test-quick | 23 +++++++ tests/docker/travis | 23 +++++++ tests/docker/travis.py | 48 ++++++++++++++ 20 files changed, 595 insertions(+), 1 deletion(-) create mode 100644 tests/docker/Makefile.include create mode 100755 tests/docker/common.rc create mode 100755 tests/docker/docker.py create mode 100755 tests/docker/docker_build create mode 100755 tests/docker/docker_clean create mode 100755 tests/docker/docker_run create mode 100644 tests/docker/dockerfiles/centos6.docker create mode 100644 tests/docker/dockerfiles/fedora.docker create mode 100644 tests/docker/dockerfiles/ubuntu.docker create mode 100755 tests/docker/run create mode 100755 tests/docker/test-clang create mode 100755 tests/docker/test-full create mode 100755 tests/docker/test-mingw create mode 100755 tests/docker/test-quick create mode 100755 tests/docker/travis create mode 100755 tests/docker/travis.py --=20 2.4.3