Skip to content

Commit

Permalink
ci: Add make check-offloads to GitHub actions ci.
Browse files Browse the repository at this point in the history
This patch also adds the 'CHECK_GITHUB_ACTION' macro to skip
tests that won't execute successfully through GitHub actions.
We could not use the -k !keyword option, as it can not be
combined with a range of tests.

Signed-off-by: Eelco Chaudron <[email protected]>
Acked-by: Simon Horman <[email protected]>
  • Loading branch information
chaudron committed Dec 20, 2023
1 parent e7b51b3 commit 15f1793
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .ci/linux-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ else
run_as_root=
if [ "$testsuite" != "check" ] && \
[ "$testsuite" != "check-ovsdb-cluster" ] ; then
run_as_root="sudo -E PATH=$PATH"
run_as_root="sudo -E PATH=$PATH GITHUB_ACTIONS=$GITHUB_ACTIONS"
fi
if [ "${testsuite##*dpdk}" != "$testsuite" ]; then
sudo sh -c 'echo 1024 > /proc/sys/vm/nr_hugepages' || true
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,13 @@ jobs:
testsuite: check-kernel
test_range: "100-"

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

steps:
- name: checkout
uses: actions/checkout@v3
Expand Down
2 changes: 2 additions & 0 deletions tests/system-offloads-traffic.at
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ AT_CLEANUP
AT_SETUP([offloads - check interface meter offloading - offloads disabled])
AT_KEYWORDS([dp-meter])
AT_SKIP_IF([test $HAVE_NC = "no"])
OVS_CHECK_GITHUB_ACTION()
OVS_TRAFFIC_VSWITCHD_START()

AT_CHECK([ovs-ofctl -O OpenFlow13 add-meter br0 'meter=1 pktps bands=type=drop rate=1'])
Expand Down Expand Up @@ -240,6 +241,7 @@ AT_CLEANUP

AT_SETUP([offloads - check interface meter offloading - offloads enabled])
AT_KEYWORDS([offload-meter])
OVS_CHECK_GITHUB_ACTION()
CHECK_TC_INGRESS_PPS()
AT_SKIP_IF([test $HAVE_NC = "no"])
OVS_TRAFFIC_VSWITCHD_START([], [], [-- set Open_vSwitch . other_config:hw-offload=true])
Expand Down

0 comments on commit 15f1793

Please sign in to comment.