Hi, This patch is an attempt to integrate the bpf-vmtest-tool with DejaGnu. Instead of modifying gcc-dg specific procedures, I decided to add a new target board. This seemed like a cleaner and more maintainable way to handle target-specific procedures. I've taken inspiration from the simulator boards in the DejaGnu source.
I have a few questions: How should the bpf board be automatically selected when the target is bpf-unknown-none? The documentation shows this can be added to a global config file: switch -glob -- $target_triplet { "native" { set target_list "unix" } "bpf-*" { set target_list "bpf" } } Would it be a good idea to add this logic to gcc/Makefile.in during site.exp generation? Or is there a better way to achieve this? I am aware that RUNTESTFLAGS can be used to set the board, but that requires manually specifying it each time. This draft board currently works with the tests in gcc/testsuite/gcc.target/bpf/bpf.exp. Are there any other test directories it should support? Also, are there specific DejaGnu directives you expect this board to support? I'll add support for any that don't work yet. Thanks, Piyush Piyush Raj (1): testsuite: add BPF target board for execution testing gcc/Makefile.in | 1 + gcc/testsuite/boards/bpf.exp | 63 +++++++++++++++++++ .../gcc.target/bpf/bpf-testool-demo.c | 25 ++++++++ 3 files changed, 89 insertions(+) create mode 100644 gcc/testsuite/boards/bpf.exp create mode 100644 gcc/testsuite/gcc.target/bpf/bpf-testool-demo.c -- 2.50.1