test: Add some tests for kconfig.h
authorSimon Glass <sjg@chromium.org>
Mon, 1 Aug 2022 13:57:59 +0000 (07:57 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 10 Aug 2022 17:38:30 +0000 (13:38 -0400)
commit29784d62eded89332254307bdb63ad8a7d8249d2
treedec2e9893799a112503202ba10c871dc68bb1aad
parent5e2548c1d6e0331edbf94edcfc95d55b5e9a6cab
test: Add some tests for kconfig.h

The macros in this file are a little confusing and we currently have no
tests to check that they work as expected.

Add some tests which check the macros in C code. Add a few tests which
check that the build errors are generated correctly too, using buildman's
-a option.

Signed-off-by: Simon Glass <sjg@chromium.org>
test/Kconfig
test/Makefile
test/lib/Kconfig [new file with mode: 0644]
test/lib/Makefile
test/lib/kconfig.c [new file with mode: 0644]
test/lib/kconfig_spl.c [new file with mode: 0644]
test/py/tests/test_kconfig.py [new file with mode: 0644]