From: Fam Zheng <famz@redhat.com>
To: qemu-devel@nongnu.org
Cc: kwolf@redhat.com, peter.maydell@linaro.org, jsnow@redhat.com,
stefanha@redhat.com, sw@weilnetz.de,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Alex Bennée" <alex.bennee@linaro.org>,
david@gibson.dropbear.id.au
Subject: [Qemu-devel] [PATCH v2 00/15] tests: Introducing docker tests
Date: Tue, 16 Feb 2016 20:39:44 +0800 [thread overview]
Message-ID: <1455626399-7111-1-git-send-email-famz@redhat.com> (raw)
v2: - Fix a few coding style warnings of shellcheck and pylint.
[Marc-André Lureau]
- Rename make targets:
docker-run => docker-test
docker-build => docker-image
docker-run-$TEST.sh@$IMAGE => docker-$TEST@$IMAGE
- In help, document the magic makefile vars which are
"IMAGES=", "TESTS=", "J=" and "PAUSE="
- Rename test-basic => 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 things.
Thanks to Daniel, Eric, Paolo, Stefan, for the feedback.
This series adds a new "docker" make target family to run tests in created
docker containers.
To begin with, this can be a place to store standard env/command combinations to
build and test QEMU.
Secondly, CI usually provides "docker" capability, where we specify
standard/repeatable test environments, and run tests in them. However, what
tests to cover is better maintained in-tree, in order to keep in sync with the
code development.
Lastly, this makes it very simple for developers to replicate such tests
themselves.
Alex Bennée (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
--
2.4.3
next reply other threads:[~2016-02-16 12:40 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-16 12:39 Fam Zheng [this message]
2016-02-16 12:39 ` [Qemu-devel] [PATCH v2 01/15] tests: Add utilities for docker testing Fam Zheng
2016-02-29 16:46 ` Alex Bennée
2016-03-01 1:12 ` Fam Zheng
2016-02-16 12:39 ` [Qemu-devel] [PATCH v2 02/15] Makefile: Rules " Fam Zheng
2016-02-29 17:08 ` Alex Bennée
2016-03-01 1:04 ` Fam Zheng
2016-03-01 9:56 ` Alex Bennée
2016-03-01 18:12 ` Alex Bennée
2016-02-16 12:39 ` [Qemu-devel] [PATCH v2 03/15] docker: Add images Fam Zheng
2016-02-29 17:18 ` Alex Bennée
2016-03-01 1:19 ` Fam Zheng
2016-03-01 9:52 ` Alex Bennée
2016-03-02 2:23 ` Fam Zheng
2016-03-02 7:26 ` Alex Bennée
2016-02-16 12:39 ` [Qemu-devel] [PATCH v2 04/15] docker: Add test runner Fam Zheng
2016-02-16 12:39 ` [Qemu-devel] [PATCH v2 05/15] docker: Add common.rc Fam Zheng
2016-02-16 12:39 ` [Qemu-devel] [PATCH v2 06/15] docker: Add quick test Fam Zheng
2016-02-16 12:39 ` [Qemu-devel] [PATCH v2 07/15] docker: Add full test Fam Zheng
2016-02-16 12:39 ` [Qemu-devel] [PATCH v2 08/15] docker: Add clang test Fam Zheng
2016-02-16 12:39 ` [Qemu-devel] [PATCH v2 09/15] docker: Add mingw test Fam Zheng
2016-02-16 12:39 ` [Qemu-devel] [PATCH v2 10/15] docker: Add travis tool Fam Zheng
2016-02-16 12:39 ` [Qemu-devel] [PATCH v2 11/15] docs: Add text for tests/docker in build-system.txt Fam Zheng
2016-02-16 12:39 ` [Qemu-devel] [PATCH v2 12/15] .gitignore: Ignore temporary dockerfile Fam Zheng
2016-02-16 12:39 ` [Qemu-devel] [PATCH v2 13/15] MAINTAINERS: Add tests/docker Fam Zheng
2016-02-16 12:39 ` [Qemu-devel] [PATCH v2 14/15] docker: Support interactive shell for debugging Fam Zheng
2016-02-16 12:39 ` [Qemu-devel] [PATCH v2 15/15] tests/docker/Makefile.include: snapshot the src for docker Fam Zheng
2016-03-01 20:16 ` Alex Bennée
2016-03-02 3:38 ` Fam Zheng
2016-02-24 7:17 ` [Qemu-devel] [PATCH v2 00/15] tests: Introducing docker tests Fam Zheng
2016-02-29 14:51 ` Alex Bennée
2016-02-29 17:22 ` Alex Bennée
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1455626399-7111-1-git-send-email-famz@redhat.com \
--to=famz@redhat.com \
--cc=alex.bennee@linaro.org \
--cc=david@gibson.dropbear.id.au \
--cc=jsnow@redhat.com \
--cc=kwolf@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
--cc=sw@weilnetz.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).