2012-04-06 18:33:17 +02:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
2015-06-28 16:14:53 +02:00
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
2012-04-06 18:33:17 +02:00
|
|
|
#
|
2012-04-13 04:14:09 +02:00
|
|
|
|
2018-12-12 23:37:38 +01:00
|
|
|
config TESTING_OSTEST
|
2018-09-03 17:29:56 +02:00
|
|
|
tristate "OS test example"
|
2012-04-13 04:14:09 +02:00
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enable the OS test example
|
|
|
|
|
2018-12-12 23:37:38 +01:00
|
|
|
if TESTING_OSTEST
|
2012-09-05 23:36:03 +02:00
|
|
|
|
2018-12-12 23:37:38 +01:00
|
|
|
config TESTING_OSTEST_LOOPS
|
2012-09-05 23:36:03 +02:00
|
|
|
int "OS test loop"
|
|
|
|
default 1
|
|
|
|
---help---
|
|
|
|
Used to control the number of executions of the test. If undefined, the test
|
|
|
|
executes one time. If defined to be zero, the test runs forever.
|
|
|
|
|
2018-12-12 23:37:38 +01:00
|
|
|
config TESTING_OSTEST_STACKSIZE
|
2012-09-05 23:36:03 +02:00
|
|
|
int "OS test stack size"
|
|
|
|
default 8192
|
|
|
|
---help---
|
|
|
|
Size of the stack used to create the ostest task. Default is 8192.
|
|
|
|
|
2018-12-12 23:37:38 +01:00
|
|
|
config TESTING_OSTEST_NBARRIER_THREADS
|
2012-09-05 23:36:03 +02:00
|
|
|
int "Number of barrier threads"
|
|
|
|
default 8
|
|
|
|
---help---
|
|
|
|
Specifies the number of threads to create in the barrier test. The default
|
|
|
|
is 8 but a smaller number may be needed on systems without sufficient memory
|
|
|
|
to start so many threads.
|
|
|
|
|
2018-12-12 23:37:38 +01:00
|
|
|
config TESTING_OSTEST_AIO
|
2014-10-05 21:24:03 +02:00
|
|
|
bool "Asynchronous I/O Tests"
|
|
|
|
default n
|
2020-03-21 18:25:56 +01:00
|
|
|
depends on FS_AIO
|
2014-10-05 21:24:03 +02:00
|
|
|
---help---
|
|
|
|
Enables test of asynchronous I/O. You must have a mounted, writable
|
|
|
|
directory in place to use this test.
|
|
|
|
|
2018-12-12 23:37:38 +01:00
|
|
|
if TESTING_OSTEST_AIO
|
2014-10-05 21:24:03 +02:00
|
|
|
|
2018-12-12 23:37:38 +01:00
|
|
|
config TESTING_OSTEST_AIOPATH
|
2014-10-05 21:57:55 +02:00
|
|
|
string "Scratch file path"
|
2014-10-05 21:24:03 +02:00
|
|
|
default "/tmp"
|
|
|
|
---help---
|
|
|
|
This is the location of a directory in a mounted file system that
|
|
|
|
the AIO test can write into.
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2018-12-12 23:37:38 +01:00
|
|
|
config TESTING_OSTEST_RR_RANGE
|
2012-11-05 21:02:56 +01:00
|
|
|
int "Round-robin test - end of search range"
|
|
|
|
default 10000
|
|
|
|
range 1 32767
|
|
|
|
---help---
|
|
|
|
During round-robin scheduling test two threads are created. Each of the threads
|
|
|
|
searches for prime numbers in the configurable range, doing that configurable
|
|
|
|
number of times.
|
|
|
|
|
|
|
|
This value specifies the end of search range and together with number of runs
|
|
|
|
allows to configure the length of this test - it should last at least a few
|
|
|
|
tens of seconds. Allowed values [1; 32767], default 10000
|
|
|
|
|
2018-12-12 23:37:38 +01:00
|
|
|
config TESTING_OSTEST_RR_RUNS
|
2012-11-05 21:02:56 +01:00
|
|
|
int "Round-robin test - number of runs"
|
|
|
|
default 10
|
|
|
|
range 1 32767
|
|
|
|
---help---
|
|
|
|
During round-robin scheduling test two threads are created. Each of the threads
|
|
|
|
searches for prime numbers in the configurable range, doing that configurable
|
|
|
|
number of times.
|
|
|
|
|
|
|
|
This value specifies the number of times the thread searches the range for
|
|
|
|
prime numbers and together with end of search range allows to configure the
|
|
|
|
length of this test - it should last at least a few tens of seconds. Allowed
|
|
|
|
values [1; 32767], default 10
|
|
|
|
|
2017-01-24 16:15:42 +01:00
|
|
|
if ARCH_FPU && SCHED_WAITPID
|
2013-09-18 18:30:52 +02:00
|
|
|
|
2018-12-12 23:37:38 +01:00
|
|
|
config TESTING_OSTEST_FPUTESTDISABLE
|
2013-09-18 18:30:52 +02:00
|
|
|
bool "Disable FPU test"
|
|
|
|
default n
|
|
|
|
|
2018-12-12 23:37:38 +01:00
|
|
|
if !TESTING_OSTEST_FPUTESTDISABLE
|
2013-09-18 18:30:52 +02:00
|
|
|
|
2018-12-12 23:37:38 +01:00
|
|
|
config TESTING_OSTEST_FPUSIZE
|
2013-09-18 18:30:52 +02:00
|
|
|
int "Size of floating point register save area"
|
|
|
|
|
2018-12-12 23:37:38 +01:00
|
|
|
config TESTING_OSTEST_FPULOOPS
|
2013-09-18 18:30:52 +02:00
|
|
|
int "Number of FPU test loops"
|
|
|
|
default 16
|
|
|
|
|
2018-12-12 23:37:38 +01:00
|
|
|
config TESTING_OSTEST_FPUMSDELAY
|
2013-09-18 18:30:52 +02:00
|
|
|
int "FPU test delay (MSec)"
|
|
|
|
default 750
|
|
|
|
|
2018-12-12 23:37:38 +01:00
|
|
|
config TESTING_OSTEST_FPUPRIORITY
|
2013-09-18 18:30:52 +02:00
|
|
|
int "FPU test thread priority"
|
|
|
|
default 100
|
|
|
|
|
2018-12-12 23:37:38 +01:00
|
|
|
config TESTING_OSTEST_FPUSTACKSIZE
|
2013-09-18 18:30:52 +02:00
|
|
|
int "FPU test thread stack size"
|
2020-03-27 06:10:33 +01:00
|
|
|
default DEFAULT_TASK_STACKSIZE
|
2013-09-18 18:30:52 +02:00
|
|
|
|
2018-12-12 23:37:38 +01:00
|
|
|
endif # !TESTING_OSTEST_FPUTESTDISABLE
|
2019-04-29 22:53:38 +02:00
|
|
|
endif # ARCH_FPU && SCHED_WAITPID
|
2015-07-06 20:51:15 +02:00
|
|
|
|
2018-12-12 23:37:38 +01:00
|
|
|
config TESTING_OSTEST_WAITRESULT
|
2015-07-08 21:43:17 +02:00
|
|
|
bool "Wait and return test result"
|
2015-07-06 22:51:49 +02:00
|
|
|
default y
|
|
|
|
depends on SCHED_WAITPID
|
2015-07-06 20:51:15 +02:00
|
|
|
|
2018-12-12 23:37:38 +01:00
|
|
|
config TESTING_OSTEST_POWEROFF
|
2015-07-06 22:51:49 +02:00
|
|
|
bool "Terminate on test completion"
|
|
|
|
default n
|
2018-12-12 23:37:38 +01:00
|
|
|
depends on BOARDCTL_POWEROFF && TESTING_OSTEST_WAITRESULT
|
2015-07-06 20:51:15 +02:00
|
|
|
|
2018-12-12 23:37:38 +01:00
|
|
|
endif # TESTING_OSTEST
|