Skip to content

Commit

Permalink
tests: accept extra Mimic args as MIMIC_TEST_EXTRA_ARGS
Browse files Browse the repository at this point in the history
  • Loading branch information
hack3ric committed Dec 7, 2024
1 parent cb08892 commit 68e20ba
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,22 @@ on:

jobs:
test:
name: Run tests with ${{ matrix.flags.flags }}
name: Run tests with ${{ matrix.flags.flags }} ${{ matrix.flags.args }}
runs-on: ubuntu-24.04
strategy:
matrix:
flags:
- flags: CHECKSUM_HACK=kfunc
args: ''
desc: kfunc
- flags: CHECKSUM_HACK=kfunc USE_LIBXDP=1
desc: kfunc-libxdp
args: --use-libxdp
desc: kfunc-libxdp-use-libbpf
- flags: CHECKSUM_HACK=kfunc USE_LIBXDP=1
args: --use-libxdp
desc: kfunc-libxdp-use-libxdp
- flags: CHECKSUM_HACK=kprobe STRIP_BTF_EXT=1
args: ''
desc: kprobe-strip-btf-ext
steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion tests/util.bash
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ setup_mimic_socat() {
fi

ip netns exec ${netns[$_i]} "$BATS_TEST_DIRNAME/../out/mimic" \
run ${veth[$_i]} -flocal="$self_ip_port" \
run ${veth[$_i]} -flocal="$self_ip_port" $MIMIC_TEST_EXTRA_ARGS \
&
mimic_pid[$_i]=$!
echo "$! is mimic"
Expand Down

0 comments on commit 68e20ba

Please sign in to comment.