Skip to content

Commit

Permalink
final
Browse files Browse the repository at this point in the history
  • Loading branch information
tigercosmos committed Jun 23, 2024
1 parent 4aad3ef commit b24f9e6
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 40 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,44 @@ jobs:
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

freebsd:
runs-on: ubuntu-latest
strategy:
matrix:
version: ["14.0", "13.2"]
steps:
- uses: actions/checkout@v4
- name: Test in FreeBSD
id: test
uses: vmactions/freebsd-vm@v1
with:
release: ${{ matrix.version }}
usesh: true
prepare: |
pkg install -y python3 bash cmake git gmake gsed libpcap tcpreplay
run: |
echo "Building PcapPlusPlus"
chmod a+rw /dev/bpf*
cmake -S . -B Dist
cmake --build Dist -j$(sysctl -n hw.ncpu)
echo "Setting up the network interface for the tests"
# Get the first interface name that is not 'lo'
interface_name=$(ifconfig -l | tr ' ' '\n' | grep -v '^lo' | head -n 1)
ifconfig "$interface_name" promisc
echo "Testing PcapPlusPlus"
python3 -m ensurepip
python3 -m pip install -r ci/run_tests/requirements.txt
python3 ci/run_tests/run_tests.py --interface "$interface_name"
echo "Testing PcapPlusPlus examples"
cd Tests/ExamplesTest
python3 -m ensurepip
python3 -m pip install -r requirements.txt
python3 -m pytest --interface "$interface_name" --root-path=../../Dist/examples_bin
android:
strategy:
matrix:
Expand Down
40 changes: 0 additions & 40 deletions .github/workflows/freebsd.yml

This file was deleted.

0 comments on commit b24f9e6

Please sign in to comment.