mirror of
https://github.com/openvswitch/ovs
synced 2025-08-28 12:58:00 +00:00
ci: Add make check-kernel to GitHub actions ci.
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 <echaudro@redhat.com> Acked-by: Simon Horman <horms@ovn.org>
This commit is contained in:
parent
a80883f768
commit
e7b51b38fe
@ -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
|
||||
|
||||
|
11
.github/workflows/build-and-test.yml
vendored
11
.github/workflows/build-and-test.yml
vendored
@ -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 }}
|
||||
@ -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
|
||||
@ -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
|
||||
|
@ -1,3 +1,5 @@
|
||||
pytest
|
||||
netaddr
|
||||
pyftpdlib
|
||||
pyparsing
|
||||
pytest
|
||||
tftpy
|
||||
|
Loading…
x
Reference in New Issue
Block a user