summaryrefslogtreecommitdiff
path: root/tests/util.py
AgeCommit message (Collapse)Author
2024-01-16move Rust sources to top level, C sources into c_srcThomas Bertschinger
This moves the Rust sources out of rust_src/ and into the top level. Running the bcachefs executable out of the development tree is now: $ ./target/release/bcachefs command or $ cargo run --profile release -- command instead of "./bcachefs command". Building and installing is still: $ make && make install Signed-off-by: Thomas Bertschinger <tahbertschinger@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-01-16convert main() from C to RustThomas Bertschinger
This moves the main() function from C to Rust. It also updates the name of the Rust package from "bcachefs-rust" to "bcachefs-tools". Signed-off-by: Thomas Bertschinger <tahbertschinger@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
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>
2021-06-05Make fuse tests fail on emergency ro or iter leakJustin Husted
Signed-off-by: Justin Husted <sigstop@gmail.com>
2021-06-04add Valgrind suppression to ignore userspace-rcu leakBrett Holman
2019-12-28bcachefs-tools: fix test bug in valgrind handling.Justin Husted
Signed-off-by: Justin Husted <sigstop@gmail.com>
2019-12-28bachefs-tools: Fix broken test code.Justin Husted
A check was missing in some of the python test code, probably from a bad cherry-pick. Signed-off-by: Justin Husted <sigstop@gmail.com>
2019-12-28Make valgrind disabled by default in unit tests.Justin Husted
Since valgrind runtime support is disabled by default, we shouldn't run the tests with valgrind by default. Signed-off-by: Justin Husted <sigstop@gmail.com>
2019-11-18Support remounting in fuse tests.Justin Husted
Signed-off-by: Justin Husted <sigstop@gmail.com>
2019-11-18Make valgrind optional in tests.Justin Husted
Add an option to disable valgrind in the test suite, via the variable: BCACHEFS_TEST_USE_VALGRIND=no Additionally, note how to run tests in parallel in the INSTALL documentation. Signed-off-by: Justin Husted <sigstop@gmail.com>
2019-11-11Make fuse3 support optional and document.Justin Husted
The experimental fuse3 support is not complete yet, and fuse3 is new and still difficult to install on some platforms. Make it optional at compile time, and default to off. 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>
2019-11-03Initial version of bcachefs tests.Justin Husted
So far, these tests just test basic format, fsck, and list functions under valgrind, as well as a few self-validation tests. Signed-off-by: Justin Husted <sigstop@gmail.com>