You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add integration tests to access the FUSE endpoint and test all kind of operations.
Setup tests similar to examples/mount.rs and then run integration tests over the mounted folder.
To perform the actual operations use the std::fs::OpenOptions, std::fs::File, std::fs and std::io. All tests run against the mount-point.
Each test needs to have it's own mount-point and data-dir so they can be ran in parallel.
Add target guard to only run tests on linux for now until we have implementations of FUSE on macos and windows too. You can add this in tests, setup and teardown methods #[cfg(not(target_os = "linux"))] { return; }
Reference unit tests you can combine logic from and adapt to integration tests
Add integration tests to access the
FUSE
endpoint and test all kind of operations.Setup tests similar to
examples/mount.rs
and then run integration tests over the mounted folder.To perform the actual operations use the
std::fs::OpenOptions
,std::fs::File
,std::fs
andstd::io
. All tests run against themount-point
.Each test needs to have it's own
mount-point
anddata-dir
so they can be ran in parallel.Add target guard to only run tests on
linux
for now until we have implementations ofFUSE
onmacos
andwindows
too. You can add this in tests,setup
andteardown
methods#[cfg(not(target_os = "linux"))] { return; }
Reference unit tests you can combine logic from and adapt to integration tests
Get from these too when done
You can also create similar tests like https://github.com/radumarias/rencfs/issues/181
You can also create bash tests similar to https://github.com/radumarias/syncoxiders/tree/main/file-tree-merge/tests/scripts
Also add tests with concurrent operations over fs.
Ref
The text was updated successfully, but these errors were encountered: