2019-08-31 09:04:46 +00:00
|
|
|
name: Ubuntu
|
|
|
|
|
2020-09-15 11:05:27 +00:00
|
|
|
on: [push, pull_request]
|
2019-08-31 09:04:46 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2020-01-05 07:21:39 +00:00
|
|
|
name: Build on Ubuntu
|
2019-08-31 09:04:46 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: go build
|
|
|
|
|
2019-12-26 06:12:42 +00:00
|
|
|
test-unit:
|
|
|
|
name: Unit Testing
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
|
2019-08-31 09:04:46 +00:00
|
|
|
- name: Install dependencies for tests
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
2023-01-24 15:32:04 +00:00
|
|
|
sudo apt-get install qemu-system-x86
|
2019-08-31 09:04:46 +00:00
|
|
|
|
|
|
|
- name: Bootstrap
|
|
|
|
run: ./tools/qemu-debian-img/bootstrap.sh
|
|
|
|
|
2019-12-26 06:12:42 +00:00
|
|
|
- name: Unit Testing
|
2019-08-31 09:04:46 +00:00
|
|
|
run: go test -parallel 1 -v ./...
|
2019-12-26 06:12:42 +00:00
|
|
|
|
|
|
|
test-end-to-end:
|
|
|
|
name: End-to-End Testing
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: go build
|
|
|
|
|
|
|
|
- name: Install dependencies for tests
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
2023-01-24 15:32:04 +00:00
|
|
|
sudo apt-get install qemu-system-x86
|
2019-12-26 06:12:42 +00:00
|
|
|
|
|
|
|
- name: End-to-End Testing [Kernel Module]
|
|
|
|
run: |
|
|
|
|
cd examples/kernel-module
|
2023-04-06 14:50:58 +00:00
|
|
|
../../out-of-tree --log-level=debug kernel autogen --max=1
|
|
|
|
../../out-of-tree --log-level=debug pew --qemu-timeout=10m
|
2019-12-26 06:12:42 +00:00
|
|
|
|
|
|
|
- name: End-to-End Testing [Kernel Exploit]
|
|
|
|
run: |
|
|
|
|
cd examples/kernel-exploit
|
2023-04-06 14:50:58 +00:00
|
|
|
../../out-of-tree --log-level=debug kernel autogen --max=1
|
|
|
|
../../out-of-tree --log-level=debug pew --threshold=0 --qemu-timeout=10m
|
2023-04-06 11:50:18 +00:00
|
|
|
|
2023-04-06 12:15:52 +00:00
|
|
|
test-end-to-end-kernels:
|
2023-04-06 12:55:24 +00:00
|
|
|
name: End-to-End Testing (kernels)
|
2023-04-06 12:15:52 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: go build
|
|
|
|
|
|
|
|
- name: Install dependencies for tests
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install qemu-system-x86
|
|
|
|
|
2023-04-06 13:38:33 +00:00
|
|
|
- name: End-to-End Testing [Install one Ubuntu 18.04 kernel]
|
2023-04-06 12:11:35 +00:00
|
|
|
run: |
|
2023-04-06 14:50:58 +00:00
|
|
|
./out-of-tree --log-level=debug kernel install --distro=Ubuntu --ver=18.04 --kernel=4.15.0-70-generic
|
2023-04-06 12:11:35 +00:00
|
|
|
|
2023-04-06 13:38:33 +00:00
|
|
|
- name: End-to-End Testing [Reinstall one Ubuntu 18.04 kernel]
|
2023-04-06 12:11:35 +00:00
|
|
|
run: |
|
2023-04-06 14:50:58 +00:00
|
|
|
./out-of-tree --log-level=debug kernel install --distro=Ubuntu --ver=18.04 --kernel=4.15.0-70-generic --force
|
2023-04-06 12:11:35 +00:00
|
|
|
|
2023-04-06 13:38:33 +00:00
|
|
|
- name: End-to-End Testing [Install one Ubuntu 22.04 kernel w/o headers]
|
2023-04-06 12:55:24 +00:00
|
|
|
run: |
|
2023-04-06 14:50:58 +00:00
|
|
|
./out-of-tree --log-level=debug kernel install --distro=Ubuntu --ver=22.04 --kernel=5.19.0-28-generic --no-headers
|
2023-04-06 12:55:24 +00:00
|
|
|
|
2023-04-06 13:38:33 +00:00
|
|
|
- name: End-to-End Testing [Install one CentOS 7 kernel]
|
2023-04-06 11:50:18 +00:00
|
|
|
run: |
|
2023-04-06 14:50:58 +00:00
|
|
|
./out-of-tree --log-level=debug kernel install --distro=CentOS --ver=7 --kernel=3.10.0-862.6.3
|
2023-04-06 11:50:18 +00:00
|
|
|
|
2023-04-06 13:38:33 +00:00
|
|
|
- name: End-to-End Testing [Install one CentOS 7 kernel w/o headers]
|
2023-04-06 12:55:24 +00:00
|
|
|
run: |
|
2023-04-06 14:50:58 +00:00
|
|
|
./out-of-tree --log-level=debug kernel install --distro=CentOS --ver=7 --kernel=3.10.0-1160.71.1 --no-headers
|
2023-04-06 12:55:24 +00:00
|
|
|
|
2023-04-06 13:38:33 +00:00
|
|
|
- name: End-to-End Testing [Install one CentOS 8 kernel]
|
|
|
|
run: |
|
2023-04-06 14:50:58 +00:00
|
|
|
./out-of-tree --log-level=debug kernel install --distro=CentOS --ver=8 --kernel=4.18.0-348.7.1
|
2023-04-06 13:38:33 +00:00
|
|
|
|
2023-04-06 12:55:24 +00:00
|
|
|
test-end-to-end-genall:
|
|
|
|
name: End-to-End Testing (genall)
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: go build
|
|
|
|
|
|
|
|
- name: Install dependencies for tests
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install qemu-system-x86
|
|
|
|
|
2023-04-06 12:36:06 +00:00
|
|
|
- name: End-to-End Testing [Install all Ubuntu 22.04 kernels]
|
2023-04-06 11:50:18 +00:00
|
|
|
run: |
|
2023-04-06 14:50:58 +00:00
|
|
|
./out-of-tree --log-level=debug kernel genall --distro=Ubuntu --ver=22.04
|