summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRyo Nakamura <upa@haeena.net>2022-11-01 00:34:40 +0900
committerRyo Nakamura <upa@haeena.net>2022-11-01 00:34:40 +0900
commitb8ee9607323294916073529c4c36ff2e58ca7686 (patch)
treee01d66c84e246df41d38fd82cc501c7591c83c20 /test
parentd62fc2cddd5ced47bb33464b3c462346a5592295 (diff)
add test_transfer_zero_bytes
Diffstat (limited to 'test')
-rw-r--r--test/README.md11
-rw-r--r--test/test_e2e.py7
2 files changed, 18 insertions, 0 deletions
diff --git a/test/README.md b/test/README.md
new file mode 100644
index 0000000..fc181b6
--- /dev/null
+++ b/test/README.md
@@ -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'
+```
diff --git a/test/test_e2e.py b/test/test_e2e.py
index e2fd9d1..3091255 100644
--- a/test/test_e2e.py
+++ b/test/test_e2e.py
@@ -160,3 +160,10 @@ def test_cannot_override_file_with_dir(mscp, src_prefix, dst_prefix):
src.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()
+
+