Hi Jose, On 15/01/26 21:18, Jose E. Marchesi wrote:
Hi Piyush.This patch adds new DejaGnu target board for BPF for runtime testing of BPF programs using the `bpf-vmtest-tool` script in the contrib directory. The kernel version used for the tests can be specified via KERNEL_VERSION, for example: make check-gcc RUNTESTFLAGS="--target_board=bpf bpf-torture.exp KERNEL_VERSION=6.14" If not specified, the default kernel version used is 6.15. It also adds a new torture subdirectory for running torture tests on BPF programs. Passed tests covered in bpf.exp and bpf-torture.exp gcc/ChangeLog: * Makefile.in: Append boards directory to target boards search path. gcc/testsuite/ChangeLog: * boards/bpf.exp: New board for bpf-unknown-none target * gcc.target/bpf/torture/bpf-testool-demo.c: New test. * gcc.target/bpf/torture/bpf-torture.exp: New test.The board should be contributed to dejagnu rather than GCC. We already have a bpf-sim.exp board there. Project page: https://www.gnu.org/s/dejagnu Send patches to list: [email protected] (please CC me and David). Git repo: https://git.savannah.gnu.org/git/dejagnu.git or git://git.sv.gnu.org/dejagnu.git
I was not able to find bpf-sim.exp in the master branch of dejagnu, but I found an existing patch for it: https://lists.gnu.org/archive/html/dejagnu/2020-09/msg00001.html
I will update this commit based on the bpf-sim.exp patch and submit a patch to dejagnu.
Thanks
