DPDK-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Marat Khalili <marat.khalili@huawei.com>
To: Stephen Hemminger <stephen@networkplumber.org>
Cc: Konstantin Ananyev <konstantin.ananyev@huawei.com>,
	"dev@dpdk.org" <dev@dpdk.org>
Subject: RE: [PATCH] test/bpf: use unit test suite
Date: Mon, 31 Aug 2026 08:34:58 +0000	[thread overview]
Message-ID: <8ecd0e24395d4a5eb53c6c4355f73cf7@huawei.com> (raw)
In-Reply-To: <20260830191349.604934-1-stephen@networkplumber.org>

Hi!

> The BPF tests registered 23 separate autotests. Collapse them into a
> single bpf_autotest suite run by unit_test_suite_runner().

Some of these tests still don't pass with sanitizer enabled.  With them
registered individually there was an option to ignore these failures or only
run the tests that are known to not contain UB. After lumping them in one suite
running BPF tests under sanitizer is going to become much more difficult.

There are other reasons why more granular tests are good, like ease of tracking
or debugging failures. What are the benefits from collapsing them? What is the
 actual problem we are trying to solve?

If DPDK CI is running out of tmpfs again, there is a proper fix for that.

> Rename the old table-driven test_bpf() to test_bpf_progs() so that
> test_bpf() can be the suite entry point.

While having only one of the BPF tests called test_bpf was confusing, I'm not
sure new name is more clear.

> Move the #endif of the RTE_LIB_BPF guard to the end of the file. It
> closed mid-file, leaving the stack, ELF, convert and atomic tests
> outside the guard even though they all call rte_bpf functions.

This guard is unnecessary and I already sent a patch to delete it.

  reply	other threads:[~2026-08-31  8:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-30 19:13 [PATCH] test/bpf: use unit test suite Stephen Hemminger
2026-08-31  8:34 ` Marat Khalili [this message]
2026-08-31 15:12   ` Stephen Hemminger
2026-08-31 15:47     ` Marat Khalili

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8ecd0e24395d4a5eb53c6c4355f73cf7@huawei.com \
    --to=marat.khalili@huawei.com \
    --cc=dev@dpdk.org \
    --cc=konstantin.ananyev@huawei.com \
    --cc=stephen@networkplumber.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox