aboutsummaryrefslogtreecommitdiffstats
path: root/test
AgeCommit message (Collapse)AuthorLines
2017-07-07Don't use emacs' python-mode for meson filesNikolaus Rath-3/+0
There is a proper meson-mode now.
2017-06-20tst_readdir(): actually go through FUSENikolaus Rath-6/+9
The previous code didn't actually go through the mountpoint at all.
2017-06-05examples/passthrough_ll: added support for create()Nikolaus Rath-2/+2
2017-06-05example/passthrough_ll: added write supportNikolaus Rath-1/+1
2017-05-31tst_link(): wait for RELEASE requestNikolaus Rath-9/+16
Since RELEASE requests are asynchronous, it is possible that libfuse still considers the file to be open when userspace has closed it, so that a successive unlink() call from userspace actually triggers a rename(). We avoid the resulting test failure by re-trying a few times. Fixes: #157.
2017-05-25Factored out C-based testsNikolaus Rath-48/+65
2017-05-25tst_link(): add more assertionsNikolaus Rath-3/+17
Hopefully this helps debugging issue #157.
2017-05-24Travis-CI: Don't abort on first failed testNikolaus Rath-4/+6
This should help debugging issue #157.
2017-05-24Added tst_open_read()Nikolaus Rath-0/+9
Slightly increases coverage of examples/passthrough_ll.c (which supports open for reading, but not for writing).
2017-05-24Make tests build on bsdBrian Naylor-0/+10
2017-04-10Fix travis build script. Broken in e372d.Nikolaus Rath-3/+3
2017-04-10Remove 'tests' target in favor of calling py.test directly.Nikolaus Rath-10/+2
Together with the previous commit, this fixes #156.
2017-04-10Build tests by default.Nikolaus Rath-7/+6
2017-04-10Only build test/*.py if out of date.Nikolaus Rath-1/+1
2017-04-07Actually test passthrough* examplesNikolaus Rath-1/+1
Since os.path.join() interprets leading slashes, we were actually never accessing the mountpoint and doing all the tests in the source directory. Fixes: #139
2017-04-07test_examples(): test without debug messages firstNikolaus Rath-1/+1
That way, we are not drowning in messages when a test would also fail without debugging enabled.
2017-04-07test_examples(): avoid false positives from fuse debug outputNikolaus Rath-1/+7
2017-04-07passthrough_ll: only test functions that are actually providedNikolaus Rath-19/+23
This appeared to work because of an unrelated bug that caused us to actually never access the mountpoint at all and do all tests on the lower filesystem. This issue will be fixed in a separate commit.
2017-04-07Remove checked_unlink()Nikolaus Rath-18/+7
There is no reason why so many tests require the file system to support unlink() and/or rmdir().
2017-04-07Turn tst_mknod() into tst_create()Nikolaus Rath-8/+15
Ensure that we are really creating a new file. Don't attempt to write, we do that in tst_open_write().
2017-04-07Renamed tst_write() to tst_open_write()Nikolaus Rath-7/+12
We are actually testing both opening of an existing file and writing to it.
2017-04-07Added tst_unlink()Nikolaus Rath-0/+13
To check for unlink() support without requiring create()/mknod().
2017-04-07tst_mkdir(): factor out tst_rmdir()Nikolaus Rath-3/+14
This allows testing a filesystem that offers mkdir(), but no rmdir() (and vice versa).
2017-04-07Rename tst_unlink() to tst_open_unlink()Nikolaus Rath-4/+4
This makes more sense, since we are specifically checking unlinking of an open file.
2017-04-07tst_readdir(): don't require create/mkdir supportNikolaus Rath-3/+3
By creating the files in the lower filesystem, we can test readdir() even for filesystems that don't implement create() or mkdir().
2017-01-23Put -Werror in mesonconf, not CFLAGSNikolaus Rath-3/+2
Putting it in CFLAGS interferes with feature detection.
2017-01-12Only use valgrind if requested explicitly + enable address sanitizerNikolaus Rath-14/+21
2017-01-12Switch Travis build to Meson+NinjaNikolaus Rath-0/+67
2017-01-12Added experimental support for building with Meson+NinjaNikolaus Rath-6/+53
2017-01-10Skip tests if not root and no setuid fusermount3.Nikolaus Rath-2/+41
2016-12-23Added documentation and test case for null exampleNikolaus Rath-0/+22
2016-11-28Rename more things from fuse to fuse3Przemysław Pawełczyk-2/+2
2016-11-10Don't expect EACCESS errors as rootNikolaus Rath-8/+13
Fixes #111.
2016-11-06Don't hardcode test file name.Nikolaus Rath-1/+1
2016-11-06Added test for fchmodNikolaus Rath-1/+186
At the moment this test fails (cf. issue #62). If that gets fixed in the kernel, this test can be activated conditionally.
2016-10-28Renamed fusermount / mount.fuse to fusermount3 / mount.fuse3Nikolaus Rath-2/+2
2016-10-24Fix segfault in debug logging codeNikolaus Rath-1/+4
fi may be NULL, so we need to protect against this.
2016-10-20fuse_new(): don't accept options that don't make sense for end-usersNikolaus Rath-2/+0
Several options (use_ino, etc) depend on the file system implementation. Allowing them to be set from the command line makes no sense.
2016-10-15Unify handling of fuse_conn_info optionsNikolaus Rath-11/+16
Instead of using command line options to modify struct fuse_conn_info before and after calling the init() handler, we now give the file system explicit control over this.
2016-10-13tests: use freshly-build fusermount (instead of system version)Nikolaus Rath-4/+22
When running tests as non-root, make fusermount setuid root.
2016-10-13Only test writeback cache if kernel is recent enough.Nikolaus Rath-1/+5
2016-10-10Fix race condition in notify_* examplesNikolaus Rath-13/+8
The fix in commit cf4159156b was incomplete. While some false positives are caused by sleep() in the file system taking longer than expected, there was also a race condition where the file system would run before the contents are initialized properly.
2016-10-10Added write cache tests.Nikolaus Rath-2/+225
2016-10-09Added cuse unit test.Nikolaus Rath-2/+42
2016-10-09Increase timeouts in notify_* testsNikolaus Rath-8/+14
When running under Valgrind, we otherwise get sporadic test failures.
2016-10-09Renamed timefsN examples to fuse_notify_*Nikolaus Rath-4/+6
This should make it more obvious at first glance what the different examples do.
2016-10-09Renamed ioctl and poll examplesNikolaus Rath-6/+6
The new names should make it more obvious at first glance what each example demonstrates.
2016-10-09Renamed some examples to make their function more obviousNikolaus Rath-69/+9
Also, added more comments for the same purpose.
2016-10-08Added timefs3 to test notify_inval_entry.Nikolaus Rath-1/+33
Fixes #32.
2016-10-08Added timefs[12] examples.Nikolaus Rath-1/+31
These examplesdemonstrate the use of the `fuse_lowlevel_notify_store` and `fuse_lowlevel_notify_inval_inode` functions.