Ihar Hrachyshka
927c8ff4d8
tests: apply os.utime to created symlinks too
...
Nanosecond precision is not universally available on all platforms. For
example, nixpkgs python is built using Apple SDK 10.12 that does not
have `utimensat`. Because of that, python `os.stat` falls back to
microsecond precision.
This patch applies `os.utime` with zeroed nanoseconds to symlinks
created by the test case, the same way as it is already applied to other
files tested for transfer.
2024-10-03 23:09:28 -04:00
Kovid Goyal
e7d6101bd4
DRYer
2024-02-25 09:57:44 +05:30
Kovid Goyal
40a4429e58
Ignore failure to remove tempdir during test tear down
2024-02-25 09:57:44 +05:30
Kovid Goyal
c5f0b03a62
Remove not needed function
2024-02-25 09:57:29 +05:30
Kovid Goyal
c11d1d3430
Add more integration testing for the transfer kitten
2023-07-30 19:49:47 +05:30
Kovid Goyal
47913a7c1f
Tests for normal mode home dir expansion
2023-07-30 19:49:47 +05:30
Kovid Goyal
995c447435
Get the multi file tests working for the receive kitten
2023-07-30 19:49:47 +05:30
Kovid Goyal
a30687125c
Start on tests for receive kitten
2023-07-30 19:49:47 +05:30
Kovid Goyal
2cae0ab695
Dont wait for cancel response when user denies permission
2023-07-30 19:49:46 +05:30
Kovid Goyal
bb897fa299
Ignore directory mtimes when testing
...
They are flaky on CI for some reason
2023-07-30 19:49:46 +05:30
Kovid Goyal
eecf24b986
Fix registering of mtimes
2023-07-30 19:49:44 +05:30
Kovid Goyal
e60fef3ba1
More tests for send kitten
2023-07-30 19:49:44 +05:30
Kovid Goyal
346a651a48
Add option to control compression modes
2023-07-30 19:49:44 +05:30
Kovid Goyal
350af446d3
More tests
2023-07-30 19:49:44 +05:30
Kovid Goyal
39f7f2d7b4
Cant flush response in a parser callback as it can cause recursive parsing
2023-07-30 19:49:44 +05:30
Kovid Goyal
34dfd1881f
Update docs on what is needed for the transfer kitten
2023-07-30 19:49:44 +05:30
Kovid Goyal
15978c9c60
Infrastructure for testing the transfer kitten
2023-07-30 19:49:43 +05:30
Kovid Goyal
42edfa6a47
Prevent ruff from failing because of to be ported test
2023-07-30 19:49:43 +05:30
Kovid Goyal
86a1a40d1d
remove unused code
2023-07-30 19:49:43 +05:30
Kovid Goyal
edc1669ced
Ported tests all pass
2023-07-30 19:49:43 +05:30
Kovid Goyal
bbbc33d4dc
...
2023-07-30 19:49:43 +05:30
Kovid Goyal
b03fa08884
...
2023-07-30 19:49:43 +05:30
Kovid Goyal
9a5b3a7315
Start work on porting rsync roundtrip tests
2023-07-30 19:49:43 +05:30
Kovid Goyal
c84874ca8d
Add tests for the xxhash based hashers
2023-07-30 19:49:42 +05:30
Kovid Goyal
37d9a572ee
Restore a couple of needed functions to the rsync module
2023-07-30 19:49:42 +05:30
Kovid Goyal
6c79ae4443
Proper parsing of safe_string fields
2023-07-30 19:49:38 +05:30
Kovid Goyal
e05902e8ee
...
2023-07-30 19:49:38 +05:30
Kovid Goyal
55bbf175c6
Port send file mapping tests
2023-07-30 19:49:37 +05:30
Kovid Goyal
7fe5d7b58f
Replace isort with ruff
2023-01-09 16:47:42 +05:30
Kovid Goyal
061a0c8cb6
Reset global options object in the tests
2022-06-07 10:58:03 +05:30
Kovid Goyal
950edb1110
Fix symlink transmission
2021-11-05 13:18:58 +05:30
Kovid Goyal
c4b3723372
More work on file transfer
2021-11-05 13:10:04 +05:30
Luflosi
bb5ded4e65
Don't rely on nanosecond resolution when testing mtime transmission
...
Commit 85cea78b3c missed a couple instances where the mtime was not a multiple of 1µs.
See https://github.com/kovidgoyal/kitty/issues/4175 .
2021-11-01 21:06:23 +01:00
Kovid Goyal
85cea78b3c
Use 13000 when testing mtime transmission as there exist some systems with a 1000ns resolution. See #4175
2021-10-31 19:13:55 +05:30
Kovid Goyal
d03f4dbc98
More work on file transfer
2021-10-30 16:54:27 +05:30
Kovid Goyal
ee852cf5fc
More work on file transmission
2021-10-29 21:52:49 +05:30
Kovid Goyal
820a893d75
More work on file transfer
2021-10-29 15:01:31 +05:30
Kovid Goyal
b51be8382f
Transmit home directory when sending so filenames can be resolved
...
Also only send metadata if permission granted by user
2021-10-21 20:06:53 +05:30
Kovid Goyal
6546c1da9b
run pyupgrade to upgrade the codebase to python3.6
2021-10-21 12:43:55 +05:30
Kovid Goyal
5f91084968
More work on file transfer
2021-10-18 13:02:37 +05:30
Kovid Goyal
706494016c
More work on file transmission
2021-10-14 18:29:02 +05:30
Kovid Goyal
df1ecad7e9
Fix failing test
...
Ignore progress messages in the tests
2021-10-03 12:01:41 +05:30
Kovid Goyal
01299421ee
Fix typo causing test to fail
2021-10-02 11:07:34 +05:30
Kovid Goyal
5729e33412
librsync actually blocks on output buffer size as well as input availability. So handle that
2021-10-02 09:26:35 +05:30
Kovid Goyal
e6cff61f99
Move management of destination file completely into PatchFile
2021-10-01 14:29:14 +05:30
Kovid Goyal
259ca4a11e
Speed up parsing of file transfer OSC codes
...
Avoid roundtrips between unicode and bytes objects
2021-09-25 14:05:21 +05:30
Kovid Goyal
17e95cb615
Add a test for rsync roundtrip
2021-09-19 20:55:00 +05:30
Kovid Goyal
5ce71506c8
Various minor fixes in nightly pipeline
2021-09-16 22:31:43 +05:30
Kovid Goyal
d042ea5ab9
Split up tranfer kitten code into modules
2021-09-16 13:47:12 +05:30
Kovid Goyal
6993c905e3
Disallow empty ids in file transfer commands
2021-09-13 09:53:59 +05:30