mirror of
https://github.com/upa/mscp.git
synced 2026-05-18 18:37:31 +08:00
add test_transfer_zero_bytes
This commit is contained in:
11
test/README.md
Normal file
11
test/README.md
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
|
||||||
|
This test assumes that the user executing the test can ssh to the
|
||||||
|
localhost without password.
|
||||||
|
|
||||||
|
- Run pytest through ctest.
|
||||||
|
|
||||||
|
```console
|
||||||
|
cd build
|
||||||
|
cmake ..
|
||||||
|
make test # or make test ARGS='-V'
|
||||||
|
```
|
||||||
@@ -160,3 +160,10 @@ def test_cannot_override_file_with_dir(mscp, src_prefix, dst_prefix):
|
|||||||
src.cleanup()
|
src.cleanup()
|
||||||
dst.cleanup()
|
dst.cleanup()
|
||||||
|
|
||||||
|
@pytest.mark.parametrize("src_prefix, dst_prefix", param_remote_prefix)
|
||||||
|
def test_transfer_zero_bytes(mscp, src_prefix, dst_prefix):
|
||||||
|
src = File("src", size = 0).make()
|
||||||
|
run2ok([mscp, src_prefix + src.path, dst_prefix + "dst"])
|
||||||
|
src.cleanup()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user