Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
tigercosmos committed Jun 23, 2024
1 parent 9dbd63b commit 7c47ca7
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/freebsd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ jobs:
run: |
chmod a+rw /dev/bpf*
cmake -S . -B Dist
cmake --build Dist -j 2
cmake --build Dist -j$(sysctl -n hw.ncpu)
ifconfig
# 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
ifconfig vtnet0 promisc
python -m ensurepip
python -m pip install -r ci/run_tests/requirements.txt
python ci/run_tests/run_tests.py --interface vtnet0
python3 -m ensurepip
python3 -m pip install -r ci/run_tests/requirements.txt
python3 ci/run_tests/run_tests.py --interface "$interface_name"
cd Tests/ExamplesTest
python -m ensurepip
python -m pip install -r requirements.txt
python -m pytest --interface vtnet0 --root-path=../../Dist/examples_bin
python3 -m ensurepip
python3 -m pip install -r requirements.txt
python3 -m pytest --interface "$interface_name" --root-path=../../Dist/examples_bin

0 comments on commit 7c47ca7

Please sign in to comment.