]> git.ozlabs.org Git - ccan/commit
ccanlint: Move ccanlint test options from _info comments to code
authorDavid Gibson <david@gibson.dropbear.id.au>
Sat, 24 Dec 2016 12:58:19 +0000 (23:58 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Sat, 24 Dec 2016 12:58:19 +0000 (23:58 +1100)
commit0fe2d094b262f6e8bed798930e8c4716d33d5dc7
tree9d6484cdf13c2c9a219a2f9ef69e1d3d262faaa2
parent25b7406d11ea3703be864097af66ce95611dde72
ccanlint: Move ccanlint test options from _info comments to code

Currently, _info files can specify options, or note expected failures, for
ccanlint checks in the _info file with specially structured comments. That
differs from most other things ccanlint gets from _info, where it instead
executes the info file with certain parameters.

This changes ccanlint and existing _info files to use the normal method for
the ccanlint test options as well.  This also has the advantage that an
info file can alter its test options based on things from config.h - in
some cases whether a test can work or not might depend on various things.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
14 files changed:
ccan/block_pool/_info
ccan/ccan_tokenizer/_info
ccan/coroutine/_info
ccan/crcsync/_info
ccan/deque/_info
ccan/generator/_info
ccan/minmax/_info
ccan/rszshm/_info
ccan/stringmap/_info
tools/ccanlint/ccanlint.c
tools/ccanlint/ccanlint.h
tools/ccanlint/tests/info_exists.c
tools/depends.c
tools/tools.h