Commit Graph

10 Commits

Author SHA1 Message Date
Octavian Purdila
13ca823e8b lkl: tests: skip fuse tests based on autoconf
fuse tests are skipped if lklfuse is not found, assuming that fuse was
not enabled. Be more strict and check the host autoconf instead.

Signed-off-by: Octavian Purdila <tavip@google.com>
2025-11-13 09:38:42 +00:00
David Disseldorp
39bedd96e2 lkl: tests: drop sleep before lklfuse unmount
The sleep appears to have been there since the initial tests were added.
It shouldn't be necessary so remove it.

Signed-off-by: David Disseldorp <ddiss@suse.de>
2025-07-04 14:04:47 +10:00
David Disseldorp
c7cfe51b11 lkl: tests: add lklfuse_lock_conflict test
This tests that two lklfuse instances using the same lock file result
in a lock conflict (exit status 2) for the instance started last.

Signed-off-by: David Disseldorp <ddiss@suse.de>
2025-07-04 14:02:28 +10:00
David Disseldorp
7c0c1f6767 lkl: fix lklfuse.sh umount
Many distros use a fusermount3 binary for interacting with libfuse3
mounts to distinguish it from old libfuse2 versions.

Fixes: fc0d27b8b3 ("lklfuse: update to libfuse3")
Signed-off-by: David Disseldorp <ddiss@suse.de>
2025-04-09 00:29:29 +10:00
Octavian Purdila
3f8112f6e0 lkl tests: update test image size to 300MB
Latest mkfs.xfs requires a minimum filesystem size of 300MB.

Signed-off-by: Octavian Purdila <tavip@google.com>
2022-11-16 05:53:17 +00:00
Octavian Purdila
f1e17b7e0c lkl tools: tests: lklfuse.sh: skip test if mkfs.* is not found
If the mkfs tool in not found on the system skip the test instead of
failing it.

Also, increase the size of the btrfs virtual disk used for testing to
match the new minimum size.

Signed-off-by: Octavian Purdila <tavi@cs.pub.ro>
2022-03-26 08:10:29 +00:00
Hajime Tazaki
124824da5d lkl: use shebang for shell scripts
FreeBSD installation (on release 11) of bash is not located at /bin, but
/usr/local/bin etc.  So change shebangs to use those correctly.

Signed-off-by: Hajime Tazaki <thehajime@gmail.com>
2018-01-19 21:42:41 +09:00
Octavian Purdila
8743725f06 lkl tools: tests: convert lklfuse.sh to tap13 output
Signed-off-by: Octavian Purdila <tavi@cs.pub.ro>
2017-12-26 13:15:11 +01:00
Octavian Purdila
c720715a59 lkl tools: lklfuse.sh: reduce fallocate/sync size to 10m
Since the number of stress-ng workers varies with the number of
(logical) CPUs, decrease the size of fallocate / sync to avoiod filling
up the disk when a large number of workers are used.

Signed-off-by: Octavian Purdila <tavi@cs.pub.ro>
2016-10-16 00:23:49 +03:00
Octavian Purdila
0869aa7e31 lkl tools: add lklfuse tests
Signed-off-by: Octavian Purdila <octavian.purdila@intel.com>
2016-08-19 16:27:35 +03:00