Re: [PATCH v2 1/1] contrib: add bpf-vmtest-tool to test BPF programs

2025-07-16 Thread Piyush Raj
On 16/07/25 00:55, Jose E. Marchesi wrote: Hi Jose, On 15/07/25 22:55, Jose E. Marchesi wrote: Hi Piyush. This form of the script looks generally good to me. May be a good time to move to the second stage of the project, which if I am not mistaken consists in creating some dejagnu infrastructu

Re: [PATCH v2 1/1] contrib: add bpf-vmtest-tool to test BPF programs

2025-07-16 Thread Piyush Raj
On 15/07/25 23:03, David Faust wrote: +DEVELOPMENT +=== + +Development dependencies are specified in `pyproject.toml`, which can be used +with any suitable Python virtual environment manager. + +To run the test suite: + +python3 -m pytest Can the tests be run without a pyproject.to

Re: [PATCH v2 1/1] contrib: add bpf-vmtest-tool to test BPF programs

2025-07-15 Thread Jose E. Marchesi
> As we discussed, it would be good to have a page in the wiki to document > this effort, something like https://gcc.gnu.org/wiki/BPFRunTimeTests. The page now exists.

Re: [PATCH v2 1/1] contrib: add bpf-vmtest-tool to test BPF programs

2025-07-15 Thread Jose E. Marchesi
> Hi Jose, > On 15/07/25 22:55, Jose E. Marchesi wrote: >> Hi Piyush. >> This form of the script looks generally good to me. >> May be a good time to move to the second stage of the project, which >> if >> I am not mistaken consists in creating some dejagnu infrastructure so we >> can get testsui

Re: [PATCH v2 1/1] contrib: add bpf-vmtest-tool to test BPF programs

2025-07-15 Thread Piyush Raj
Hi Jose, On 15/07/25 22:55, Jose E. Marchesi wrote: Hi Piyush. This form of the script looks generally good to me. May be a good time to move to the second stage of the project, which if I am not mistaken consists in creating some dejagnu infrastructure so we can get testsuites running the scr

Re: [PATCH v2 1/1] contrib: add bpf-vmtest-tool to test BPF programs

2025-07-15 Thread David Faust
On 7/10/25 10:21, Piyush Raj wrote: > Hi David, > > On 09/07/25 03:33, David Faust wrote: >>> diff --git a/contrib/bpf-vmtest-tool/.gitignore >>> b/contrib/bpf-vmtest-tool/.gitignore >>> new file mode 100644 >>> index 000..723dfe1d0f4 >>> --- /dev/null >>> +++ b/contrib/bpf-vmtest-tool

Re: [PATCH v2 1/1] contrib: add bpf-vmtest-tool to test BPF programs

2025-07-15 Thread Jose E. Marchesi
Hi Piyush. This form of the script looks generally good to me. May be a good time to move to the second stage of the project, which if I am not mistaken consists in creating some dejagnu infrastructure so we can get testsuites running the script on the test sources. At this point it would be g

Re: [PATCH v2 1/1] contrib: add bpf-vmtest-tool to test BPF programs

2025-07-10 Thread Piyush Raj
Hi David, On 09/07/25 03:33, David Faust wrote: diff --git a/contrib/bpf-vmtest-tool/.gitignore b/contrib/bpf-vmtest-tool/.gitignore new file mode 100644 index 000..723dfe1d0f4 --- /dev/null +++ b/contrib/bpf-vmtest-tool/.gitignore @@ -0,0 +1,23 @@ +.gitignore_local +.python-version +#

Re: [PATCH v2 1/1] contrib: add bpf-vmtest-tool to test BPF programs

2025-07-08 Thread David Faust
Hi Piyush, On 7/3/25 06:32, Piyush Raj wrote: > This patch adds the bpf-vmtest-tool subdirectory under contrib which tests > BPF programs under a live kernel using a QEMU VM. It automatically > builds the specified kernel version with eBPF support enabled > and stores it under "~/.bpf-vmtest-tool

[PATCH v2 1/1] contrib: add bpf-vmtest-tool to test BPF programs

2025-07-03 Thread Piyush Raj
This patch adds the bpf-vmtest-tool subdirectory under contrib which tests BPF programs under a live kernel using a QEMU VM. It automatically builds the specified kernel version with eBPF support enabled and stores it under "~/.bpf-vmtest-tool", which is reused for future invocations. It can also