mbox series

[0/2] FUSE-based testing for file system functions

Message ID cover.1724264979.git.fweimer@redhat.com
Headers show
Series FUSE-based testing for file system functions | expand

Message

Florian Weimer Aug. 21, 2024, 6:34 p.m. UTC
This adds a FUSE-based test framework, similar to the DNS framework we
have.  It's portable across various kernel versions (tried heavily
modified 3.10, 4.18, 5.10 kernels, and more or less stick 6.10.4).
The test does not require root privileges if user namespace support
is available.

I think it's already fairly complete and somewhat useful, as the mkstemp
test intends to show.  For dirent/readdir tests, it would make sense to
add further interfaces to help with response construction.

Thanks,
Florian

Florian Weimer (2):
  Linux: Add FUSE-based file system test framework to support/
  Linux: FUSE-based tests for mkstemp

 support/Makefile                              |   1 +
 support/fuse.h                                | 169 +++++
 support/support_fuse.c                        |  21 +
 sysdeps/unix/sysv/linux/Makefile              |  12 +
 sysdeps/unix/sysv/linux/support_fuse.c        | 589 ++++++++++++++++++
 .../sysv/linux/tst-mkstemp-fuse-parallel.c    | 211 +++++++
 sysdeps/unix/sysv/linux/tst-mkstemp-fuse.c    | 198 ++++++
 sysdeps/unix/sysv/linux/tst-support_fuse.c    | 291 +++++++++
 8 files changed, 1492 insertions(+)
 create mode 100644 support/fuse.h
 create mode 100644 support/support_fuse.c
 create mode 100644 sysdeps/unix/sysv/linux/support_fuse.c
 create mode 100644 sysdeps/unix/sysv/linux/tst-mkstemp-fuse-parallel.c
 create mode 100644 sysdeps/unix/sysv/linux/tst-mkstemp-fuse.c
 create mode 100644 sysdeps/unix/sysv/linux/tst-support_fuse.c


base-commit: 498ba34ee2472c28cca7b32d132824dbf62651d8