From fb96c21d935f34bf6b73b58fa1f7801ca25543d4 Mon Sep 17 00:00:00 2001 From: TapTap Date: Thu, 3 Sep 2026 21:14:49 +0200 Subject: [PATCH] test: complete human-readable progress coverage --- RSYNC_COMPAT.md | 4 ++-- src/shared/utils.h | 1 - tests/integration/test_features.py | 13 +++++++++++++ 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/RSYNC_COMPAT.md b/RSYNC_COMPAT.md index 0954eec..15c68a1 100644 --- a/RSYNC_COMPAT.md +++ b/RSYNC_COMPAT.md @@ -6,10 +6,10 @@ This document maps rsync's full feature set to FastSync's current implementation | Status | Count | Description | |--------|-------|-------------| -| ✅ Implemented | 34 | Feature works end-to-end | +| ✅ Implemented | 35 | Feature works end-to-end | | 🔀 Alt Arg | 3 | Functionality exists but under different flag/semantics | | ⚠️ Partial | 1 | Flag parsed/stored but behavior incomplete | -| ❌ Not Implemented | 98 | Flag not recognized or no behavior | +| ❌ Not Implemented | 97 | Flag not recognized or no behavior | | **Total** | **136** | | --- diff --git a/src/shared/utils.h b/src/shared/utils.h index 433fd97..6681758 100644 --- a/src/shared/utils.h +++ b/src/shared/utils.h @@ -4,7 +4,6 @@ #include "array_list.h" #include #include -#include bool mkdir_r(const char* path); char* str_dup(const char* string); diff --git a/tests/integration/test_features.py b/tests/integration/test_features.py index 0a36202..8065057 100644 --- a/tests/integration/test_features.py +++ b/tests/integration/test_features.py @@ -280,6 +280,19 @@ class TestProgress: assert "Stats:" in result.stderr assert "KB" in result.stderr + def test_human_readable_progress_multithreaded(self, shared_server): + clean_dir(DEST_DIR) + result, dur = run_client( + SOURCE_DIR, DEST_DIR, + flags=["-m", "-h", "--progress"], + port=shared_server.port, + ) + assert result.returncode == 0, f"Exit {result.returncode}: {result.stderr[:100]}" + output = result.stdout + result.stderr + assert "Sent " in output + assert "KB" in output + assert "Done." in output + class TestBandwidthLimit: def test_bwlimit_runs(self, shared_server):