path: root/Kconfig
diff options
authorAhmad Fatoum <>2021-06-04 10:46:58 +0200
committerSascha Hauer <>2021-06-09 12:20:05 +0200
commit7457c3d1d457922772e8bb7e07e3e9fe7dd0e09d (patch)
treea18ab27a128c0e99c153c16b64e19ded98557ca5 /Kconfig
parentff10a9966637f65efe2c82f65ad2b76e34f3774c (diff)
test: add basic barebox self-test infrastructure
Self tests is code written to run within barebox to exercise functionality. They offer flexibility to test specific units of barebox instead of the program as a whole. Add a very simple infrastructure for registering and executing self-tests. This is based on the Linux kselftest modules. We don't utilize modules for this, however, because we only have module support on ARM, but we need a generic solution. Selftests can be enabled individually and even tested without shell support to allow tests to happen for size-restricted barebox images as well. Acked-by: Rouven Czerwinski <> Signed-off-by: Ahmad Fatoum <> Link: Signed-off-by: Sascha Hauer <>
Diffstat (limited to 'Kconfig')
1 files changed, 1 insertions, 0 deletions
diff --git a/Kconfig b/Kconfig
index 29c32463fb..7c4cf36881 100644
--- a/Kconfig
+++ b/Kconfig
@@ -15,3 +15,4 @@ source "lib/Kconfig"
source "crypto/Kconfig"
source "firmware/Kconfig"
source "scripts/Kconfig"
+source "test/Kconfig"