From 4325eff9aa7c6a22e190c145a809cd311b1ff75f Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Thu, 15 Sep 2022 16:14:49 +1200 Subject: [PATCH] hack to test samba-tool manpage man -l bin/default/docs-xml/manpages/samba-tool.8 > /tmp/samba-tool.txt git am {this} make testenv python3 -m samba.subunit.run samba.tests.samba_tool.help will print samba-tool subcommands that seem not to be mentioned Signed-off-by: Douglas Bagnall --- python/samba/tests/samba_tool/help.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python/samba/tests/samba_tool/help.py b/python/samba/tests/samba_tool/help.py index fa7836d8432..c2124e43365 100644 --- a/python/samba/tests/samba_tool/help.py +++ b/python/samba/tests/samba_tool/help.py @@ -39,10 +39,15 @@ class HelpTestCase(SambaToolCmdTest): # self.runcmd() or self.runsubcmd(). known_commands = [[]] failed_commands = [] + with open('/tmp/samba-tool.txt') as f: + man = f.read() for i in range(4): new_commands = [] for c in known_commands: + s = ' '.join(c) + if s not in man: + print(s) line = ' '.join(['samba-tool'] + c + ['--help']) try: output = self.check_output(line) -- 2.25.1