libfuse/xfstests
Bernd Schubert 9ca35f454f
xfstests example: Use export in local.config and remove comment (#811)
ix passthrough mount helper for running xfstests

* The mount helper does not see the env vars exported by xfstests
* Use the NFS style format TEST_DEV=source:/$TEST_SOURCE to communicate
  the sourse path to the mount helper without confusing xfstest
* Also recognise when source= is provided in mount options
* Support -o remount (e.g. for test generic/306)

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Co-authored-by: Bernd Schubert <bschubert@ddn.com>
Co-authored-by: Amir Goldstein <amir73il@gmail.com>
Co-authored-by: Nikolaus Rath <Nikolaus@rath.org>
2023-09-26 08:49:05 +01:00
..
local.config xfstests example: Use export in local.config and remove comment (#811) 2023-09-26 08:49:05 +01:00
mount.fuse.passthrough xfstests example: Use export in local.config and remove comment (#811) 2023-09-26 08:49:05 +01:00
README.md Add support for running xfstests. 2023-05-12 23:29:03 +01:00

To test FUSE with xfstests¹:

  1. copy the mount.fuse.passthrough file into /sbin and edit the PASSTHROUGH_PATH, SCRATCH_SOURCE and TEST_SOURCE variables as needed.

  2. Make sure that the SCRATCH_SOURCE and TEST_SOURCE directories exist.

  3. Copy local.config into your xfstests directory

Tests can then be run with e.g.:

# make
# sudo ./check -fuse -b

¹https://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git/about/