Skip to content

Commit

Permalink
ci: run tests on a nftables only system
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Reber <[email protected]>
  • Loading branch information
adrianreber committed Feb 4, 2025
1 parent 8c226f6 commit 9214932
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/workflows/nftables-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Nftables bases testing

on: [push, pull_request]

# Cancel any preceding run on the pull request.
concurrency:
group: nftables-test-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/criu-dev' }}

jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Remove iptables
run: sudo apt remove -y iptables; dpkg -l; ls -la /usr/sbin
- name: Build with nftables network locking backend
run: sudo make -C scripts/ci local COMPILE_FLAGS="NETWORK_LOCK_DEFAULT=NETWORK_LOCK_NFTABLES"
7 changes: 6 additions & 1 deletion scripts/ci/run-ci-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,13 @@ if [ "${CD_TO_TOP}" = "1" ]; then
fi

export GCOV CC
if [ -z "$COMPILE_FLAGS" ]; then
COMPILE_FLAGS="V=1"
else
COMPILE_FLAGS="V=1 $COMPILE_FLAGS"
fi
$CC --version
time make CC="$CC" -j4 V=1
time make CC="$CC" -j4 "$COMPILE_FLAGS"

./criu/criu -v4 cpuinfo dump || :
./criu/criu -v4 cpuinfo check || :
Expand Down

0 comments on commit 9214932

Please sign in to comment.