aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_ctests.py
AgeCommit message (Collapse)AuthorLines
2024-12-17tests: Add debug messages to some tests and umountBernd Schubert-7/+42
On my nfs mount the tests were hanging and it was impossible to diagnoze what is actually the issue. Also get rid of 'looseversion' python package dependency, as that package is not in ubuntu - add a handcode kernel version parser.
2024-03-20/test_ctests / test_notify1: Print cmdline on failureBernd Schubert-0/+1
Tests sometimes fail with pytest.fail('file system process terminated prematurely') And it is not clear what actually happens.
2024-03-20Fix test failures: Create missing mount dirBernd Schubert-1/+7
Tests were failing because mount dir was missing. Unclear to me why this became only recently an issue (github internal - out of the sudden tests were hanging).
2023-04-11Migrate away from deprecated distutilsMatthias Goergens-1/+1
Before: ``` =============================== warnings summary =============================== test/test_ctests.py:12 /tmp/libfuse-build-mB50ZC/build-gcc-9/test/test_ctests.py:12: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives from distutils.version import LooseVersion -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ```
2022-01-05Add test for FOPEN_NOFLUSH flagAmir Goldstein-0/+5
Simulate write() delay and verify that close(rofd) does not block waiting on pending writes. The support for the flag was added in kernel v5.16-rc1. Signed-off-by: Amir Goldstein <amir73il@gmail.com>
2019-11-20Invoke cleanup() with right arguments.Nikolaus Rath-1/+1
This currently causes hangs if the test fails, cf issue #459.
2019-07-04Fix output checking in test casesNikolaus Rath-6/+8
py.test's capture plugin does not work reliably when used by other fixtures. Therefore, implement our own version.
2018-11-24Kill filesystem process on test cleanup.Nikolaus Rath-1/+1
2017-08-25Fix writeback capability check.Nikolaus Rath-1/+1
2017-08-24Use printcap() to control test executionNikolaus Rath-4/+9
That way, we run only tests that are supported by the running kernel.
2017-08-24Renamed notify_inval_inode_fh to invalidate_pathNikolaus Rath-2/+2
The previous name didn't make much sense.
2017-08-24Allow inode cache invalidation in high-level APISławek Rudnicki-2/+26
We re-introduce the functionality of invalidating the caches for an inode specified by path by adding a new routine fuse_invalidate_path. This is useful for network-based file systems which use the high-level API, enabling them to notify the kernel about external changes. This is a revival of Miklos Szeredi's original code for the fuse_invalidate routine.
2017-08-11Skip tests that aren't supported under FreeBSD.Nikolaus Rath-3/+7
2017-05-25Factored out C-based testsNikolaus Rath-0/+64