aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_bindfs.rb
AgeCommit message (Collapse)AuthorLines
2025-06-08-onoattrcache with fuse-t by default. Maybe it gets rid of test flakiness.Martin Pärtel-2/+2
2025-06-08MacOS/fuse-t fixesMartin Pärtel-14/+13
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-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-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-06-24Revert "Skip test if unshare was not possible"Martin Pärtel-4/+3
This reverts commit 3a1d2a1e265c43971f78ed1845920539ed00fd35.
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-02-14Run test "preserves readdir inode numbers" unless fuse3 < 3.10.2Martin Pärtel-1/+5
2021-02-13Refactored and unit-tested filter_special_opts. Shaved a bunch of yaks on ↵Martin Pärtel-2/+4
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-30Make tests run on FUSE 3 (they still fail)Martin Pärtel-3/+8
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-1/+2
2019-04-28Cleanups, tests and optimizations for #74.Martin Pärtel-0/+22
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-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-18/+24
Fully fixes issue #51.
2017-03-12Hacked tests to work with Ruby 1.8.7 and FUSE 2.8 again.Martin Pärtel-46/+62
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-0/+31
Also banned some other characters that are likely to lead to trouble.
2016-11-16tests: Fix run make check out of placeDan Dedrick-2/+5
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-10-15Always skip valgrind for ioctl tests due to false negatives.Martin Pärtel-2/+4
2016-10-15Fix #41 (seeking in directory).Martin Pärtel-0/+12
Since version 1.31.1, bindfs has implemented readdir by always reading the entire directory and passing 0 offset to filler, but this does not work if the same directory pointer is rewound and reused. We remove the opendir and closedir implementations (which FUSE permits) and now always opendir() and closedir() in readdir. Alternatively we could have added a rewinddir() to our readdir.
2016-07-31Implemented --enable-lock-forwarding.Martin Pärtel-0/+41
This should address #36.
2016-07-31Added option --enable-ioctl to forward ioctl() calls.Martin Pärtel-0/+21
This should address #37.
2016-05-03Basic tests for --uid-offset and --gid-offset.Martin Pärtel-0/+33
2016-03-30Added test case for issue #30 and improved an earlier test case.Martin Pärtel-4/+16
2016-03-10Fix argument order of `usermod` in test for some distros.Martin Pärtel-1/+1
2016-01-19Added a test case for reading the entries of a large directory.Martin Pärtel-0/+12
2015-11-15Use `usermod user -G group -a` instead of `adduser user group` in a test.Martin Pärtel-1/+1
This makes it compatible with at least Fedora.
2015-11-15Fixed some root tests to use `nobody_group`.Martin Pärtel-4/+4
2015-11-15Use gid of user nobody for testsTill Maas-31/+32
There is no nogroup in Fedora, therefore use the gid of the nobody user.
2015-09-20Implemented --resolved-symlink-deletion and added tests.Martin Pärtel-1/+174
2014-09-07Tests: use sudo instead of su.Martin Pärtel-3/+3
BSD su is different, apparently.