Skip to content

Commit

Permalink
ci: Add make check-kernel to GitHub actions ci.
Browse files Browse the repository at this point in the history
This patch adds 'make check-kernel' to the GitHub actions ci.
However, to do this, some additional changes were needed. First,
some of the missing test and package dependencies had to be added.
Finally, we added an option to the GitHub run matrix that allows
the tests to be split up, to avoid lengthy single test runs.

Signed-off-by: Eelco Chaudron <[email protected]>
Acked-by: Simon Horman <[email protected]>
  • Loading branch information
chaudron committed Dec 20, 2023
1 parent a80883f commit e7b51b3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .ci/linux-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ else
[ "$(cat /proc/sys/vm/nr_hugepages)" = '1024' ]
export DPDK_EAL_OPTIONS="--lcores 0@1,1@1,2@1"
fi
$run_as_root make $testsuite TESTSUITEFLAGS=${JOBS} RECHECK=yes
$run_as_root make $testsuite TESTSUITEFLAGS="${JOBS} ${TEST_RANGE}" \
RECHECK=yes
done
fi

Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ jobs:
env:
dependencies: |
automake libtool gcc bc libjemalloc2 libjemalloc-dev libssl-dev \
llvm-dev libnuma-dev libpcap-dev selinux-policy-dev libbpf-dev
llvm-dev libnuma-dev libpcap-dev selinux-policy-dev libbpf-dev \
lftp libreswan
ASAN: ${{ matrix.asan }}
UBSAN: ${{ matrix.ubsan }}
CC: ${{ matrix.compiler }}
Expand All @@ -87,6 +88,7 @@ jobs:
OPTS: ${{ matrix.opts }}
STD: ${{ matrix.std }}
TESTSUITE: ${{ matrix.testsuite }}
TEST_RANGE: ${{ matrix.test_range }}

name: linux ${{ join(matrix.*, ' ') }}
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -167,6 +169,13 @@ jobs:
- compiler: gcc
testsuite: check-ovsdb-cluster

- compiler: gcc
testsuite: check-kernel
test_range: "-100"
- compiler: gcc
testsuite: check-kernel
test_range: "100-"

steps:
- name: checkout
uses: actions/checkout@v3
Expand Down
4 changes: 3 additions & 1 deletion python/test_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
pytest
netaddr
pyftpdlib
pyparsing
pytest
tftpy

0 comments on commit e7b51b3

Please sign in to comment.