| 1 | # rsync option / daemon-parameter test coverage matrix |
| 2 | |
| 3 | Living checklist for the test-coverage effort that precedes the path-handling |
| 4 | restructure of rsync's path resolution. The restructure rewrites parent-directory |
| 5 | resolution for essentially every option, so the goal here is a regression net |
| 6 | that exercises each option **at directory depth** (≥3 levels) and, where the |
| 7 | option spans trees, **across directory boundaries**, asserting the *specific |
| 8 | property* the option controls — not just `dest == src`. |
| 9 | |
| 10 | How to read the columns: |
| 11 | |
| 12 | * **test(s)** — the `testsuite/*_test.py` that exercise the option. Tests added |
| 13 | by this effort are marked `*new*`. |
| 14 | * **depth** — Y = asserted on entries ≥3 levels deep; `~` = exercised only at/near |
| 15 | the tree root; `n/a` = not a path-resolution option. |
| 16 | * **x-dir** — Y = exercised with the relevant aux tree (temp/backup/dest/partial) |
| 17 | **outside** the main tree; `—` = not a cross-directory option. |
| 18 | * **gap** — what is still missing. |
| 19 | |
| 20 | Status legend: ✓ property asserted · `~` shallow / by an existing ported test · |
| 21 | ✗ no coverage. |
| 22 | |
| 23 | --- |
| 24 | |
| 25 | ## Command-line options |
| 26 | |
| 27 | ### Recursion / structure |
| 28 | | option | test(s) | depth | x-dir | notes / gap | |
| 29 | |---|---|---|---|---| |
| 30 | | -a, --archive | (all) | Y | — | ✓ ubiquitous | |
| 31 | | -r, --recursive | hands, delete-deep*new* | Y | — | ✓ | |
| 32 | | -R, --relative | relative, relative-implied*new* | Y | — | ✓ implied-dir attrs at depth | |
| 33 | | --no-implied-dirs | relative-implied*new* | Y | — | ✓ (proto 30+; proto 29 rejects multi-component path) | |
| 34 | | --inc-recursive / --no-inc-recursive | hardlinks | Y | — | `~` exercised, not isolated | |
| 35 | | -d, --dirs | dirs*new* | Y | — | ✓ no-recurse top layer | |
| 36 | | --old-dirs / --old-d | — | — | — | ✗ | |
| 37 | | -m, --prune-empty-dirs | prune-empty-dirs*new* | Y | — | ✓ incl. filter-emptied chains | |
| 38 | |
| 39 | ### Links |
| 40 | | option | test(s) | depth | x-dir | notes / gap | |
| 41 | |---|---|---|---|---| |
| 42 | | -l, --links | links*new*, symlink-ignore | Y | — | ✓ | |
| 43 | | -L, --copy-links | links*new* | Y | — | ✓ deref file+dir | |
| 44 | | -k, --copy-dirlinks | links*new* | Y | — | ✓ follow dir-symlink | |
| 45 | | -K, --keep-dirlinks | symlink-dirlink-basis | Y | — | ✓ #715; skips on no-RESOLVE_BENEATH / --disable-openat2 | |
| 46 | | -H, --hard-links | hardlinks, hardlinks-deep*new* | Y | Y | ✓ cross-directory hardlink | |
| 47 | | --copy-unsafe-links | unsafe-links | `~` | — | `~` | |
| 48 | | --safe-links | safe-links | `~` | — | `~` | |
| 49 | | --munge-links | (daemon-munge*new* covers the daemon param) | — | — | `~` client option not isolated; local mode is a near no-op | |
| 50 | |
| 51 | ### Metadata / permissions / ownership |
| 52 | | option | test(s) | depth | x-dir | notes / gap | |
| 53 | |---|---|---|---|---| |
| 54 | | -p, --perms | metadata-depth*new* | Y | — | ✓ exact modes per entry | |
| 55 | | -E, --executability | executability | `~` | — | `~` | |
| 56 | | --chmod | metadata-depth*new*, chmod-option | Y | — | ✓ | |
| 57 | | -A, --acls | acls, acls-depth*new* | Y | — | ✓ | |
| 58 | | -X, --xattrs | xattrs, xattrs-depth*new* | Y | — | ✓ | |
| 59 | | -t, --times | metadata-depth*new* | Y | — | ✓ | |
| 60 | | -U, --atimes | atimes | `~` | — | `~` (same set path as -t, covered deep) | |
| 61 | | --open-noatime | open-noatime | `~` | — | `~` | |
| 62 | | -N, --crtimes | crtimes | `~` | — | `~` (skips without crtimes support) | |
| 63 | | -O, --omit-dir-times | omit-times*new* | Y | — | ✓ | |
| 64 | | -J, --omit-link-times | omit-times*new* | Y | — | ✓ | |
| 65 | | -o, --owner | chown, ownership-depth*new* | Y | — | ✓ uid map root-gated | |
| 66 | | -g, --group | chgrp, ownership-depth*new* | Y | — | ✓ group remap non-root | |
| 67 | | --super / --fake-super | chown, chown-fake | `~` | — | `~` | |
| 68 | | --numeric-ids | — | — | — | ✗ client; daemon `numeric ids` also ✗ | |
| 69 | | --usermap / --groupmap | ownership-depth*new* | Y | — | ✓ groupmap non-root; usermap root-gated | |
| 70 | | --chown | ownership-depth*new* | Y | — | ✓ group half | |
| 71 | | -D / --devices / --specials | devices, devices-fake | `~` | — | `~` root/device-gated | |
| 72 | | --copy-devices / --write-devices | — | — | — | ✗ device-gated | |
| 73 | | -S, --sparse | sparse*new* | Y | — | ✓ hole preserved at depth | |
| 74 | |
| 75 | ### Delta / temp / backup / dest (highest restructure risk) |
| 76 | | option | test(s) | depth | x-dir | notes / gap | |
| 77 | |---|---|---|---|---| |
| 78 | | -T, --temp-dir | temp-dir*new*, chmod-temp-dir | Y | Y | ✓ cross-dir rename | |
| 79 | | --partial | partial*new* | Y | — | ✓ partial kept in dest file | |
| 80 | | --partial-dir | partial*new*, symlink-dirlink-basis | Y | Y | ✓ relative (in-tree) + absolute (outside), incl. delta resume from an absolute outside-tree partial | |
| 81 | | --delay-updates | delay-updates, delay-updates-deep*new* | Y | — | ✓ per-dir staging | |
| 82 | | --inplace | inplace*new*, alt-dest | Y | — | ✓ inode preserved | |
| 83 | | --append / --append-verify | append*new* | Y | — | ✓ verify split is proto 30+ | |
| 84 | | -b, --backup / --backup-dir / --suffix | backup, backup-deep*new* | Y | Y | ✓ | |
| 85 | | --compare-dest / --copy-dest / --link-dest | alt-dest, alt-dest-deep*new* | Y | Y | ✓ link=hardlink, copy=copy, compare=skip | |
| 86 | | -y, --fuzzy | fuzzy | `~` | — | `~` | |
| 87 | | -u, --update | update*new* | Y | — | ✓ keeps newer dest, updates older | |
| 88 | | -W, --whole-file | (used widely; --no-whole-file ubiquitous) | n/a | — | `~` | |
| 89 | | --mkpath | mkpath | `~` | — | `~` | |
| 90 | | -x, --one-file-system | — | — | — | ✗ (needs a mount boundary) | |
| 91 | | --preallocate / --fsync | — | — | — | ✗ | |
| 92 | | -B, --block-size | — | — | — | ✗ | |
| 93 | | --max-alloc | max-alloc-zero-rejected*new*, daemon-max-alloc-zero*new* | — | — | ✓ zero rejected locally and when forwarded to the daemon (needs an old client) | |
| 94 | |
| 95 | ### Filtering |
| 96 | | option | test(s) | depth | x-dir | notes / gap | |
| 97 | |---|---|---|---|---| |
| 98 | | -f, --filter / -F | filter-depth*new*, merge | Y | — | ✓ deep per-dir merge | |
| 99 | | --exclude / --include | filter-depth*new*, exclude, exclude-lsh | Y | — | ✓ | |
| 100 | | --exclude-from / --include-from | files-from-depth*new* | Y | — | ✓ | |
| 101 | | -C, --cvs-exclude | cvs-exclude*new* | Y | — | ✓ incl. deep .cvsignore | |
| 102 | | --files-from | files-from-depth*new* | Y | — | ✓ | |
| 103 | | -0, --from0 | files-from-depth*new* | Y | — | ✓ | |
| 104 | | --max-size / --min-size | size-filter*new* | Y | — | ✓ | |
| 105 | | --existing / --ignore-existing | delete-deep*new* | Y | — | ✓ | |
| 106 | | --ignore-missing-args / --delete-missing-args | — | — | — | ✗ | |
| 107 | |
| 108 | ### Deletion |
| 109 | | option | test(s) | depth | x-dir | notes / gap | |
| 110 | |---|---|---|---|---| |
| 111 | | --delete / --del | delete, delete-deep*new* | Y | — | ✓ deep subtree | |
| 112 | | --delete-before/during/delay/after | delete-deep*new* | Y | — | ✓ all four agree | |
| 113 | | --delete-excluded | delete | `~` | — | `~` | |
| 114 | | --max-delete | delete-deep*new* | Y | — | ✓ caps deletions | |
| 115 | | --remove-source-files | delete | `~` | — | `~` | |
| 116 | | --force | update*new* | Y | — | ✓ replaces a non-empty dir with a file | |
| 117 | | --ignore-errors | — | — | — | ✗ (client; daemon `ignore errors` also ✗) | |
| 118 | |
| 119 | ### Comparison / checksum / compression |
| 120 | | option | test(s) | depth | x-dir | notes / gap | |
| 121 | |---|---|---|---|---| |
| 122 | | -c, --checksum | compare*new* | Y | — | ✓ catches stealth change | |
| 123 | | -I, --ignore-times | compare*new* | Y | — | ✓ | |
| 124 | | --size-only | compare*new* | Y | — | ✓ | |
| 125 | | -@, --modify-window | compare*new* | Y | — | ✓ | |
| 126 | | --checksum-choice / --checksum-seed | compress-options*new* | Y | — | ✓ every advertised algo | |
| 127 | | -z, --compress | daemon-gzip-{up,down}load, daemon-refuse-compress | `~` | — | `~` | |
| 128 | | --compress-choice / --compress-level / --skip-compress | compress-options*new* | Y | — | ✓ | |
| 129 | |
| 130 | ### Output / reporting (path-irrelevant — checked for output shape) |
| 131 | | option | test(s) | notes / gap | |
| 132 | |---|---|---| |
| 133 | | -i, --itemize-changes | output-options*new*, itemize | ✓ | |
| 134 | | -n, --dry-run | output-options*new* | ✓ | |
| 135 | | --stats | output-options*new* | ✓ | |
| 136 | | --out-format | output-options*new* | ✓ | |
| 137 | | --list-only | output-options*new* | ✓ | |
| 138 | | -q, --quiet | output-options*new* | ✓ | |
| 139 | | --progress / -P | output-options*new* | ✓ (--progress) | |
| 140 | | -h, --human-readable / -8, --8-bit-output | output-options*new* | ✓ smoke | |
| 141 | | --version / --help | output-options*new* | ✓ | |
| 142 | | --info / --debug / --stderr / --no-motd / --outbuf | — | ✗ | |
| 143 | | -M, --remote-option / --log-file / --log-file-format | — | ✗ (daemon `log file` covered) | |
| 144 | |
| 145 | ### Batch / connection / misc |
| 146 | | option | test(s) | notes / gap | |
| 147 | |---|---|---| |
| 148 | | --write-batch / --only-write-batch / --read-batch | batch-mode | `~` | |
| 149 | | -e, --rsh / --rsync-path | ssh-basic, many | `~` | |
| 150 | | --protocol | check29 / check30 (whole suite) | ✓ | |
| 151 | | --address / --port | daemon tests under --use-tcp | `~` | |
| 152 | | --password-file | daemon-auth*new* | ✓ | |
| 153 | | --early-input / daemon `early exec` | — | ✗ | |
| 154 | | --sockopts / --blocking-io / --timeout / --contimeout | — | ✗ | |
| 155 | | -4/-6, --ipv4/--ipv6 | — | ✗ | |
| 156 | | --stop-after / --stop-at | — | ✗ | |
| 157 | | --bwlimit | partial*new* (used, not asserted) | `~` | |
| 158 | | --copy-as | — | ✗ root-gated | |
| 159 | | --iconv | — | ✗ | |
| 160 | | -s/--secluded-args, --old-args, --trust-sender | (default arg-protection exercised) | `~` | |
| 161 | |
| 162 | --- |
| 163 | |
| 164 | ## Daemon (rsyncd.conf) parameters |
| 165 | |
| 166 | | parameter | test(s) | notes / gap | |
| 167 | |---|---|---| |
| 168 | | path | daemon-access*new*, all daemon tests | ✓ incl. deep sub-path | |
| 169 | | read only | daemon-access*new*, daemon | ✓ | |
| 170 | | write only | daemon-access*new* | ✓ | |
| 171 | | list | daemon-access*new*, daemon | ✓ hidden-but-usable | |
| 172 | | use chroot | sender-flist-symlink-leak, daemon-chroot-acl | `~` (no=most tests; yes needs root) | |
| 173 | | munge symlinks | daemon-munge*new* | ✓ /rsyncd-munged/ add+strip | |
| 174 | | exclude / include | daemon-filter*new*, daemon | ✓ exclude | |
| 175 | | filter / exclude from / include from | — | ✗ (exclude covers the mechanism) | |
| 176 | | incoming chmod | daemon-filter*new*, chmod-option | ✓ | |
| 177 | | outgoing chmod | daemon-filter*new* | ✓ | |
| 178 | | auth users / secrets file | daemon-auth*new* | ✓ accept/reject/unauth | |
| 179 | | strict modes | daemon-auth*new* | ✓ rejects world-readable secrets | |
| 180 | | refuse options | daemon-refuse*new*, daemon-refuse-compress | ✓ named/wildcard/allow-list | |
| 181 | | pre-xfer exec / post-xfer exec | daemon-exec*new* | ✓ env + abort | |
| 182 | | early exec | — | ✗ (needs --early-input) | |
| 183 | | hosts allow / hosts deny | daemon (allow), daemon-chroot-acl (deny) | `~` (needs --use-tcp for real peer) | |
| 184 | | reverse lookup / forward lookup | daemon-chroot-acl | `~` reverse only | |
| 185 | | log file / transfer logging / log format | daemon | `~` set, not asserted | |
| 186 | | max verbosity | daemon | `~` | |
| 187 | | comment | daemon, daemon-access*new* | ✓ | |
| 188 | | numeric ids | — | ✗ (hard to observe non-root) | |
| 189 | | fake super | chown-fake (client side) | ✗ as daemon param | |
| 190 | | timeout / max connections / lock file | — | ✗ (need --use-tcp + concurrency) | |
| 191 | | temp dir / open noatime / ignore errors / ignore nonreadable | — | ✗ | |
| 192 | | charset / name converter / dont compress | — | ✗ | |
| 193 | | uid / gid / daemon uid / daemon gid / daemon chroot | build_rsyncd_conf (uid/gid when root), daemon-chroot-acl | `~` root-gated | |
| 194 | | motd file / pid file / port / address / socket options / listen backlog / proxy protocol / syslog facility / syslog tag | — | ✗ (server-startup/connection params) | |
| 195 | |
| 196 | --- |
| 197 | |
| 198 | ## Known gaps worth a future pass |
| 199 | * Connection/timeout params (`--timeout`, `--contimeout`, daemon `timeout`, |
| 200 | `max connections`) need a real socket + concurrency (run under `--use-tcp`). |
| 201 | * Root-only behaviours (`-o`/`--usermap` uid remap, real devices, `use chroot |
| 202 | = yes`, daemon uid/gid) skip as non-root; run the suite as root to cover. |
| 203 | * `--ignore-errors`, `-x/--one-file-system`, `--numeric-ids` have no dedicated |
| 204 | test yet (lower restructure risk). |