summaryrefslogtreecommitdiff
path: root/libs/test-utils
AgeCommit message (Collapse)Author
2024-11-10Add verifierJoel Klinghed
Used to check if target files have the expected hash. Using a memory cache to not have to read source each time but falls back to reading source if needed.
2024-11-09documents: Allow many methods to take a path, not just a nameJoel Klinghed
Can't create entries with "/" in for the other backends, so they will resolve the path. documents would not. Change that so they are more similar.
2024-11-09sftp: add single merge tests for both local <-> sftp and sftp <-> localJoel Klinghed
Had to fixup the symlink code in Sftp, most importantly add a PathUtils relativeTo to fixup relative links.
2024-11-06Use methods available on API 29, also in testsJoel Klinghed
There is no reason to use the Java version when there is the Kotlin version (for now).
2024-11-06Change SingleMerge to only use second precision when comparing last modifiedJoel Klinghed
Otherwise you get problems with one file system uses seconds and another milliseconds and suddenly two files that are created at the same time does not have the same timestamp. Makes the test suite take 2 seconds longer to run but it is what it is.
2024-11-06Move BaseSingleMergeTest to test-utilsJoel Klinghed
Will be easier to include in other projects then. And it is where TreeAbstractTest is.
2024-10-31Make path returned by resolve more consistentJoel Klinghed
2024-10-14Add path to LinkJoel Klinghed
It's implementation specific if path is relative or absolute but it contains the link target. Especially useful for NoTarget.
2024-10-14Add tests for create dir/file/link that already existsJoel Klinghed
Fix implementations to work as expected (that createDirectory/File/Link fails if an entry with that name already exists).
2024-09-25Add unicode filename testJoel Klinghed
And fix errors in MUTF-8 conversion in jni.cpp
2024-09-25Add libs:sftpJoel Klinghed
sftp implementation using libssh2 and openssl
2024-09-10Add libs:documentsJoel Klinghed
Reads the abomination that is SAF, or Androids best effort to make files and directories completely and utterly unusable on Android. The androidTest was (and is) a pain, only known to work on a Pixel3 API 34 emulator but it showed a lot of things that the fake content provider in the unit tests failed to show.
2024-09-03test: Verify that removeDir, removeFile and removeLink return expected valueJoel Klinghed
2024-09-03Remove robolectric from test-utilsJoel Klinghed
Will make it possible to use TreeAbstractTest in androidTest as well as unittest
2024-08-25Combine tests from both local and sambaJoel Klinghed
Most the tests test the Tree implementation and thus should work on all such implementations. Current exception is symlinks which Samba backend doesn't (currently?) support. Improve the Samba remove methods to better match the expected behavior.