summaryrefslogtreecommitdiff
path: root/tests/test_basic.py
AgeCommit message (Collapse)Author
2024-07-15kill old python testsKent Overstreet
these were never used, kill a dependency Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-02-23Test 'fix'?Roland Vet
Signed-off-by: Roland Vet <RlndVt@protonmail.com>
2024-02-22Fix dirent test: lines have changedRoland Vet
Signed-off-by: Roland Vet <RlndVt@protonmail.com>
2024-02-22Fix line checkRoland Vet
Output has become much more verbose: mounting version 1.6: btree_subvolume_children opts=ro,errors=continue,degraded,nochanges,norecovery,read_only recovering from clean shutdown, journal seq 9 alloc_read... done stripes_read... done snapshots_read... done u64s 16 type inode_v3 0:4096:U32_MAX len 0 ver 0: mode=40755 flags= (16300000) journal_seq=1 bi_size=0 bi_sectors=0 bi_version=0bi_atime=90363614 bi_ctime=91363625 bi_mtime=91363625 bi_otime=90363614 bi_uid=0 bi_gid=0 bi_nlink=1 bi_generation=0 bi_dev=0 bi_data_checksum=0 bi_compression=0 bi_project=0 bi_background_compression=0 bi_data_replicas=0 bi_promote_target=0 bi_foreground_target=0 bi_background_target=0 bi_erasure_code=0 bi_fields_set=0 bi_dir=0 bi_dir_offset=0 bi_subvol=1 bi_parent_subvol=0 bi_nocow=0 u64s 17 type inode_v3 0:4097:U32_MAX len 0 ver 0: mode=40700 flags= (15300000) journal_seq=1 bi_size=0 bi_sectors=0 bi_version=0bi_atime=91363625 bi_ctime=91363625 bi_mtime=91363625 bi_otime=91363625 bi_uid=0 bi_gid=0 bi_nlink=0 bi_generation=0 bi_dev=0 bi_data_checksum=0 bi_compression=0 bi_project=0 bi_background_compression=0 bi_data_replicas=0 bi_promote_target=0 bi_foreground_target=0 bi_background_target=0 bi_erasure_code=0 bi_fields_set=0 bi_dir=4096 bi_dir_offset=453699834857023875 bi_subvol=0 bi_parent_subvol=0 bi_nocow=0 Signed-off-by: Roland Vet <RlndVt@protonmail.com>
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-10-05pytest: remove arbitrary assertionKayla Fire
2021-06-04Fix python test_listJustin Husted
The test arbitrarily checked some printed output which changed. Signed-off-by: Justin Husted <sigstop@gmail.com>
2020-08-22Fixes tests which have broken since 'list' improvementsJaanus Torp
Improvements to the 'list' command broke the basic test assertion that the output should be only 2 lines. Now it's 95 lines. This PR fixes this test for now. Thank you for the great work!
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>