summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2025-02-11Update AGP to 8.8.0Joel Klinghed
2024-11-10Drive-by: Remove extra blank lineJoel Klinghed
2024-11-10verifier: Add tests for documents, samba and sftpJoel Klinghed
2024-11-10detekt: Remove LongParameterListJoel Klinghed
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: Include new targetSdk in test rangeJoel Klinghed
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-09documents: Add single merge tests local <-> documentsJoel Klinghed
Fixed DocumentFile#equals. DelayedDocumentFile was equal DocumentFile but DocumentFile wasn't equal to DelayedDocumentFile.
2024-11-09documents: Create DocumentTreeTestHelperJoel Klinghed
For future tests
2024-11-09single merge: Improve inside root check for symlinks with targetsJoel Klinghed
2024-11-09single merge: Avoid loopsJoel Klinghed
If a symlink points to a directory already visited in parent path, don't visit. Otherwise you will get a stack overflow.
2024-11-09single merge: Put non-mutable parameters in a data classJoel Klinghed
Reduces parameter count.
2024-11-09sftp: More symlink fixesJoel Klinghed
2024-11-09sftp: Move common code to SftpTestHelperJoel Klinghed
2024-11-09samba: Add single merge tests for local <-> sambaJoel Klinghed
Fix lastModified time calculation for samba.
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-06Add SftpTestHelperJoel Klinghed
Handles the docker start and stop and all that. Useful for adding more tests that use a sftp instance.
2024-11-06Remove more opinionated detekt checksJoel Klinghed
2024-11-06Move BaseSingleMergeTest to test-utilsJoel Klinghed
Will be easier to include in other projects then. And it is where TreeAbstractTest is.
2024-11-05Add single mergeJoel Klinghed
Single as in merge in one direction, a source and a target. Split merge in to calculating (done by SingleMerge) which returns a number of steps to do. Modifier then applies the steps. Still thinking of pair or two-way merge, need a database for that or you can never remove any files.
2024-11-05Workaround kotlin & Android API 35 snafoJoel Klinghed
removeLast resolved to kotlin extension method on Android 34 and older. On 35 it resolves to a new Java method, that is API 35 only.
2024-11-05Use a constantJoel Klinghed
2024-11-05Style cleanupJoel Klinghed
Remove unused parameter names, extra colons, code that is never executed and an opinionated detekt check.
2024-11-05Suppress unstable/incubating warnings in gradle filesJoel Klinghed
Too many useful things are "Incubating"
2024-10-31sftp: Verify server fingerprintJoel Klinghed
If no fingerprint is stored -> save whatever the server gives If a fingerprint is stored -> error if fingerprint does not match
2024-10-31sftp: Let a selection of tests use private key authenticationJoel Klinghed
Tests switch between password authentication and private key authentication depending on the hash of the method name. It's a fairly even spread. Update the docker config, it never wanted a pem file, it wanted a ssh-rsa format public key.
2024-10-31sftp: Simplify authentication with private keyJoel Klinghed
Let ssh2 derive the public key from the private key. Much easier.
2024-10-31Make path returned by resolve more consistentJoel Klinghed
2024-10-31Bump android gradle plugin and other android libsJoel Klinghed
Also upgraded compileSdk to 35.
2024-10-31Bump Java to 17Joel Klinghed
11 is really old by now.
2024-10-23Update OpenSSL to 3.4.0Joel Klinghed
2024-10-16Android Studio Ladybug modifies filesJoel Klinghed
2024-10-16Update AGP and other android libsJoel Klinghed
2024-10-16Update libssh2 to 1.11.1Joel 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-10-03Bump versionsJoel Klinghed
Gradle 8.10.2 AGP 8.7.0 Kotlin 2.0.20
2024-09-25sftp: Use val when possibleJoel Klinghed
2024-09-25samba & sftp: Share path utils methodsJoel Klinghed
Add tests for them, and add basename, currently unused, for completeness
2024-09-25Add unicode filename testJoel Klinghed
And fix errors in MUTF-8 conversion in jni.cpp
2024-09-25samba: Fix testJoel Klinghed
When robolectric loads multiple SDK versions it initialize the NativeSamba class multiple times but loading libsamba.so multiple times doesn't work. Avoid the problem by going back to only testing one SDK level for samba.
2024-09-25samba: Remove untested symlink codeJoel Klinghed
Not been able to test the symlink code (as it is SMB1 only), instead of having a lot of (possibly, most likely) broken code that might be used by someone, remove it all.
2024-09-25samba: Fix description testJoel Klinghed
Leftover from early test, there is a tree already.
2024-09-25samba: Follow clang-tidy suggestionsJoel Klinghed
2024-09-25samba: Fix output dir for testsJoel Klinghed
2024-09-25Add libs:sftpJoel Klinghed
sftp implementation using libssh2 and openssl
2024-09-10Update a bunch of android librariesJoel Klinghed
2024-09-10Update gradle to 8.10.1Joel Klinghed