SmartAudio/package/testtools/tinatest/config/stress/reboot/Config.in

141 lines
4.9 KiB
Plaintext

menuconfig TINATEST_STRESS_REBOOT_ENABLE
bool "reboot"
default n
---help---
Settings for /stress/reboot
It safe to leave a blank for any settings.
If not setted, TinaTest will use global settings or default settings instead.
if TINATEST_STRESS_REBOOT_ENABLE
config TINATEST_STRESS_REBOOT_COMMAND
string "command"
default "echo \"===== Going to reboot =====\"; reboot -f; exit 1"
---help---
TinaTest will run this command to start testcase.
It is the same as shell command which followed by argumemts.
This setting is a mark of any testcase.
config TINATEST_STRESS_REBOOT_STDIN
string "stdin"
default ""
---help---
Redirect a string array, which is setted in this configure, to standard input.
For example,
"one two three four" is equivalent to enter 4 times to testcase every run_time.
The first time, enter "one" with new line,
the second time, enter "two" with new line, and so on.
config TINATEST_STRESS_REBOOT_FSTDIN
string "fstdin"
default ""
---help---
Redirect a file, which is setted in this configure, to standard input.
comment "<N> to Default && <Y> to customize"
config TINATEST_STRESS_REBOOT_INFO
bool "INFO"
default y
if TINATEST_STRESS_REBOOT_INFO
config TINATEST_STRESS_REBOOT_DATE
bool "date"
default n
---help---
Save running date and time.
config TINATEST_STRESS_REBOOT_RESOURCE
bool "resource"
default n
---help---
Save resources for each testcase.
config TINATEST_STRESS_REBOOT_REAL_TIME_LOG
bool "real_time_log"
default y
---help---
Print log of testcase real time.
In default, tinatest just collect all log, and print them when testcase end.
endif
comment "<N> to Default && <Y> to customize"
config TINATEST_STRESS_REBOOT_LIMIT
bool "LIMIT"
default y
if TINATEST_STRESS_REBOOT_LIMIT
config TINATEST_STRESS_REBOOT_RUN_TIMES
string "run_times"
default 1000
---help---
The times to run testcase.
For example:
To run this testcase for 3 times, we can set this value as 3.
config TINATEST_STRESS_REBOOT_RUN_ALONE
bool "run_alone"
default y
---help---
Wait for finishing all previous testcase and run alone before do next.
config TINATEST_STRESS_REBOOT_RUN_PARALLEL
bool "run_parallel"
default y if TINATEST_SYS_LOCAL_LIMIT_RUN_PARALLEN
---help---
Run parallel for all run_times.
For example:
Testcae will run for 3 times one by one if run_times=3.
However, if run_parallel is setted, tinatest will creates 3 processers in one time.
config TINATEST_STRESS_REBOOT_MAY_REBOOT
bool "may_reboot"
default y
---help---
It means that device will be rebooted while running testcase.
All states of testcase will be saved in flash, and loaded after rebooting.
Notices that, if may_reboot is setted, run_alone will be setted alway.
config TINATEST_STRESS_REBOOT_TESTCASE_RUN_ONCE_TIME
string "testcase_run_once_time"
default ""
---help---
Time limit for testcase to run once.
It is in format:
<sec> <min> <hour> <day>
For example,
100s : 100
1m20s : 20 1 (or 80)
1d3h : 0 0 3 1 (or 0 0 28 or other)
config TINATEST_STRESS_REBOOT_TESTCASE_RUN_TIME
string "testcase_run_time"
default ""
---help---
Time limit for testcase to run.
It is in format:
<sec> <min> <hour> <day>
For example,
100s : 100
1m20s : 20 1 (or 80)
1d3h : 0 0 3 1 (or 0 0 28 or other)
choice
prompt "timeout_with"
default TINATEST_STRESS_REBOOT_TIMEOUT_WITH_PASS
---help---
The result when testcase exit for timeout.
config TINATEST_STRESS_REBOOT_TIMEOUT_WITH_PASS
bool "pass"
config TINATEST_STRESS_REBOOT_TIMEOUT_WITH_FAILED
bool "failed"
endchoice
config TINATEST_STRESS_REBOOT_EXIT_ONCE_FAILED
bool "exit_once_failed"
default y
---help---
Stop running testcase and exit once failed, even if runned times less than run_times.
endif
endif