-
Notifications
You must be signed in to change notification settings - Fork 369
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: use Testing Farm for running the testsuite
Due to issues with the MacOS + Vagrant setup, selinux-testsuite has migrated its CI to Testing Farm [1][2], so let's use it for running the testsuite here, too. We can import the test definitions from the testsuite repo and just add a setup "test" at the beginning that builds and installs the userspace from git. [1] https://testing-farm.io/ [2] SELinuxProject/selinux-testsuite@d75675e Signed-off-by: Ondrej Mosnacek <[email protected]> Acked-by: James Carter <[email protected]>
- Loading branch information
1 parent
9833f0d
commit ee667ed
Showing
10 changed files
with
66 additions
and
314 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Run SELinux testsuite in Testing Farm | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
tf_testsuite: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
arch: [x86_64, aarch64] | ||
steps: | ||
- name: Schedule test on Testing Farm | ||
uses: sclorg/testing-farm-as-github-action@main | ||
with: | ||
api_key: ${{ secrets.TESTING_FARM_API_TOKEN }} | ||
arch: ${{ matrix.arch }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/ci: | ||
summary: Run the testsuite with userspace from git | ||
# Environment for the testsuite setup | ||
environment: | ||
STS_ROOT_DOMAIN: unconfined_t | ||
STS_KERNEL: latest | ||
discover: | ||
- how: shell | ||
tests: | ||
- name: /prepare-selinux-userspace | ||
summary: Build and install SELinux userspace from git | ||
order: 0 | ||
duration: 10m | ||
require: | ||
- audit-libs-devel | ||
- bison | ||
- bzip2-devel | ||
- CUnit-devel | ||
- diffutils | ||
- flex | ||
- gcc | ||
- gettext | ||
- glib2-devel | ||
- make | ||
- libcap-devel | ||
- libcap-ng-devel | ||
- pam-devel | ||
- pcre2-devel | ||
- python3-devel | ||
- python3-pip | ||
- python3-setuptools | ||
- python3-wheel | ||
- swig | ||
- xmlto | ||
test: | | ||
set -ex | ||
|
||
# Build and replace userspace components | ||
make clean distclean | ||
make -j"$(nproc)" LIBDIR=/usr/lib64 SHLIBDIR=/lib64 install | ||
make -j"$(nproc)" LIBDIR=/usr/lib64 SHLIBDIR=/lib64 install-pywrap | ||
make -j"$(nproc)" LIBDIR=/usr/lib64 SHLIBDIR=/lib64 relabel | ||
- how: fmf | ||
url: https://github.com/SELinuxProject/selinux-testsuite | ||
ref: main | ||
filter: tag:-ci & tag:-nfs | ||
execute: | ||
how: tmt |