config: Add test utility for configuration system

When compiled with CONFIG_TEST, the config code will include a little
main() function to read configuration from stdin, and print parsed
config to stdout.

This allows the configuration system to be easily used with a testuite
or fuzzer.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2 files changed