Raw sockets #122
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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: Testing RAW AF_INET sockets via raw_ping | |
| run: | | |
| sudo ./build/raw_ping 10.10.10.1 | |
| - name: Testing RAW AF_PACKET sockets via packet_ping | |
| run: | | |
| sudo ./build/packet_ping wtcp0 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 |