Skip to content

Latest commit

 

History

History
54 lines (43 loc) · 973 Bytes

File metadata and controls

54 lines (43 loc) · 973 Bytes

Testing AgentFS

pjdfstest

git clone git@github.com:pjd/pjdfstest.git
cd pjdfstest
autoreconf -ifs
./configure
make pjdfstest
sudo make install
sudo dnf install perl-Test-Harness
mkdir -p ../agentfs-testing
cd ../agentfs-testing
agentfs init testing
mkdir mnt
sudo su
agentfs mount testing ./mnt
cd mnt
prove -rv ../../pjdfstest/tests/ 2>&1 | tee /tmp/pjdfstest.log

xftests

First, build the agentfs executable and install it locally including the mount.fuse.agentfs helper:

cd cli
cargo build --release
cp target/release/agentfs /usr/local/bin
cp scripts/mount.fuse.agentfs /sbin

Then, clone the xfstests repo:

git clone git://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git

Configure the filesystem under test:

cat local.config
export FSTYP=fuse
export FUSE_SUBTYP=.agentfs
export TEST_DEV=<database file>
export TEST_DIR=<mount directory>

Then, run xfstests:

sudo ./check -g quick generic/