Skip to content

Commit

Permalink
selftests: add tests for mount notification
Browse files Browse the repository at this point in the history
Provide coverage for all mnt_notify_add() instances.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Link: https://lore.kernel.org/r/20250307204046.322691-1-mszeredi@redhat.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
  • Loading branch information
Miklos Szeredi authored and Christian Brauner committed Mar 11, 2025
1 parent 7d90fb5 commit e1c24b5
Show file tree
Hide file tree
Showing 5 changed files with 526 additions and 1 deletion.
1 change: 1 addition & 0 deletions tools/testing/selftests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ TARGETS += filesystems/epoll
TARGETS += filesystems/fat
TARGETS += filesystems/overlayfs
TARGETS += filesystems/statmount
TARGETS += filesystems/mount-notify
TARGETS += firmware
TARGETS += fpu
TARGETS += ftrace
Expand Down
2 changes: 2 additions & 0 deletions tools/testing/selftests/filesystems/mount-notify/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# SPDX-License-Identifier: GPL-2.0-only
/*_test
6 changes: 6 additions & 0 deletions tools/testing/selftests/filesystems/mount-notify/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-or-later

CFLAGS += -Wall -O2 -g $(KHDR_INCLUDES)
TEST_GEN_PROGS := mount-notify_test

include ../../lib.mk
Loading

0 comments on commit e1c24b5

Please sign in to comment.