Format CLI option test table
CI / lint (pull_request) Failing after 25s
CI / build-and-test (pull_request) Has been skipped
CI / sanitizers (address) (pull_request) Has been skipped
CI / sanitizers (undefined) (pull_request) Has been skipped
CI / fuzz-build (pull_request) Has been skipped
CI / coverage (pull_request) Has been skipped
CI / valgrind (pull_request) Has been skipped

This commit is contained in:
2026-08-11 21:08:54 +02:00
parent d146e1bb7c
commit 2e00fc31f2
+50 -14
View File
@@ -209,20 +209,56 @@ static void test_parse_args_unknown_option() {
/* Parsed-but-unimplemented options must fail instead of being silently accepted. */
static void test_parse_args_rejects_unimplemented_options() {
static const char* const options[] = {
"-q", "--quiet", "--silent", "--queue-size",
"-H", "--hard-links", "-A", "--acls",
"-X", "--xattrs", "-D", "--devices",
"-i", "--itemize-changes", "--out-format", "--info",
"--debug", "--list-only", "-h", "--human-readable",
"-u", "--update", "--append", "--append-verify",
"--delete-excluded", "--delete-after", "--max-delete", "--filter",
"--files-from", "--cvs-exclude", "--prune-empty-dirs", "-R",
"--relative", "-e", "--rsh", "--rsync-path",
"--temp-dir", "--compare-dest", "--copy-dest", "--link-dest",
"--delete-before", "--address", "--bind-address", "--ipv6",
"--ipv4", "--daemon", "--config", "--server",
"--checksum", "--compress-choice"};
static const char* const options[] = {"-q",
"--quiet",
"--silent",
"--queue-size",
"-H",
"--hard-links",
"-A",
"--acls",
"-X",
"--xattrs",
"-D",
"--devices",
"-i",
"--itemize-changes",
"--out-format",
"--info",
"--debug",
"--list-only",
"-h",
"--human-readable",
"-u",
"--update",
"--append",
"--append-verify",
"--delete-excluded",
"--delete-after",
"--max-delete",
"--filter",
"--files-from",
"--cvs-exclude",
"--prune-empty-dirs",
"-R",
"--relative",
"-e",
"--rsh",
"--rsync-path",
"--temp-dir",
"--compare-dest",
"--copy-dest",
"--link-dest",
"--delete-before",
"--address",
"--bind-address",
"--ipv6",
"--ipv4",
"--daemon",
"--config",
"--server",
"--checksum",
"--compress-choice"};
for (size_t i = 0; i < sizeof(options) / sizeof(options[0]); i++) {
Config* cfg = config_create();