libosmocore/tests/vty
Pau Espin c3b904a87d vty: Allow using hex representations in cmd numeric ranges
Ranges can now be specified in hexadecimal notation. In this case, only
hexadecimal values are accepted (prefixed with "0x").

In order to allow using a hexadecimal value as an input argument, the
command must specify the range in hexadecimal form.
This way all existing commands (decimal) won't get an hexadecimal value
unless they are further extended in the future, avoiding hard to notice
breakage due to use of stroul() without using base=0 or even worse,
using atoi() directly (which only understands decimal and provides no
error checking mechanism).

A command argument can be expanded to accept both decimal and hex in a
range by means of specifying both, example:
"mycmd (<0-255>|<0x0-0xff>)".

Related: OS#5631
Change-Id: Ia2b7fbbf5502c28374c21dbff548232680da27d4
2022-09-15 16:25:56 +02:00
..
fail_cmd_ret_warning.cfg vty: Return error if cmd returns CMD_WARNING while reading cfg file 2019-10-28 19:15:29 +00:00
fail_not_de-indented.cfg vty_test: add artificial node levels for better testing 2017-09-20 03:32:24 +02:00
fail_tabs_and_spaces.cfg vty_test: add artificial node levels for better testing 2017-09-20 03:32:24 +02:00
fail_too_much_indent.cfg vty_test: add artificial node levels for better testing 2017-09-20 03:32:24 +02:00
ok.cfg vty_test: add artificial node levels for better testing 2017-09-20 03:32:24 +02:00
ok_deprecated_logging.cfg logging/vty: fix: actually ignore deprecated logging commands 2019-11-21 10:48:02 +07:00
ok_empty_parent.cfg vty_test: add artificial node levels for better testing 2017-09-20 03:32:24 +02:00
ok_ignore_blank.cfg vty_test: add artificial node levels for better testing 2017-09-20 03:32:24 +02:00
ok_ignore_comment.cfg vty_test: add artificial node levels for better testing 2017-09-20 03:32:24 +02:00
ok_indented_root.cfg vty_test: add artificial node levels for better testing 2017-09-20 03:32:24 +02:00
ok_more_spaces.cfg vty_test: add artificial node levels for better testing 2017-09-20 03:32:24 +02:00
ok_tabs.cfg vty_test: add artificial node levels for better testing 2017-09-20 03:32:24 +02:00
ok_tabs_and_spaces.cfg vty_test: add artificial node levels for better testing 2017-09-20 03:32:24 +02:00
vty_test.c vty: Allow using hex representations in cmd numeric ranges 2022-09-15 16:25:56 +02:00
vty_test.err vty: Allow using hex representations in cmd numeric ranges 2022-09-15 16:25:56 +02:00
vty_test.ok vty: Allow using hex representations in cmd numeric ranges 2022-09-15 16:25:56 +02:00
vty_transcript_test.c treewide: remove FSF address 2021-12-14 12:44:03 +01:00
vty_transcript_test.vty vty: introduce the expert mode and a command to enable it 2020-10-21 06:27:48 +07:00