ccanlint: mark unused parameters. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
tools: use tal instead of talloc. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
tools: don't assume modules are immediately below ccan/ dir. Removing this assumption should allow nested modules. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccanlint: add testdepends support. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccanlint: remove argument to -k/--keep It's much easier to simply say "keep all", and it simplifies the code quite a bit.
ccanlint: get rid of separate class of compulsory tests. It's reduced to a flag which means we stop processing the module. We have to enhance our dependencies a bit, but they've always been quite good. This simplifies things quite a bit.
ccanlint: fix depends_build_without_features This depends on reduce_features; currently it tends to run before that, so it doesn't think there are any features to reduce and doesn't build or run the tests with reduced features.
ccanlint: clean up reduced feature handling. Putting the reduced config.h in the current directory means that it's actually being picked up by other tests, such as the string checks. So move it to a sub-directory where we need an explicit -I. We also fix the dependencies, so that "--target tests_pass_without_features" works.
ccanlint: keep separate array of compiled versions. Rather than mug the old ->compiled version when we reduce features, keep both in the structure. This makes it clear that we are using the right version (we weren't in all cases, in particular we weren't recompiling the test helpers correctly.