From: Emil Velikov Date: Thu, 17 Oct 2024 16:41:58 +0000 (+0100) Subject: testsuite/README: update for meson, mention sanitizers X-Git-Tag: v34~211 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b13b6fe70b344ab6e916a1b8d592f79b5a740a7c;p=thirdparty%2Fkmod.git testsuite/README: update for meson, mention sanitizers Mention that running outside of `meson test", one needs to set the env. aka "source scripts/sanitizer-env.sh". Also gently discourage using sanitizers alongside gdb and strace. While thing might work it's not the setup we want to support, I think. Signed-off-by: Emil Velikov Link: https://github.com/kmod-project/kmod/pull/172 Signed-off-by: Lucas De Marchi --- diff --git a/testsuite/README b/testsuite/README index 1b0112ce..198bce24 100644 --- a/testsuite/README +++ b/testsuite/README @@ -54,8 +54,12 @@ pay attention when writing a test: modules from module-playground. Update the latter script to include any modules your test needs. -8 - Tests can be run individually, outside of 'make check'. strace and gdb work - too, as long as you tell them to operate on child process. +8 - Tests can be run individually, outside of 'meson test'. strace and gdb + work too, as long as you tell them to operate on child process. + + When running with sanitizers, make sure to 'source scripts/sanitizer-env.sh'. + Sanitizers are not guaranteed to work well with other tools like strace and gdb. 9 - Make sure test passes when using "default" build flags, i.e. by running - 'autogen.sh c' + 'meson setup --native-file build-dev.ini ...', which by default enables the + sanitizers.