binutils-gdb/gdb/unittests
Philippe Waroquiers d2834edcb6 Add a selftest that checks documentation invariants.
Several approaches were discussed (mail or irc) to verify the invariants of
the GDB help documentation : checking with apropos ., modifying add_cmd
to do the check and output a warning, implement maintenance check-doc.

A selftest was finally chosen as:
  * this can be run on demand, including by users if they want
    to check user defined commands.
  * it does not interact with the normal behaviour of apropos, define,
    python, ...
    (such as output warnings when a user defines a command help that
     does not respect the doc).
  * when the selftest runs, it checks the user defined and python
    defined commands currently defined.

gdb/ChangeLog
	* unittests/help-doc-selftests.c: New file.
	* Makefile.in: Add the new file.
2019-08-07 00:05:34 +02:00
..
basic_string_view Fix year range in unittests/.../char/empty.cc copyright header 2019-01-02 10:11:41 +04:00
optional Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
array-view-selftests.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
child-path-selftests.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
cli-utils-selftests.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
common-utils-selftests.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
copy_bitwise-selftests.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
environ-selftests.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
format_pieces-selftests.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
function-view-selftests.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
help-doc-selftests.c Add a selftest that checks documentation invariants. 2019-08-07 00:05:34 +02:00
lookup_name_info-selftests.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
memory-map-selftests.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
memrange-selftests.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
mkdir-recursive-selftests.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
observable-selftests.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
offset-type-selftests.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
optional-selftests.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
parse-connection-spec-selftests.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
ptid-selftests.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
rsp-low-selftests.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
scoped_fd-selftests.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
scoped_mmap-selftests.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
scoped_restore-selftests.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
string_view-selftests.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
style-selftests.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
tracepoint-selftests.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
unpack-selftests.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
utils-selftests.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
xml-utils-selftests.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00