|
|
@@ -593,6 +593,7 @@ void DisplayUsage()
|
|
|
"--noroot -- 允许以非管理员或Root权限方式启动\n"
|
|
|
"--restart --重启当前应用\n"
|
|
|
"--version --显示当前的版本\n"
|
|
|
+ "--autotest --自动化验证\n"
|
|
|
#ifdef WITH_DEBUG
|
|
|
"--telnet {listern port} --激活远程调用功能\n"
|
|
|
#endif
|
|
|
@@ -686,13 +687,17 @@ sp_cfg_start_args_t* DealWithArgs(int argc, char** argv)
|
|
|
{"systemoff", optional_argument, 0, 'Y'},
|
|
|
{"reboot", optional_argument, 0, 'J'},
|
|
|
{"env", required_argument, 0, 'A' },
|
|
|
+ {"autotest", no_argument, 0, 'C'},
|
|
|
{0, 0, 0, 0}
|
|
|
};
|
|
|
|
|
|
int spshell_index = 0;
|
|
|
int c;
|
|
|
- while ((c = getopt_long(argc, argv, "E:GTDI:SKBU:HVOR::Y::J::A:?", spshell_options, &spshell_index)) != EOF) {
|
|
|
+ while ((c = getopt_long(argc, argv, "E:GTDI:SKBU:HVOR::Y::J::A:C?", spshell_options, &spshell_index)) != EOF) {
|
|
|
switch (c) {
|
|
|
+ case 'C':
|
|
|
+ args->auto_test = 1;
|
|
|
+ break;
|
|
|
case 'E':
|
|
|
{
|
|
|
if (optarg != NULL) {
|