[PATCH bpf-next 0/2] Regular expression support for test output matching

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi everyone,

This patch is in the context of fixing all self-tests for GCC.
I have identified that many of the tests are checking for particular
output matching that is very tight to the code that CLANG generates.

This sort of approach for validation is very fragile and tight to
precise compiler expectations that cannot be guaranteed, even from
different versions of the same compiler.

This patch series introduces a regular expression based approach to
output matching, allowing to validate output without being so tight to
precise output.

Looking forward to your comments.

Best regards,
Cupertino 	

Cupertino Miranda (2):
  selftests/bpf: Support checks against a regular expression.
  selftests/bpf: Match tests against regular expression.

 tools/testing/selftests/bpf/progs/bpf_misc.h  |  11 +-
 .../testing/selftests/bpf/progs/dynptr_fail.c |   6 +-
 .../selftests/bpf/progs/exceptions_assert.c   |   8 +-
 .../testing/selftests/bpf/progs/rbtree_fail.c |   8 +-
 .../bpf/progs/refcounted_kptr_fail.c          |   4 +-
 .../selftests/bpf/progs/verifier_sock.c       |   4 +-
 tools/testing/selftests/bpf/test_loader.c     | 126 ++++++++++++++----
 7 files changed, 120 insertions(+), 47 deletions(-)

-- 
2.39.2





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux