[PATCH] test samba-tool --help
Douglas Bagnall
douglas.bagnall at catalyst.net.nz
Mon Dec 18 04:37:52 UTC 2017
Running `samba-tool --help` lists a number of subcommands, and if you
recurse into the help tree with a subcommand like so
$ bin/samba-tool spn --help
you are given a list of sub-subcommands.
This patch climbs the samba-tool --help tree and checks that each call
succeeds. Incidentally, there are 109 nodes on the tree.
Why bother, you are probably asking, given this test is doing very
little and exercising the same bit of code 109 times. Well, there are
two reasons:
1) I want to change some things in the help code.
2) as far as I can tell, some branches (like "spn") are not tested in
any way. This test will at least catch syntax errors.
cheers,
Douglas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-samba-tool-help-test-ensuring-help-tree-coverage.patch
Type: text/x-patch
Size: 3982 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20171218/e7832362/0001-samba-tool-help-test-ensuring-help-tree-coverage.bin>
More information about the samba-technical
mailing list