Re: [PATCH v2] Added missing TARGETS in kselftest top level Makefile

From: Shuah Khan
Date: Mon Oct 02 2023 - 10:34:21 EST


On 10/2/23 05:46, Abhinav wrote:
Some tests like dma, ia64, etc. were not present in top level of
selftest Makefile, so when someone ran 'make run_tests' they would miss
these tests. This patches adds those left out tests.

Signed-off-by: Abhinav <singhabhinav9051571833@xxxxxxxxx>
---

I removed sched, safesetid and filelock from the Makefile, because these
tests were actually triggered when we run 'make run_tests' even though it
has not been mentioned explicitly inside top level Makefile of selftest.

tools/testing/selftests/Makefile | 7 +++++++
1 file changed, 7 insertions(+)


There are good reasons to leave out tests from the kselftest default
run.

1. test requires specific hardware or driver or system configuration
which includes kernel configuration options.
e.g: media_tests, dma
2. It is a benchmark and/or destructive test that doesn't fit into
default run category: watchdog, kmod
3. test Makefile doesn't support kselftest framework

Any patch adding a test left out of default run to the default
run has to explain the reasons why it is a good idea to add it
and more importantly showing that this doesn't impact the default
run with report from the test run "make kselftest"

Sorry. I am not going to take this patch.
thanks,
-- Shuah