Skip to content

run unit tests in the CI

Edwin Török xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5README: update minimum make to 4.1README+1 -14 replies
2/5CI: drop Ubuntu 16.04automation/gitlab-ci/build.yaml+0 -103 replies
3/5tools/test: introduce a 'make check' ruleMakefile tools/Makefile tools/Rules.mk +1 more+28 -21 reply
4/5automation/scripts/build: run unit tests in the CIautomation/scripts/build+2 -00 replies
5/5automation/scripts/build: group command output from parallel jobsautomation/scripts/build+5 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 0/5] run unit tests in the CI

Currently the unit tests aren't run in the CI during the build. Introduce a 'make check' rule that can run them all (in parallel if -j is specified).

To make reading the CI output easier make's -O flag is used (which buffers output per target, making it obvious which command failed).

TBD: what is the actual minimum version of binutils required by the existing tests, because Ubuntu 16.04 with binutil 2.26.1 failed.
That version of Ubuntu is EoL in a few days, so it is dropped from the CI build step. The actual containers and the xilinx-arm64 jobs are kept for now (although these should be updated to use bionic).

A followup patch series will rearrange the unit test make rules, so it is useful to test that all the unit tests worked both prior and following that change on all supported platforms in the CI.

For convenience this series is also available as a git repository:
https://gitlab.com/xen-project/people/edwintorok/xen/-/tree/private/edvint/run-ci?ref_type=heads

Edwin Török (5):
README: update minimum make to 4.1
CI: drop Ubuntu 16.04
tools/test: introduce a 'make check' rule automation/scripts/build: run unit tests in the CI automation/scripts/build: group command output from parallel jobs

 Makefile                        |  4 ++++
 README                          |  2 +-
 automation/gitlab-ci/build.yaml | 10 ----------
 automation/scripts/build        | 10 ++++++----
 tools/Makefile                  |  4 ++++
 tools/Rules.mk                  |  2 +-
 tools/tests/Makefile            | 20 +++++++++++++++++++-
 7 files changed, 35 insertions(+), 17 deletions(-)
Signature · 1 line
2.47.3