Lines Matching defs:cmd_args
3936 int parseCommandLine(int argc, char *argv[], cmd_args_t *cmd_args) {
3943 memset(cmd_args, 0, sizeof(*cmd_args));
3944 cmd_args->logging = LOGGING_LOGCAT | LOGGING_SYSLINK;
3945 cmd_args->platform_id = BLAZE_TABLET2;
3956 cmd_args->test_type = TEST_TYPE_REGRESSION;
3958 cmd_args->script_file_name = argv[++a];
3966 cmd_args->test_type = TEST_TYPE_FUNCTIONAL;
3970 cmd_args->test_type = TEST_TYPE_API;
3974 cmd_args->test_type = TEST_TYPE_ERROR;
3976 cmd_args->script_file_name = argv[++a];
3981 cmd_args->logging = 0;
3989 cmd_args->logging |= LOGGING_LOGCAT;
3993 cmd_args->logging |= LOGGING_SYSLINK;
4008 cmd_args->platform_id = BLAZE;
4011 cmd_args->platform_id = BLAZE_TABLET1;
4014 cmd_args->platform_id = BLAZE_TABLET2;
4028 cmd_args->output_path = argv[++a];
4053 int setOutputDirPath(cmd_args_t *cmd_args, int restart_count) {
4054 if ((cmd_args->output_path != NULL) &&
4055 (strlen(cmd_args->output_path) < sizeof(output_dir_path))) {
4056 strcpy(output_dir_path, cmd_args->output_path);
4060 if (cmd_args->script_file_name != NULL) {
4061 const char *config = cmd_args->script_file_name;
4140 int runRegressionTest(cmd_args_t *cmd_args) {
4144 platformID = cmd_args->platform_id;
4151 cmd = load_script(cmd_args->script_file_name);
4154 start_logging(cmd_args->logging, pid);
4167 if ( (restartCamera() != 0) || ((cmd = load_script(cmd_args->script_file_name)) == NULL) ) {
4173 res = setOutputDirPath(cmd_args, restartCount);
4180 stop_logging(cmd_args->logging, pid);
4208 int runErrorTest(cmd_args_t *cmd_args) {
4214 if (cmd_args->script_file_name != NULL) {
4218 cmd = load_script(cmd_args->script_file_name);
4221 start_logging(cmd_args->logging, pid);
4224 stop_logging(cmd_args->logging, pid);
4244 cmd_args_t cmd_args;
4247 res = parseCommandLine(argc, argv, &cmd_args);
4253 res = setOutputDirPath(&cmd_args, 0);
4264 switch (cmd_args.test_type) {
4266 res = runRegressionTest(&cmd_args);
4278 res = runErrorTest(&cmd_args);