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-05 19:50:59 +00:00
|
|
|
sudo ../../out-of-tree --log-level=debug kernel autogen --max=1
|
|
|
|
sudo ../../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-05 19:50:59 +00:00
|
|
|
sudo ../../out-of-tree --log-level=debug kernel autogen --max=1
|
|
|
|
sudo ../../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 12:36:06 +00:00
|
|
|
- name: End-to-End Testing [Install one Ubuntu kernel]
|
2023-04-06 12:11:35 +00:00
|
|
|
run: |
|
2023-04-06 12:12:28 +00:00
|
|
|
sudo ./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 12:36:06 +00:00
|
|
|
- name: End-to-End Testing [Reinstall one Ubuntu kernel]
|
2023-04-06 12:11:35 +00:00
|
|
|
run: |
|
2023-04-06 12:12:28 +00:00
|
|
|
sudo ./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 12:55:24 +00:00
|
|
|
- name: End-to-End Testing [Install one Ubuntu kernel w/o headers]
|
|
|
|
run: |
|
|
|
|
sudo ./out-of-tree --log-level=debug kernel install --distro=Ubuntu --ver=18.04 --kernel=4.15.0-70-generic --no-headers
|
|
|
|
|
2023-04-06 12:36:06 +00:00
|
|
|
- name: End-to-End Testing [Install one CentOS kernel]
|
2023-04-06 11:50:18 +00:00
|
|
|
run: |
|
2023-04-06 12:56:48 +00:00
|
|
|
sudo ./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 12:55:24 +00:00
|
|
|
- name: End-to-End Testing [Install one CentOS kernel w/o headers]
|
|
|
|
run: |
|
2023-04-06 12:56:48 +00:00
|
|
|
sudo ./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
|
|
|
|
|
|
|
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 12:36:06 +00:00
|
|
|
sudo ./out-of-tree --log-level=debug kernel genall --distro=Ubuntu --ver=22.04
|
2023-04-06 12:59:35 +00:00
|
|
|
|
|
|
|
- name: End-to-End Testing [Install 10 Ubuntu 20.04 kernels w/o headers]
|
|
|
|
run: |
|
|
|
|
sudo ./out-of-tree --log-level=debug kernel genall --distro=Ubuntu --ver=20.04 --no-headers
|