Skip to content

redhat/self-test: Add new tests

Prarit Bhargava requested to merge prarit/kernel-ark:add-new-self-tests into os-build

Making changes to the Makefiles has been difficult and revealed minor
issues with even the simplest of changes. Having a test that compares the
Makefile variables to a "known good" set, and being able to compare the
kernel spec file to a "known good" spec file will help with testing future
changes.

I have chosen these 4 ARK commits to test with because they result in different
versioning in the variables and the kernel specfile:

78e36f3b := 5.17.0 merge window (5.16 + additional changes before -rc1)
result: 5.17.0-0.rc0.78e36f3b.6.test
2585cf9d := 5.16-rc5
result: 5.16.0-0.rc5.6.test
df0cc57e := 5.16
result: 5.16.0-6.test
fce15c45 := 5.16-rc5 + 2 additional commits
result: 5.16.0-0.rc5.fce15c45.6.test

This changeset provides a better "dist-dump-variables" test that also
compares the resulting spec files. The test code does introduce two new
Makefile.variables entries both of which are clearly marked as unstable.

The genspec.sh change is minor, and is just a reorganization of the code
to speed up the creation of test files.

As indicated in the last commit, changelog generation is not yet tested.
That will come at a later date. Additional tests beyond these tests will
also be added at a later date.

Signed-off-by: Prarit Bhargava prarit@redhat.com

Edited by Prarit Bhargava

Merge request reports