]> git.ipfire.org Git - thirdparty/systemd.git/commit
test-options: add tests for option macros and flags
authorZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Thu, 19 Mar 2026 16:45:17 +0000 (17:45 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Sun, 22 Mar 2026 15:52:22 +0000 (16:52 +0100)
commit4bf73e6980fb8f440fbf38253041ca08ff2e0e1d
tree7288b0fa635799a51205e517f08e3e303fbe3a13
parentd03089ff4f445437022cf312d4062e6a9a98dce2
test-options: add tests for option macros and flags

Add tests for OPTION_STOPS_PARSING, OPTION_GROUP_MARKER, and
OPTION_OPTIONAL_ARG flags with manual Option arrays, and a separate
test exercising the OPTION, OPTION_LONG, OPTION_SHORT, OPTION_FULL,
and OPTION_GROUP macros via FOREACH_OPTION_FULL in a switch statement,
as they would be used in real code.

Co-developed-by: Claude Opus 4.6 <noreply@anthropic.com>
src/test/test-options.c