Skip to content

[v2] Enhancing kselftest to support BPF selftests#2942

Merged
Naresh-ibm merged 2 commits intoavocado-framework-tests:masterfrom
vrbagalkot:bpf_v2
Mar 18, 2025
Merged

[v2] Enhancing kselftest to support BPF selftests#2942
Naresh-ibm merged 2 commits intoavocado-framework-tests:masterfrom
vrbagalkot:bpf_v2

Conversation

@vrbagalkot
Copy link

Incorporated review comments

@vrbagalkot
Copy link
Author

O/P:

[root@ltcfuji8v4-lp17 ~]# avocado run --max-parallel-tasks=1 kselftest.py -m avocado-fvt-wrapper/tests/avocado-misc-tests/kernel/kselftest.py.data/bpf.yaml
Fetching asset from kselftest.py:kselftest.test
JOB ID : 134a6c9abc4a6d94c0bee8d10eb07d23681a69a2
JOB LOG : /root/avocado-fvt-wrapper/results/job-2025-03-03T03.48-134a6c9/job.log
(1/1) kselftest.py:kselftest.test;run-component-bpf-run_type-upstream-7a60: STARTED
(1/1) kselftest.py:kselftest.test;run-component-bpf-run_type-upstream-7a60: PASS (11657.09 s)
RESULTS : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
JOB HTML : /root/avocado-fvt-wrapper/results/job-2025-03-03T03.48-134a6c9/results.html
JOB TIME : 11675.12 s
[root@ltcfuji8v4-lp17 ~]#

@vrbagalkot
Copy link
Author

I have removed this tests self.run_cmd("./test_progs -d @DENYLIST") for now.

Added a check for comp == bpf, to point to bpf source code under
selftests. Also made changes on how builddir is constructed, based
location input. Added a check comp == bpf before compiling.
bpf complie is handeled under bpf() in a seperate commit.

Signed-off-by: vrbagalkot <venkat.rao.bagalkote@ibm.com>
Compiling bpf requires to use the same source code,
from which the kernel has booted. So made the necessary changes
to sourcedir to, point to the corresponding source code.
Also created appropriate yaml file.

Signed-off-by: vrbagalkot <venkat.rao.bagalkote@ibm.com>
Copy link
Collaborator

@Naresh-ibm Naresh-ibm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Naresh-ibm Naresh-ibm merged commit 7bf4518 into avocado-framework-tests:master Mar 18, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants