matil019 / haskell-libfuse3

A Haskell binding for libfuse-3.x
https://hackage.haskell.org/package/libfuse3
MIT License
5 stars 1 forks source link

Add a very basic set of tests #4

Closed matil019 closed 3 years ago

matil019 commented 4 years ago

Added an Hspec testsuite integtest. The tests mounts filesystems onto the real filesystem, so it's considered an integration test, hence the name.

Currently only a very basic set of tests are implemented. One of the test tries the basic usage of fuseGetattr. The others cover the pain point of the current libfuse3 API; fuseRead without fuseOpen and fuseReaddir without fuseOpendir shouldn't trigger runtime errors and/or some nasty bugs. (Currently they are implemented with unevaluated fromJust thunks.)

Also updated the README to mention the fuse3 package, which installs the fusermount3 command to allow unmounting FUSE filesystems.

matil019 commented 3 years ago

Regarding the message of a062dee; I meant "v1.0" not "v0"