Nikolaus Rath
001b7dc194
Only build test/*.py if out of date.
2017-04-10 16:39:01 -07:00
Nikolaus Rath
eb97211415
Actually test passthrough* examples
...
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-07 16:40:15 -07:00
Nikolaus Rath
d3c352142c
test_examples(): test without debug messages first
...
That way, we are not drowning in messages when a test would also fail
without debugging enabled.
2017-04-07 16:40:15 -07:00
Nikolaus Rath
3f656efe98
test_examples(): avoid false positives from fuse debug output
2017-04-07 16:40:15 -07:00
Nikolaus Rath
c24cc19f43
passthrough_ll: only test functions that are actually provided
...
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-07 16:40:15 -07:00
Nikolaus Rath
c1ebb9b9b8
Remove checked_unlink()
...
There is no reason why so many tests require the file system
to support unlink() and/or rmdir().
2017-04-07 16:40:15 -07:00
Nikolaus Rath
4cfc2740b2
Turn tst_mknod() into tst_create()
...
Ensure that we are really creating a new file.
Don't attempt to write, we do that in tst_open_write().
2017-04-07 16:40:15 -07:00
Nikolaus Rath
deb2fa355a
Renamed tst_write() to tst_open_write()
...
We are actually testing both opening of an existing file
and writing to it.
2017-04-07 16:40:15 -07:00
Nikolaus Rath
d4092d70db
Added tst_unlink()
...
To check for unlink() support without requiring create()/mknod().
2017-04-07 16:40:15 -07:00
Nikolaus Rath
68d9584e04
tst_mkdir(): factor out tst_rmdir()
...
This allows testing a filesystem that offers mkdir(), but no
rmdir() (and vice versa).
2017-04-07 16:40:15 -07:00
Nikolaus Rath
aaa7a7c3b7
Rename tst_unlink() to tst_open_unlink()
...
This makes more sense, since we are specifically checking
unlinking of an open file.
2017-04-07 16:40:15 -07:00
Nikolaus Rath
3b04359dfb
tst_readdir(): don't require create/mkdir support
...
By creating the files in the lower filesystem, we
can test readdir() even for filesystems that don't implement
create() or mkdir().
2017-04-07 16:40:15 -07:00
Nikolaus Rath
578c8e03d4
Put -Werror in mesonconf, not CFLAGS
...
Putting it in CFLAGS interferes with feature detection.
2017-01-23 12:07:09 -08:00
Nikolaus Rath
4f1a929fed
Only use valgrind if requested explicitly + enable address sanitizer
2017-01-12 15:19:04 -08:00
Nikolaus Rath
bcb8f75995
Switch Travis build to Meson+Ninja
2017-01-12 15:19:04 -08:00
Nikolaus Rath
9f96db7125
Added experimental support for building with Meson+Ninja
2017-01-12 15:19:04 -08:00
Nikolaus Rath
5c76353fe6
Skip tests if not root and no setuid fusermount3.
2017-01-10 14:42:26 -08:00
Nikolaus Rath
8e69b19cdc
Added documentation and test case for null example
2016-12-23 18:31:45 -08:00
Przemysław Pawełczyk
dfbfee07ab
Rename more things from fuse to fuse3
2016-11-28 21:33:14 -08:00
Nikolaus Rath
eb9f12639f
Don't expect EACCESS errors as root
...
Fixes #111 .
2016-11-10 13:10:03 -08:00
Nikolaus Rath
1fe4258932
Don't hardcode test file name.
2016-11-06 21:01:38 -08:00
Nikolaus Rath
a50b2ab170
Added test for fchmod
...
At the moment this test fails (cf. issue #62 ). If that gets fixed in the
kernel, this test can be activated conditionally.
2016-11-06 21:01:38 -08:00
Nikolaus Rath
695e45a4de
Renamed fusermount / mount.fuse to fusermount3 / mount.fuse3
2016-10-28 14:43:44 -07:00
Nikolaus Rath
f84f2db692
Fix segfault in debug logging code
...
fi may be NULL, so we need to protect against this.
2016-10-24 21:09:00 -07:00
Nikolaus Rath
8ee553dac0
fuse_new(): don't accept options that don't make sense for end-users
...
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-20 15:32:20 -07:00
Nikolaus Rath
d49f2e77b4
Unify handling of fuse_conn_info options
...
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-15 16:49:23 -07:00
Nikolaus Rath
a47dedd47f
tests: use freshly-build fusermount (instead of system version)
...
When running tests as non-root, make fusermount setuid root.
2016-10-13 11:02:04 -07:00
Nikolaus Rath
1b45dc875f
Only test writeback cache if kernel is recent enough.
2016-10-13 10:35:13 -07:00
Nikolaus Rath
2044df660f
Fix race condition in notify_* examples
...
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-10 11:47:29 -07:00
Nikolaus Rath
71064a41f8
Added write cache tests.
2016-10-10 11:07:38 -07:00
Nikolaus Rath
4fe8c95274
Added cuse unit test.
2016-10-09 22:03:07 -07:00
Nikolaus Rath
cf4159156b
Increase timeouts in notify_* tests
...
When running under Valgrind, we otherwise get sporadic test failures.
2016-10-09 22:03:07 -07:00
Nikolaus Rath
64c97de5be
Renamed timefsN examples to fuse_notify_*
...
This should make it more obvious at first glance what the different
examples do.
2016-10-09 22:03:07 -07:00
Nikolaus Rath
bcad1a6f22
Renamed ioctl and poll examples
...
The new names should make it more obvious at first glance
what each example demonstrates.
2016-10-09 22:03:07 -07:00
Nikolaus Rath
463189cd12
Renamed some examples to make their function more obvious
...
Also, added more comments for the same purpose.
2016-10-09 22:03:07 -07:00
Nikolaus Rath
9f19d71a76
Added timefs3 to test notify_inval_entry.
...
Fixes #32 .
2016-10-08 21:27:06 -07:00
Nikolaus Rath
3114ff2b9b
Added timefs[12] examples.
...
These examplesdemonstrate the use of the `fuse_lowlevel_notify_store`
and `fuse_lowlevel_notify_inval_inode` functions.
2016-10-08 21:27:04 -07:00
Nikolaus Rath
ba0462e401
Added safe_sleep()
2016-10-08 21:26:40 -07:00
Nikolaus Rath
97f4a9cb4f
Removed `-o big_writes
` option
...
This option is obsolete and should always be enabled. File systems that
want to limit the size of write requests should use the
``-o max_write=<N>`` option instead.
2016-10-08 21:26:36 -07:00
Nikolaus Rath
2680c5b995
Test more combinations of low-level options.
2016-10-05 20:03:18 -07:00
Nikolaus Rath
321af37ee1
Don't crash if valgrind or libtool are not installed.
2016-10-03 09:08:58 -07:00
Nikolaus Rath
f270ba9121
Run tests under valgrind when available.
...
Fixes #50 .
2016-10-02 22:39:28 -07:00
Nikolaus Rath
651f85e4a2
Import os.path.join as pjoin
...
Makes the code much shorter :-).
2016-10-02 22:11:16 -07:00
Nikolaus Rath
e52c84d074
Added test for fuse_lo-plus.
2016-10-02 20:37:07 -07:00
Nikolaus Rath
9620fa7954
Run hello_ll single-threaded explicitly.
2016-10-02 20:34:31 -07:00
Nikolaus Rath
92ec27d982
Add 'traceback' as suspicious test output pattern.
2016-05-13 15:20:17 -07:00
Nikolaus Rath
d516c72aaf
Add ioctl tests.
2016-05-13 13:12:40 -07:00
Nikolaus Rath
2aa1f6b138
Added test_fsel
2016-03-29 16:16:01 -07:00
Nikolaus Rath
0db5bc69ea
Added unit tests for fusexmp and hello
2016-03-29 16:07:29 -07:00
Nikolaus Rath
59e58de40c
Added basic unit tests.
...
Fixes issue #33 .
2016-03-29 16:06:29 -07:00