ci: parallel testing of examples
This commit is contained in:
parent
8a7439d7a9
commit
ef1ebf6f23
34
.github/workflows/ubuntu.yml
vendored
34
.github/workflows/ubuntu.yml
vendored
@ -41,6 +41,16 @@ jobs:
|
|||||||
test-end-to-end-examples:
|
test-end-to-end-examples:
|
||||||
name: E2E Testing (Examples)
|
name: E2E Testing (Examples)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
example: [
|
||||||
|
{ name: "Kernel Module", dir: "kernel-module", params: "" },
|
||||||
|
{ name: "Kernel Exploit", dir: "kernel-exploit", params: "--threshold=0" },
|
||||||
|
{ name: "Script", dir: "script", params: "" },
|
||||||
|
{ name: "Preload", dir: "preload", params: "" }
|
||||||
|
]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
|
|
||||||
@ -52,29 +62,11 @@ 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 [Kernel Module]
|
- name: End-to-End Testing [${{ matrix.example.name }}]
|
||||||
run: |
|
run: |
|
||||||
cd examples/kernel-module
|
cd ${{ matrix.example.dir }}
|
||||||
../../out-of-tree --log-level=debug kernel autogen --max=1
|
../../out-of-tree --log-level=debug kernel autogen --max=1
|
||||||
../../out-of-tree --log-level=debug pew --qemu-timeout=10m
|
../../out-of-tree --log-level=debug pew --qemu-timeout=10m cd ${{ matrix.example.params }}
|
||||||
|
|
||||||
- name: End-to-End Testing [Kernel Exploit]
|
|
||||||
run: |
|
|
||||||
cd examples/kernel-exploit
|
|
||||||
../../out-of-tree --log-level=debug kernel autogen --max=1
|
|
||||||
../../out-of-tree --log-level=debug pew --threshold=0 --qemu-timeout=10m
|
|
||||||
|
|
||||||
- name: End-to-End Testing [Script]
|
|
||||||
run: |
|
|
||||||
cd examples/script
|
|
||||||
../../out-of-tree --log-level=debug kernel autogen --max=1
|
|
||||||
../../out-of-tree --log-level=debug pew --qemu-timeout=10m
|
|
||||||
|
|
||||||
- name: End-to-End Testing [Preload]
|
|
||||||
run: |
|
|
||||||
cd examples/preload
|
|
||||||
../../out-of-tree --log-level=debug kernel autogen --max=1
|
|
||||||
../../out-of-tree --log-level=debug pew --qemu-timeout=10m
|
|
||||||
|
|
||||||
- name: Archive logs
|
- name: Archive logs
|
||||||
if: always()
|
if: always()
|
||||||
|
Loading…
Reference in New Issue
Block a user