Skip to content

Gitlab CI and test framework improvements

Glenn Washburn grub-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest17 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17tests: Make sure LANG is set properly for iso9660_testtests/iso9660_test.in+6 -00 replies
2/17tests: Fix partmap_test for arm*-efi, disk numbering has changedtests/partmap_test.in+1 -10 replies
3/17tests: When checking squashfs fstime, use superblock last modified timetests/util/grub-fs-tester.in+6 -00 replies
4/17tests: Fail immediately when grub-shell fails and do not occlude the error codetests/ahci_test.in tests/cdboot_test.in tests/core_compress_test.in +16 more+49 -190 replies
5/17grub-shell: Allow specifying non-default trim line contentstests/util/grub-shell.in+9 -50 replies
6/17grub-shell: Trim line should always be matched from the beginning of the linetests/util/grub-shell.in+2 -20 replies
7/17grub-shell: Only show grub-mkrescue output if it returns an errortests/util/grub-shell.in+15 -20 replies
8/17grub-shell: Allow setting default timeout via GRUB_SHELL_DEFAULT_TIMEOUT envvartests/util/grub-shell.in+1 -10 replies
9/17grub-shell: Put all generated files into working dir and use better file namestests/util/grub-shell.in+13 -90 replies
10/17grub-shell: Add grub output logfile with grub-shell --debugtests/util/grub-shell.in+6 -30 replies
11/17grub-shell: Set exit status to qemu exit statustests/util/grub-shell.in+8 -40 replies
12/17tests: Allow turning on shell tracing from environment variablestests/util/grub-fs-tester.in tests/util/grub-shell.in+6 -10 replies
13/17grub-shell: Add --verbose to mkrescue when $debug is greater than 2tests/util/grub-shell.in+3 -10 replies
14/17grub-shell: Use malta qemu-mips machine type instead off non-existant indytests/util/grub-shell.in+1 -10 replies
15/17grub-shell: Update qemu UEFI firmware names to be more generictests/util/grub-shell.in+3 -30 replies
16/17ci: Add .gitlab-ci.yml for continuous integration with Gitlab CI.ci/build.sh .ci/functions.gitlab.sh .ci/functions.sh +4 more+1595 -00 replies
17/17keep: remove a lot of cruft that we probably want to reuse at some point.ci/build.sh .ci/process-tests.sh .ci/test.sh +1 more+0 -5810 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [CI 00/17] Gitlab CI and test framework improvements

This patch series is divided into roughly three sections: modifications of tests, improvements to grub-shell, and the CI patch itself. I have other improvements to testing coming, but I consider these more essential to the quality of the CI tests, or highly desirable. Aside from modification of qemu firmware paths to make them more generic, the changes should not be visible to current testers.

The CI change is the addition of a .gitlab-ci.yml file which is the GitLab specific CI config file and a .ci directory with scripts used by the CI config. The scripts in the .ci dir are meant to be generic and thus usable by other CI platforms. There is probably more that can be pulled out of the .gitlab-ci.yml file for use in common with other CI configs, but I decided those can be pulled out as needed.

The successful CI run can be viewed here:
https://gitlab.com/gnu-grub/grub/-/pipelines/258485608

Glenn

Glenn Washburn (17):
tests: Make sure LANG is set properly for iso9660_test
tests: Fix partmap_test for arm*-efi, disk numbering has changed
tests: When checking squashfs fstime, use superblock last modified
time
tests: Fail immediately when grub-shell fails and do not occlude the
error code
grub-shell: Allow specifying non-default trim line contents
grub-shell: Trim line should always be matched from the beginning of
the line
grub-shell: Only show grub-mkrescue output if it returns an error
grub-shell: Allow setting default timeout via
GRUB_SHELL_DEFAULT_TIMEOUT envvar
grub-shell: Put all generated files into working dir and use better
file names
grub-shell: Add grub output logfile with grub-shell --debug
grub-shell: Set exit status to qemu exit status
tests: Allow turning on shell tracing from environment variables
grub-shell: Add --verbose to mkrescue when $debug is greater than 2
grub-shell: Use malta qemu-mips machine type instead off non-existant
indy
grub-shell: Update qemu UEFI firmware names to be more generic
ci: Add .gitlab-ci.yml for continuous integration with Gitlab CI
keep: remove a lot of cruft that we probably want to reuse at some
point

 .ci/build.sh                   |  56 +++
 .ci/functions.gitlab.sh        |  30 ++
 .ci/functions.sh               |  30 ++
 .ci/make-images.sh             |  71 ++++
 .ci/process-tests.sh           |  97 +++++
 .ci/test.sh                    |  98 +++++
 .gitlab-ci.yml                 | 632 +++++++++++++++++++++++++++++++++
 tests/ahci_test.in             |   6 +-
 tests/cdboot_test.in           |   3 +-
 tests/core_compress_test.in    |   6 +-
 tests/ehci_test.in             |   6 +-
 tests/fddboot_test.in          |   3 +-
 tests/grub_cmd_date.in         |   3 +-
 tests/grub_cmd_test.in         |   1 +
 tests/grub_script_blockarg.in  |   2 +-
 tests/grub_script_expansion.in |   3 +-
 tests/gzcompress_test.in       |   3 +-
 tests/hddboot_test.in          |   3 +-
 tests/iso9660_test.in          |   6 +
 tests/lzocompress_test.in      |   3 +-
 tests/netboot_test.in          |   3 +-
 tests/ohci_test.in             |   6 +-
 tests/partmap_test.in          |   6 +-
 tests/pata_test.in             |   3 +-
 tests/test_sha512sum.in        |   1 +
 tests/uhci_test.in             |   6 +-
 tests/util/grub-fs-tester.in   |   8 +
 tests/util/grub-shell.in       |  87 +++--
 tests/xzcompress_test.in       |   3 +-
 29 files changed, 1138 insertions(+), 47 deletions(-)
 create mode 100755 .ci/build.sh
 create mode 100644 .ci/functions.gitlab.sh
 create mode 100644 .ci/functions.sh
 create mode 100755 .ci/make-images.sh
 create mode 100755 .ci/process-tests.sh
 create mode 100755 .ci/test.sh
 create mode 100644 .gitlab-ci.yml
Signature · 1 line
2.27.0