Re: [PATCH v10 6/6] selftests/mm: add hwpoison-panic destructive test

"David Hildenbrand (Arm)" <[email protected]>
Newsgroups org.kernel.vger.linux-doc,org.kernel.vger.linux-kernel,org.kernel.vger.linux-kselftest,org.kernel.vger.linux-trace-kernel,org.kvack.linux-mm
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.