summaryrefslogtreecommitdiff
path: root/tests/conftest.py
AgeCommit message (Collapse)Author
2021-10-11Clean up smoketest and pytests.Brett Holman
- Replace depreciated tempfile with mktemp in smoketest. - Remove unused pytest imports and variables. - Make path lookup less fragile. Allows pytest to run from any cwd. - Prevent exeptions caused by calling functions/methods on None objects. - Disable fuse tests in smoketest. These are broken and add noise. - Add missing travis CI dependency. Signed-off-by: Brett Holman <bholman.devel@gmail.com>
2019-12-14Clean up after failed unit tests better.Justin Husted
Signed-off-by: Justin Husted <sigstop@gmail.com>
2019-11-09Implement basic fuse mount tests.Justin Husted
The purpose of these tests is to verify that bcachefs fuse support works as expected, including gathering valgrind errors from the bcachefs executable. To do this, bcachefs is executed from a helper thread in the new util.BFuse class, which goes about setting up and validating the valgrind data as well as making sure the mount has completed sufficiently before the test starts executing. This also includes some basic functionality smoke tests which cover file creation, timestamps, etc. Signed-off-by: Justin Husted <sigstop@gmail.com>