Skip to content

Commit 0434dbe

Browse files
committed
Merge tag 'linux_kselftest-next-6.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
Pull kselftest updates from Shuah Khan: - change resctrl test to cleanup resctrl_val() and generalize it by removing test name specific handling from the function. - several clang build failure fixes to framework and tests - add tests to verify IFS (In Field Scan) driver functionality - cleanups to remove unused variables and document changes * tag 'linux_kselftest-next-6.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest: (33 commits) selftests: ifs: verify IFS ARRAY BIST functionality selftests: ifs: verify IFS scan test functionality selftests: ifs: verify test image loading functionality selftests: ifs: verify test interfaces are created by the driver selftests/dma:remove unused variable selftests/breakpoints:Remove unused variable selftests/x86: fix printk warnings reported by clang selftests/x86: remove (or use) unused variables and functions selftests/x86: avoid -no-pie warnings from clang during compilation selftests/x86: build sysret_rip.c with clang selftests/x86: build fsgsbase_restore.c with clang selftests: x86: test_FISTTP: use fisttps instead of ambiguous fisttp selftests/x86: fix Makefile dependencies to work with clang selftests/timers: remove unused irqcount variable selftests: Add information about TAP conformance in tests selftests/resctrl: Remove test name comparing from write_bm_pid_to_resctrl() selftests/resctrl: Remove mongrp from CMT test selftests/resctrl: Remove mongrp from MBA test selftests/resctrl: Convert ctrlgrp & mongrp to pointers selftests/resctrl: Make some strings passed to resctrlfs functions const ...
2 parents f8d22a3 + bb408da commit 0434dbe

30 files changed

+901
-358
lines changed

Documentation/dev-tools/kselftest.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,13 @@ In general, the rules for selftests are
228228
* Don't cause the top-level "make run_tests" to fail if your feature is
229229
unconfigured.
230230

231+
* The output of tests must conform to the TAP standard to ensure high
232+
testing quality and to capture failures/errors with specific details.
233+
The kselftest.h and kselftest_harness.h headers provide wrappers for
234+
outputting test results. These wrappers should be used for pass,
235+
fail, exit, and skip messages. CI systems can easily parse TAP output
236+
messages to detect test results.
237+
231238
Contributing new tests (details)
232239
================================
233240

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11216,6 +11216,7 @@ R: Tony Luck <[email protected]>
1121611216
S: Maintained
1121711217
F: drivers/platform/x86/intel/ifs
1121811218
F: include/trace/events/intel_ifs.h
11219+
F: tools/testing/selftests/drivers/platform/x86/intel/ifs/
1121911220

1122011221
INTEL INTEGRATED SENSOR HUB DRIVER
1122111222
M: Srinivas Pandruvada <[email protected]>

tools/testing/selftests/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ TARGETS += drivers/net
2121
TARGETS += drivers/net/bonding
2222
TARGETS += drivers/net/team
2323
TARGETS += drivers/net/virtio_net
24+
TARGETS += drivers/platform/x86/intel/ifs
2425
TARGETS += dt
2526
TARGETS += efivarfs
2627
TARGETS += exec

tools/testing/selftests/breakpoints/step_after_suspend_test.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ int run_test(int cpu)
130130
void suspend(void)
131131
{
132132
int power_state_fd;
133-
struct sigevent event = {};
134133
int timerfd;
135134
int err;
136135
struct itimerspec spec = {};

tools/testing/selftests/dma/dma_map_benchmark.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ int main(int argc, char **argv)
3333
int granule = 1;
3434

3535
int cmd = DMA_MAP_BENCHMARK;
36-
char *p;
3736

3837
while ((opt = getopt(argc, argv, "t:s:n:b:d:x:g:")) != -1) {
3938
switch (opt) {
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
# Makefile for ifs(In Field Scan) selftests
3+
4+
TEST_PROGS := test_ifs.sh
5+
6+
include ../../../../../lib.mk

0 commit comments

Comments
 (0)