> -----Original Message-----
> From: Bruce Richardson <[email protected]>
> Sent: Tuesday 2 December 2025 15:50
> To: [email protected]
> Cc: Bruce Richardson <[email protected]>
> Subject: [PATCH 2/2] app/test: make parameters clearer when adding fast tests
> 
> For the fast tests, we have two extra parameters specifying when the
> test can be run without hugepages or using ASan. The true/false nature
> of these parameters is not very clear, so change things so that they are
> explicitly specified as NOHUGE/HUGEPAGES and NOASAN/ASAN instead.
> Explicitly validate the options in the meson.build files, rather than
> just checking for one of the pair of options - which can hide errors.

I like the idea. However, I think that NOASAN/ASAN is still not fully 
self-documenting, and may be misleading. Without reading some docs I'd think 
NOASAN means test will be run without sanitizer and ASAN means it will be run 
with. As a minimal fix, what about NOHUGE_OK/NOHUGE_SKIP and ASAN_OK/ASAN_SKIP?

More intrusive option, to simplify most normal uses and highlight exceptions:
* 0 (or DEFAULT, or RUN_ALWAYS)
* SKIP_IF_ASAN
* SKIP_IF_NOHUGE
* SKIP_IF_ASAN | SKIP_IF_NOHUGE

Reply via email to