Closed davide125 closed 2 years ago
@davide125 Wouldn't it make sense to add a meson option for testing and test dependencies, and flag this based on that?
Yeah, we could do that too. @adam900710 what do you prefer?
I think it would be better to do it that way because it's more explicit and makes it easier to identify things (read: bcond in a spec file and such).
Sorry, I'm not an expert in meson (that's why I'm trying to use meson, as a practice).
But if there is a way to explicitly define dependencies for selftest, I'd prefer that.
And for the libbtrfsutil dependency, it's mostly for fsstress subvolume/snapshot create/delete. If someone is really interested in that, it may be a good idea to call the ioctl directly without using the wrapper.
@davide125 ping?
Updated to use a meson knob to gate these (and fixed a bug while at it).
Test dependencies aren't required for btrfs-fuse to actually compile and work, so mark them as such. Among other things, this allows one to build btrfs-fuse of a CentOS / RHEL system that doesn't ship btrfs-progs.