summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2021-06-16 10:54:38 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2021-06-16 10:54:38 +0200
commitf1bfe711a283f2d98618c5eec73f2ba173c061c8 (patch)
tree0509e2432688d1f3ef596cf0a770a657e7ed2e9c /common
parent30d6ac7c240e224287f495e9be203bc7d2c4bc74 (diff)
parente06a8f0bf3151eafce695954109defbcfc4033f4 (diff)
downloadbarebox-f1bfe711a283f2d98618c5eec73f2ba173c061c8.tar.gz
barebox-f1bfe711a283f2d98618c5eec73f2ba173c061c8.tar.xz
Merge branch 'for-next/testing'
Diffstat (limited to 'common')
-rw-r--r--common/startup.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/startup.c b/common/startup.c
index 080feebf05..d170cb8a7c 100644
--- a/common/startup.c
+++ b/common/startup.c
@@ -37,6 +37,7 @@
#include <linux/ctype.h>
#include <watchdog.h>
#include <glob.h>
+#include <bselftest.h>
extern initcall_t __barebox_initcalls_start[], __barebox_early_initcalls_end[],
__barebox_initcalls_end[];
@@ -417,6 +418,9 @@ void __noreturn start_barebox(void)
pr_debug("initcalls done\n");
+ if (IS_ENABLED(CONFIG_SELFTEST_AUTORUN))
+ selftests_run();
+
if (barebox_main)
barebox_main();