-
Notifications
You must be signed in to change notification settings - Fork 3.4k
verifier-test.sh: allow for empty FOO_PROGS #17408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
verifier-test.sh allows users to pass what programs to test via environment variables. However, these variables are only used if they are not unset and not empty. This means that we, for example, cannot pass XDP_PROGS="" to avoid verifiying any xdp progs. This patch modifies the check to only ignore the environment variables if they are unset. So now we can use verifier-test.sh to test only a single program: root# TC_PROGS="bpf_host" XDP_PROGS="" CG_PROGS="" ./test/bpf/verifier-test.sh => Loading bpf_host.c:from-netdev... => Loading bpf_host.c:from-host... => Loading bpf_host.c:to-netdev... => Loading bpf_host.c:to-host... Signed-off-by: Kornilios Kourtis <kornilios@isovalent.com>
test-me-please Job 'Cilium-PR-K8s-1.16-net-next' failed and has not been observed before, so may be related to your PR: Click to show.Test Name
Failure Output
If it is a flake, comment Job 'Cilium-PR-K8s-1.16-net-next' failed and has not been observed before, so may be related to your PR: Click to show.Test Name
Failure Output
If it is a flake, comment |
Jenkins page expired: |
k8s-1.16-kernel-netnext failed with:
Considering that and the fact that both tests are unaffected by the changes in this PR, I'm marking ready to merge. |
Marking this pull request for backport into v1.9 and v1.10 given we'll also backport the extension of K8sVerifier (cf. #17470) which relies on this change. |
verifier-test.sh allows users to pass what programs to test via
environment variables. However, these variables are only used if they
are not unset and not empty. This means that we, for example, cannot
pass XDP_PROGS="" to avoid verifiying any xdp progs.
This patch modifies the check to only ignore the environment variables
if they are unset.
So now we can use verifier-test.sh to test only a single program:
root# TC_PROGS="bpf_host" XDP_PROGS="" CG_PROGS="" ./test/bpf/verifier-test.sh
=> Loading bpf_host.c:from-netdev...
=> Loading bpf_host.c:from-host...
=> Loading bpf_host.c:to-netdev...
=> Loading bpf_host.c:to-host...
Signed-off-by: Kornilios Kourtis kornilios@isovalent.com