aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/filelock/Makefile
diff options
context:
space:
mode:
authorStas Sergeev <stsp2@yandex.ru>2023-06-22 21:52:24 +0500
committerJeff Layton <jlayton@kernel.org>2023-08-24 10:41:47 -0400
commitbfe2e8f569073e7297ad19932b980964105bb777 (patch)
tree1213992728118d6382dfaa41debd9ce735313a43 /tools/testing/selftests/filelock/Makefile
parentfs/locks: F_UNLCK extension for F_OFD_GETLK (diff)
downloadwireguard-linux-bfe2e8f569073e7297ad19932b980964105bb777.tar.xz
wireguard-linux-bfe2e8f569073e7297ad19932b980964105bb777.zip
selftests: add OFD lock tests
Test the basic locking stuff on 2 fds: multiple read locks, conflicts between read and write locks, use of len==0 for queries. Also tests for F_UNLCK F_OFD_GETLK extension. [ jlayton: fix unlink() pathname in selftest ] Cc: Jeff Layton <jlayton@kernel.org> Cc: Chuck Lever <chuck.lever@oracle.com> Cc: Alexander Viro <viro@zeniv.linux.org.uk> Cc: Christian Brauner <brauner@kernel.org> Cc: linux-fsdevel@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: Shuah Khan <shuah@kernel.org> Cc: linux-kselftest@vger.kernel.org Cc: linux-api@vger.kernel.org Signed-off-by: Stas Sergeev <stsp2@yandex.ru> Signed-off-by: Jeff Layton <jlayton@kernel.org>
Diffstat (limited to 'tools/testing/selftests/filelock/Makefile')
-rw-r--r--tools/testing/selftests/filelock/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/testing/selftests/filelock/Makefile b/tools/testing/selftests/filelock/Makefile
new file mode 100644
index 000000000000..478e82f8b464
--- /dev/null
+++ b/tools/testing/selftests/filelock/Makefile
@@ -0,0 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0
+
+TEST_GEN_PROGS := ofdlocks
+
+include ../lib.mk