Subject: Re: [PATCHv2 net-next 3/3] tools: ynl: add YNL test framework

From: Hangbin Liu <[email-masked]>
Date: Thu, 6 Nov 2025 02:40:25 +0000

On Wed, Nov 05, 2025 at 06:33:13PM -0800, Jakub Kicinski wrote:
> On Wed,  5 Nov 2025 08:28:41 +0000 Hangbin Liu wrote:
> > Add a test framework for YAML Netlink (YNL) tools, covering both CLI and
> > ethtool functionality. The framework includes:
> > 
> > 1) cli: family listing, netdev, ethtool, rt-* families, and nlctrl
> >    operations
> > 2) ethtool: device info, statistics, ring/coalesce/pause parameters, and
> >    feature gettings
> > 
> > The current YNL syntax is a bit obscure, and end users may not always know
> > how to use it. This test framework provides usage examples and also serves
> > as a regression test to catch potential breakages caused by future changes.
> 
> And how would we run all the tests in the new directory?
> 
> Since we have two test files we need some way to run all.

I didn't get your requirement. We can run them one by one in the test folder.

 # ./test_ynl_cli.sh
 # ./test_ynl_ethtool.sh

Do you want to use a wrapper to run the 2 tests? e.g.
 # ./run_all_ynl_tests.sh

Thanks
Hangbin