aboutsummaryrefslogtreecommitdiffstats
path: root/tests
AgeCommit message (Collapse)AuthorLines
2025-06-08MacOS/fuse-t fixesMartin Pärtel-20/+39
2025-04-12Updated Vagrant test setupMartin Pärtel-2/+2
2024-06-05Warn that lock forwarding does not forward flock() on FreeBSD.Martin Pärtel-16/+20
2023-11-27Merge pull request #150 from hartwork/macos-ciMartin Pärtel-21/+18
Cover macOS in CI + make CI use the right compiler + fix more compile warnings
2023-11-27Fix five typos pointed out by codespellSebastian Pipping-1/+1
codespell report was: > # git ls-files | xargs codespell > src/bindfs.1:136: mimicing ==> mimicking > src/bindfs.1:237: excecute ==> execute > src/bindfs.1:445: efficent ==> efficient > src/bindfs.1:526: accessable ==> accessible > tests/test_bindfs.rb:976: hax ==> hex # not agreeing on a fix here
2023-11-20odirect_write.c: Resolve unused variable "total_size"Sebastian Pipping-3/+0
Symptom with Clang 17: > tests/odirect_write.c:35:12: warning: variable 'total_size' set but not used [-Wunused-but-set-variable] > 35 | size_t total_size = 0; > | ^
2023-11-20src|tests: Address warning -Wstrict-prototypesSebastian Pipping-18/+18
Symptom with Clang 15: > In file included from userinfo.c:20: > ./userinfo.h:38:27: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] > void invalidate_user_cache(); /* safe to call from signal handler */ > ^ > void > [many more]
2023-11-14odirect_write.c: Address warning -Wsign-compareSebastian Pipping-1/+1
Symptom was: > tests/odirect_write.c: In function ‘main’: > tests/odirect_write.c:58:17: error: comparison of integer expressions of different signedness: ‘ssize_t’ {aka ‘long int’} and ‘size_t’ {aka ‘long unsigned int’} [-Werror=sign-compare] > 58 | if (res != buf_size) { > | ^~
2023-11-09Support negative --{uid,gid}-offsetMartin Pärtel-0/+34
Fixes #142
2023-07-15Rewrite socket files test in pure RubyMarat Radchenko-9/+9
This avoids dependency on nc(1) This commit is a follow-up to 9b1057f2e57cf0b304d94fe422e126bbc7f6d24b
2023-07-15Support for fuse-tMartin Pärtel-1/+4
2023-07-15Unit test for socket files.Martin Pärtel-0/+14
2022-10-17Fixed --resolve-symlinks when mountpoint name starts with source dir name.Martin Pärtel-6/+69
Fixes #122
2022-06-24Revert "Skip test if unshare was not possible"Martin Pärtel-4/+3
This reverts commit 3a1d2a1e265c43971f78ed1845920539ed00fd35.
2022-06-23Allow test dirs to exist before creationSergei Shilovsky-3/+3
Before it would fail when test dirs were present already, e.g. from a previous failed tests run.
2022-06-23commentSergei Shilovsky-0/+1
2022-06-23test --map-passwd-rev and --map-shadow-revSergei Shilovsky-0/+13
2022-06-23Skip test if unshare was not possibleSergei Shilovsky-3/+4
For some reason, unshare fails with "Operation not permitted" for me. I'm testing in a chrooted system, that might be a reason.
2021-05-04Cleanups.Martin Pärtel-1/+1
2021-02-14Run test "preserves readdir inode numbers" unless fuse3 < 3.10.2Martin Pärtel-1/+5
2021-02-14(cleanups)Martin Pärtel-2/+2
2021-02-13Refactored and unit-tested filter_special_opts. Shaved a bunch of yaks on ↵Martin Pärtel-12/+184
the way.
2021-02-13filter_special_opts: added test caseMartin Pärtel-0/+10
2021-01-30Disabled test "preserves readdir inode numbers" in FUSE 3 mode for now.Martin Pärtel-10/+12
2021-01-30Tests to use fusermount3 if installedMartin Pärtel-3/+6
2021-01-30Make tests run on FUSE 3 (they still fail)Martin Pärtel-3/+8
2021-01-27Initial Fuse 3 support + Support to allow some special optionsMcBane-2/+2
2021-01-24Added support for `-o fsname`Martin Pärtel-0/+7
For #94
2021-01-24Fixed tests on older Ruby versionsMartin Pärtel-2/+2
2020-05-13Fixed a line ending bug with uid/gid mapping files that I introduced when ↵Martin Pärtel-1/+1
merging #85.
2020-05-10Added test case for #85 and fixed a minor UX issue with it.Martin Pärtel-0/+21
2020-04-13Fixed tests with Ruby 2.7.1 or newer.Martin Pärtel-2/+5
2019-12-21Don't check that numeric UIDs and GIDs exist in user database.Martin Pärtel-1/+15
A user database is not always available. For #79.
2019-06-26Resolve symlinks in readdir() so correct attributes are returned.Martin Pärtel-0/+16
Fixes #76
2019-04-29Added --forward-odirect. bindfs now won't forward O_DIRECT by default.Martin Pärtel-2/+17
Follow-up to #74.
2019-04-28Fixed vagrant tests. Removed Vagrant test for Ubuntu 12.04, added 18.04.Martin Pärtel-5/+18
2019-04-28Cleanups, tests and optimizations for #74.Martin Pärtel-1/+162
2019-03-31Tests: check that `unshare` supports the required options.Martin Pärtel-1/+4
2019-03-31Test case for #73Martin Pärtel-0/+10
2018-10-09Worked around a weird race in test case "utimens on symlinks".Martin Pärtel-0/+1
2017-11-30Cleaned up PR #61.Martin Pärtel-0/+14
For consistency, renamed the new options to --delete-deny and --rename-deny.
2017-04-19Added option: --block-devices-as-filesMartin Pärtel-0/+55
Fixes #53.
2017-04-13Document that -o dev is required for device files and test it.Martin Pärtel-0/+11
Fixes #52.
2017-03-14Run tests on FreeBSD 10.3 and fix tests so they pass.Martin Pärtel-23/+35
Fully fixes issue #51.
2017-03-12Hacked tests to work with Ruby 1.8.7 and FUSE 2.8 again.Martin Pärtel-49/+126
The test suite now passes under Ubuntu 12.04 and CentOS 6. Fixes #49
2017-01-29Fixed #47 by not setting `-ofsname=` when it would contain a comma.Martin Pärtel-5/+42
Also banned some other characters that are likely to lead to trouble.
2016-11-16tests: Fix run make check out of placeDan Dedrick-4/+11
When building out of the place the executables are not in the same location as the scripts being called. This means that the test scripts need to be able to handle the executables being the in the current directory and the script/source files being in a different directory. This will work now work with both building in place and building out of place and can be tested as follows: /autogen.sh && mkdir -p build && cd build && ../configure && make check
2016-11-16tests: fix building out of placeDan Dedrick-4/+4
The path to the source files should be top_srcdir not top_builddir. When building in place these are both the same so this doesn't fail but is technically wrong. This change will allow both cases to work. To demonstrace how this was broken before and to ensure it is fixed now you can do the following: ./autogen.sh && mkdir -p build && cd build && ../configure && make Running make check out of place still doesn't work but that will require a bit more change.
2016-10-29Only compile test_dir_rewind.c on amd64.Martin Pärtel-4/+6
This should fix the build on e.g. ARM.
2016-10-15Always skip valgrind for ioctl tests due to false negatives.Martin Pärtel-2/+4