On 7/29/26 12:21, Breno Leitao wrote: > On Wed, Jul 29, 2026 at 11:09:11AM +0200, David Hildenbrand (Arm) wrote: >> Avoid bash scripts, please :) > > Sorry, I will try to control my fingers next time. > > Jokes aside, all the selftests I maintain > (tools/testing/selftests/drivers/net/netconsole) were done in bash, so, > I got totally biased.
Ah, I see. The MM folks are not known to be bash experts, which is why we limit our bash scripts to a bare minimum (and focus on C tests). We do have some rather simple bash tests that are mostly used to load special test kernel modules, where the real test logic resides. For smaller things, I wouldn't mind a bash script in tools/mm. But the parsing of pageflags is a bit ... advanced :) Note that we already have some kpageflags processing in tools/mm/page-types.c, not sure whether some of that could just easily be reused. -- Cheers, David
