gitlab-ci: Build regression test suite in CI

Even if we can't run the regression tests in our GitLab CI environment, we can at least ensure the binaries in the regression test suite compile successfully.

MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/1414
Approved-by: Steve Beattie <steve+gitlab@nxnw.org>
Merged-by: Steve Beattie <steve+gitlab@nxnw.org>
This commit is contained in:
Steve Beattie 2024-11-07 20:06:30 +00:00
commit 5b98577a4d

View file

@ -125,6 +125,17 @@ test-profiles:
- make -C profiles check-abstractions.d - make -C profiles check-abstractions.d
- make -C profiles check-local - make -C profiles check-local
# Build the regression tests (don't run them because that needs kernel access)
test-build-regression:
stage: test
needs: ["build-all"]
extends:
- .ubuntu-before_script
script:
- *install-c-build-deps
# Additional dependencies required by regression tests
- apt-get install --no-install-recommends -y attr libdbus-1-dev liburing-dev
- make -C tests/regression/apparmor -j $(nproc)
shellcheck: shellcheck:
stage: test stage: test
needs: [] needs: []