Skip to content

sdm: Generalise all applicable tests to BtrFS and Ext4 and different compressions#123

Open
MaxG87 wants to merge 8 commits into
mainfrom
generalise-tests
Open

sdm: Generalise all applicable tests to BtrFS and Ext4 and different compressions#123
MaxG87 wants to merge 8 commits into
mainfrom
generalise-tests

Conversation

@MaxG87

@MaxG87 MaxG87 commented Jun 16, 2026

Copy link
Copy Markdown
Owner

This MR changes all tests to work on both, BtrFS and ext4 fixtures. This ensures that all supported operations and all desired behaviours hold for both file systems.

Following the same spirit, many tests now are parametrised regarding the file system compression. This ensures that mounting a file system accepts None, various values and skipping passing the argument.

After all that, the file system specific functions are made private. Now the public interface consists of generic functions only.

Make filesystem-specific mount functions private

All tests are extended to cover both BtrFS and ext4 fixtures, ensuring that supported operations and desired behaviours hold for both file systems.

Tests are also parametrised over filesystem compression options, covering None, explicit values, and omitting the argument entirely.

With full test coverage in place, the filesystem-specific functions (mount_btrfs_device, mount_ext4_device) are made private. The public interface now consists of generic functions only.

MaxG87 added 8 commits June 13, 2026 14:00
All tests are executed for both file system types, now. Where
applicable, four different options of compression arguments are covered
too, including `None` and not passing anything.
Where applicable, both file systems are tested for a given test
implementation. Only mount_device is used to mount devices.
@MaxG87 MaxG87 changed the title storage-device-managers: Generalise all applicable tests to BtrFS and Ext4 and different compressions sdm: Generalise all applicable tests to BtrFS and Ext4 and different compressions Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant