tests: Add VM based build tests (for non-x86_64 and/or non-Linux)
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v11 Latest13 patches 9 repliesIn review
- v1013 patches 6 repliesSuperseded
- v913 patches 9 repliesSuperseded
Earlier versions · 8
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v8 | 13 patches | 10 replies | Superseded | |
| v7 | 13 patches | 7 replies | Superseded | |
| v6 | 12 patches | 16 replies | Superseded | |
| v5 | 12 patches | 14 replies | Superseded | |
| v4 | 10 patches | 21 replies | Superseded | |
| v3 | 10 patches | 24 replies | Superseded | |
| v2 RFC | 10 patches | 7 replies | Superseded | |
| v1 RFC | 9 patches | 23 replies | Superseded |
Patches in v11 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/13 | gitignore: Ignore vm test images.gitignore tests/ | +2 | 2 replies | |
| 2/13 | qemu.py: Add "wait()" methodscripts/ | +7 | 0 replies | |
| 3/13 | scripts: Add archive-source.shscripts/ | +51 | 2 replies | |
| 4/13 | tests: Add a test key pairtests/ tests/ tests/ | +34 | 0 replies | |
| 5/13 | tests: Add vm test libtests/ | +262 | 0 replies | |
| 6/13 | tests: Add ubuntu.i386 imagetests/ | +89 | 0 replies | |
| 7/13 | tests: Add FreeBSD imagetests/ | +42 | 4 replies | |
| 8/13 | tests: Add NetBSD imagetests/ | +42 | 0 replies | |
| 9/13 | tests: Add OpenBSD imagetests/ | +43 | 1 reply | |
| 10/13 | Makefile: Add rules to run vm testsMakefile configure tests/ | +45 | 0 replies | |
| 11/13 | MAINTAINERS: Add tests/vm entryMAINTAINERS | +1 | 0 replies | |
| 12/13 | tests: Add README for vm teststests/ | +89 | 0 replies | |
| 13/13 | docker: Use archive-source.pytests/ tests/ | +3 | 0 replies |
Reviews trailers per patch
8 of 13 patches have a Reviewed-by or Acked-by.
| Patch | Stefan Hajnoczi | Alex Bennée | Eric Blake | Kamil Rytarowski | Philippe Mathieu-Daudé |
|---|---|---|---|---|---|
| 1/13 | |||||
| 2/13 | R-b | R-b | |||
| 3/13 | R-b | ||||
| 4/13 | R-b | ||||
| 5/13 | R-b | ||||
| 6/13 | |||||
| 7/13 | T-b | ||||
| 8/13 | R-b | ||||
| 9/13 | |||||
| 10/13 | R-b T-b | ||||
| 11/13 | R-b | ||||
| 12/13 | |||||
| 13/13 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.
Cover letter [Qemu-devel] [PATCH v11 00/13] tests: Add VM based build tests (for non-x86_64 and/or non-Linux)
v11: Fix archive-source.sh. [Eric]
v10: Rebase - trivial conflict in docker Makefile.include.
Specify bash in shebang. [Eric]
Tweaks in README and pub key comment. [Eric] Clean up $1.list if tar failed. [Eric]
Set locale in cloud-init for ubuntu image.
v9: Don't use 'set -e' in archive-source.sh. [Eric]
Add tests/keys/README. [Eric]
Fix direct invocation of ./netbsd etc. [Alex] Add a note about test image well-known ssh key. [Eric]
Build tests in one 32 bit Linux guest and three BSD images are defined in this series. This is a more managable way than the manually maintained virtual machines in patchew. Also, one big advantage of ephemeral VMs over long running guests is the reduced RAM usage of host, which makes it possible to have one host test all these BSD variants and probably more.
The BSD guest templates are manually prepared following
https://wiki.qemu.org/Hosts/BSD
as it is not easy to automate. (The ideal approach is like the ubuntu.i386 script, which configures the guest on top of an official released image, fully automatically.)
Need for help: "gmake check" in the added OpenBSD image fails with -ENOMEM errors, even if I change "-m 2G" to "-m 8G" when starting VM. Ideas? And there is a warning from ./configure about OpenBSD going to be unsupported in coming releases, is it still the case?
Fam
Fam Zheng (13):
gitignore: Ignore vm test images
qemu.py: Add "wait()" method
scripts: Add archive-source.sh
tests: Add a test key pair
tests: Add vm test lib
tests: Add ubuntu.i386 image
tests: Add FreeBSD image
tests: Add NetBSD image
tests: Add OpenBSD image
Makefile: Add rules to run vm tests
MAINTAINERS: Add tests/vm entry
tests: Add README for vm tests
docker: Use archive-source.py
.gitignore | 1 + MAINTAINERS | 1 + Makefile | 2 + configure | 2 +- scripts/archive-source.sh | 51 ++++++++ scripts/qemu.py | 7 ++ tests/.gitignore | 1 + tests/docker/Makefile.include | 14 +-- tests/docker/run | 8 +- tests/keys/README | 6 + tests/keys/id_rsa | 27 +++++ tests/keys/id_rsa.pub | 1 + tests/vm/Makefile.include | 42 +++++++ tests/vm/README | 89 ++++++++++++++ tests/vm/basevm.py | 262 ++++++++++++++++++++++++++++++++++++++++++ tests/vm/freebsd | 42 +++++++ tests/vm/netbsd | 42 +++++++ tests/vm/openbsd | 43 +++++++ tests/vm/ubuntu.i386 | 89 ++++++++++++++ 19 files changed, 710 insertions(+), 20 deletions(-) create mode 100755 scripts/archive-source.sh create mode 100644 tests/keys/README create mode 100644 tests/keys/id_rsa create mode 100644 tests/keys/id_rsa.pub create mode 100644 tests/vm/Makefile.include create mode 100644 tests/vm/README create mode 100755 tests/vm/basevm.py create mode 100755 tests/vm/freebsd create mode 100755 tests/vm/netbsd create mode 100755 tests/vm/openbsd create mode 100755 tests/vm/ubuntu.i386
Signature · 1 line
2.13.5