-
Notifications
You must be signed in to change notification settings - Fork 37
61 lines (48 loc) · 1.32 KB
/
linux.yml
File metadata and controls
61 lines (48 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Linux interop tests
on:
push:
branches: [ 'master', 'main', 'release/**' ]
pull_request:
branches: [ '*' ]
jobs:
linux_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Update repo
run: |
sudo apt-get update
sudo apt-get install -y libwolfssl-dev
sudo modprobe tun
- name: Build linux tests
run: |
mkdir -p build/port
make
- name: Run standalone "event loop" test
run: |
sudo ./build/test-evloop
sudo killall tcpdump || true
- name: Run standalone wolfssl test
run: |
sudo ./build/test-wolfssl
sudo killall tcpdump || true
- name: Run standalone forwarding test
run: |
sudo ./build/test-wolfssl-forwarding
- name: Run standalone TTL expired test
run: |
./build/test-ttl-expired
- name: Testing ICMP socket by stealing system calls in ping
run: |
sudo LD_PRELOAD=$PWD/libwolfip.so ping -c 5 10.10.10.1
- name: Install check
run: |
sudo apt-get install -y check
- name: Build unit tests
run: |
make unit
- name: Run unit tests
run: |
build/test/unit