1
0

ci: add kernel module tests to e2e matrix

This commit is contained in:
dump_stack() 2023-05-17 10:24:28 +00:00
parent a68ceacb43
commit 3de5f5e12d
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
5 changed files with 18 additions and 14 deletions

View File

@ -1,4 +1,4 @@
name: Debian kernels cache name: Debian
on: on:
workflow_dispatch: workflow_dispatch:
@ -13,7 +13,7 @@ on:
jobs: jobs:
debian-kernel-metadata-cache: debian-kernel-metadata-cache:
name: Cache Debian kernels metadata name: Cache metadata
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
@ -44,7 +44,7 @@ jobs:
run: s3cmd put --acl-public ~/.out-of-tree/debian.cache s3://out-of-tree/1.0.0/ --host=fra1.digitaloceanspaces.com --host-bucket='%(bucket)s.fra1.digitaloceanspaces.com' --access_key=${{ secrets.DIGITALOCEAN_SPACES_ACCESS_KEY }} --secret_key=${{ secrets.DIGITALOCEAN_SPACES_SECRET_KEY }} run: s3cmd put --acl-public ~/.out-of-tree/debian.cache s3://out-of-tree/1.0.0/ --host=fra1.digitaloceanspaces.com --host-bucket='%(bucket)s.fra1.digitaloceanspaces.com' --access_key=${{ secrets.DIGITALOCEAN_SPACES_ACCESS_KEY }} --secret_key=${{ secrets.DIGITALOCEAN_SPACES_SECRET_KEY }}
debian-kernel-packages-mirror: debian-kernel-packages-mirror:
name: Mirror Debian kernel packages name: Mirror packages
needs: debian-kernel-metadata-cache needs: debian-kernel-metadata-cache
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:

View File

@ -1,4 +1,4 @@
name: Debian images name: Debian
on: on:
workflow_dispatch: workflow_dispatch:
@ -9,7 +9,7 @@ on:
jobs: jobs:
images: images:
name: Generate Debian images name: Qemu Images
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: digitalocean/action-doctl@v2 - uses: digitalocean/action-doctl@v2

View File

@ -1,4 +1,4 @@
name: Oracle Linux images name: Oracle Linux
on: on:
workflow_dispatch: workflow_dispatch:
@ -9,7 +9,7 @@ on:
jobs: jobs:
images-oraclelinux: images-oraclelinux:
name: Generate Oracle Linux images name: Qemu Images
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: digitalocean/action-doctl@v2 - uses: digitalocean/action-doctl@v2

View File

@ -1,4 +1,4 @@
name: Build on macOS name: macOS
on: on:
workflow_dispatch: workflow_dispatch:
@ -12,7 +12,7 @@ on:
jobs: jobs:
build: build:
name: Build on macOS name: Build
runs-on: macOS-latest runs-on: macOS-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1

View File

@ -39,7 +39,7 @@ jobs:
go test -parallel 1 -v ./... go test -parallel 1 -v ./...
test-end-to-end-examples: test-end-to-end-examples:
name: E2E Testing (Examples) name: E2E T. Examples
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
@ -76,13 +76,14 @@ jobs:
path: /home/runner/.out-of-tree/logs path: /home/runner/.out-of-tree/logs
test-end-to-end: test-end-to-end:
name: E2E Testing name: E2E T.
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 60 timeout-minutes: 60
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
type: [ Script, Module ]
os: [ os: [
{ distro: Ubuntu, release: 12.04 }, { distro: Ubuntu, release: 12.04 },
{ distro: Ubuntu, release: 14.04 }, { distro: Ubuntu, release: 14.04 },
@ -115,13 +116,14 @@ jobs:
sudo apt-get update sudo apt-get update
sudo apt-get install qemu-system-x86 sudo apt-get install qemu-system-x86
- name: End-to-End Testing [${{ matrix.os.distro }} ${{ matrix.os.release }}] - name: End-to-End Testing ${{ matrix.type }} [${{ matrix.os.distro }} ${{ matrix.os.release }}]
shell: bash
run: | run: |
mkdir test mkdir test
cd test cd test
echo 'name = "out-of-tree script"' >> .out-of-tree.toml echo 'name = "test >> .out-of-tree.toml
echo 'type = "script"' >> .out-of-tree.toml echo 'type = "${{ matrix.type }}"' >> .out-of-tree.toml
echo 'script = "script.sh"' >> .out-of-tree.toml echo 'script = "script.sh"' >> .out-of-tree.toml
echo '[[supported_kernels]]' >> .out-of-tree.toml echo '[[supported_kernels]]' >> .out-of-tree.toml
echo 'distro_type = "${{ matrix.os.distro }}"' >> .out-of-tree.toml echo 'distro_type = "${{ matrix.os.distro }}"' >> .out-of-tree.toml
@ -130,6 +132,8 @@ jobs:
echo -e '#!/bin/sh\necho ok' >> script.sh echo -e '#!/bin/sh\necho ok' >> script.sh
cp ../examples/kernel-module/{module.c,Makefile,test.sh} .
../out-of-tree --log-level=debug kernel list-remote --distro=${{ matrix.os.distro }} --ver=${{ matrix.os.release }} ../out-of-tree --log-level=debug kernel list-remote --distro=${{ matrix.os.distro }} --ver=${{ matrix.os.release }}
../out-of-tree --log-level=debug kernel autogen --max=1 --shuffle ../out-of-tree --log-level=debug kernel autogen --max=1 --shuffle
../out-of-tree --log-level=debug pew --qemu-timeout=10m ../out-of-tree --log-level=debug pew --qemu-timeout=10m