Lines Matching refs:opts

101 	    (int32_t)testcase->opts.timeout_in_secs);  in testcase_from_struct()
106 (int32_t)testcase->opts.rc); in testcase_from_struct()
110 r = prop_dictionary_set_uint32(dict, "flags", testcase->opts.flags); in testcase_from_struct()
114 if (testcase->opts.pre_cmd != NULL) { in testcase_from_struct()
116 testcase->opts.pre_cmd); in testcase_from_struct()
121 if (testcase->opts.post_cmd != NULL) { in testcase_from_struct()
123 testcase->opts.post_cmd); in testcase_from_struct()
128 if (testcase->opts.interpreter != NULL) { in testcase_from_struct()
130 testcase->opts.interpreter); in testcase_from_struct()
136 (uint32_t)testcase->opts.runas_uid); in testcase_from_struct()
141 (testcase->opts.make_cmd != NULL) ? testcase->opts.make_cmd : "make"); in testcase_from_struct()
628 parse_testcase_option(struct testcase_options *opts, char *option) in parse_testcase_option() argument
654 opts->timeout_in_secs = (long int)lval; in parse_testcase_option()
666 opts->rc = (int)lval; in parse_testcase_option()
668 opts->flags |= TESTCASE_INT_PRE; in parse_testcase_option()
670 opts->flags |= TESTCASE_INT_POST; in parse_testcase_option()
676 opts->flags |= TESTCASE_CUSTOM_PRE; in parse_testcase_option()
677 opts->pre_cmd = strdup(parameter); in parse_testcase_option()
683 opts->flags |= TESTCASE_CUSTOM_POST; in parse_testcase_option()
684 opts->post_cmd = strdup(parameter); in parse_testcase_option()
691 opts->runas_uid = pwd->pw_uid; in parse_testcase_option()
692 opts->flags |= TESTCASE_RUN_AS; in parse_testcase_option()
698 opts->flags |= TESTCASE_NOBUILD; in parse_testcase_option()
703 opts->interpreter = strdup(parameter); in parse_testcase_option()
709 opts->make_cmd = strdup(parameter); in parse_testcase_option()
761 config_get_defaults(&testcase->opts); in testcase_entry_parser()
764 parse_testcase_option(&testcase->opts, options[i]); in testcase_entry_parser()
767 (testcase->opts.flags & (TESTCASE_INT_PRE | TESTCASE_INT_POST))) in testcase_entry_parser()
772 (testcase->opts.flags & TESTCASE_NOBUILD)) in testcase_entry_parser()
777 if (testcase->opts.pre_cmd != NULL) in testcase_entry_parser()
778 free(testcase->opts.pre_cmd); in testcase_entry_parser()
779 if (testcase->opts.post_cmd != NULL) in testcase_entry_parser()
780 free(testcase->opts.post_cmd); in testcase_entry_parser()
781 if (testcase->opts.interpreter != NULL) in testcase_entry_parser()
782 free(testcase->opts.interpreter); in testcase_entry_parser()
783 if (testcase->opts.make_cmd != NULL) in testcase_entry_parser()
784 free(testcase->opts.make_cmd); in testcase_entry_parser()