summaryrefslogtreecommitdiffstats
path: root/test/self/Kconfig
blob: 680196a4fe293115e8a64c86f34224148775d428 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# SPDX-License-Identifier: GPL-2.0

config SELFTEST
	bool "Self-tests"
	help
	  Configures support for in-barebox testing

if SELFTEST

config CMD_SELFTEST
	bool "selftest command"
	depends on COMMAND_SUPPORT
	help
	  Command to run enabled barebox self-tests.
	  If run without arguments, all tests are run

	  Usage: selftest [-l] [tests...]

	  Options:
	    -l     list available tests

config SELFTEST_AUTORUN
	bool "Run self-tests on startup"
	help
	  Self tests are run automatically after initcalls are done,
	  but before barebox_main (shell or board-specific startup).

config SELFTEST_ENABLE_ALL
	bool "Enable all self-tests"
	select SELFTEST_PRINTF
	select SELFTEST_MALLOC
	select SELFTEST_PROGRESS_NOTIFIER
	select SELFTEST_OF_MANIPULATION
	select SELFTEST_ENVIRONMENT_VARIABLES if ENVIRONMENT_VARIABLES
	help
	  Selects all self-tests compatible with current configuration

config SELFTEST_MALLOC
	bool "malloc() selftest"
	help
	  Tests barebox memory allocator

config SELFTEST_PRINTF
	bool "printf selftest"
	help
	  Tests barebox vsnprintf() functionality

config SELFTEST_OF_MANIPULATION
	bool "OF manipulation selftest"
	select OFTREE
	help
	  Tests barebox device tree manipulation functionality

config SELFTEST_PROGRESS_NOTIFIER
	bool "progress notifier selftest"

config SELFTEST_ENVIRONMENT_VARIABLES
	bool "environment variable selftest"

endif