Skip to content

Commit

Permalink
Freebsd CI and Remove CirrusCI (#1460)
Browse files Browse the repository at this point in the history
* remove all ci for testing

* test freebsd

* test

* update

* Revert "remove all ci for testing"

This reverts commit e1368e0.

* final

* lint

* using names for each command

* remove cirrus

* Revert "using names for each command"

This reverts commit ea47e83.
  • Loading branch information
tigercosmos authored Jun 24, 2024
1 parent 2ef31f0 commit 401b5db
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 29 deletions.
28 changes: 0 additions & 28 deletions .cirrus.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,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
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
[![PcapPlusPlus Logo](https://pcapplusplus.github.io/img/logo/logo_color.png)](https://pcapplusplus.github.io)

[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/seladb/PcapPlusPlus/build_and_test.yml?branch=master&label=Actions&logo=github&style=flat)](https://github.com/seladb/PcapPlusPlus/actions?query=workflow%3A%22Build+and+test%22)
[![Cirrus CI - Base Branch Build Status](https://img.shields.io/cirrus/github/seladb/PcapPlusPlus?label=Cirrus%20CI&logo=cirrusci&style=flat)](https://cirrus-ci.com/github/seladb/PcapPlusPlus)
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/seladb/PcapPlusPlus/codeql.yml?branch=master&label=CodeQL&logo=github&style=flat)](https://github.com/seladb/PcapPlusPlus/actions?query=workflow%3A%22CodeQL%22)
[![Codecov](https://img.shields.io/codecov/c/github/seladb/PcapPlusPlus?logo=codecov&logoColor=white)](https://app.codecov.io/github/seladb/PcapPlusPlus)
[![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/seladb/PcapPlusPlus/badge)](https://scorecard.dev/viewer/?uri=github.com/seladb/PcapPlusPlus)
Expand Down

0 comments on commit 401b5db

Please sign in to comment.