Lines Matching refs:groups
87 static void usage(struct testgroup_t *groups, int list_groups)
89 static int process_test_option(struct testgroup_t *groups, const char *test);
278 tinytest_set_flag_(struct testgroup_t *groups, const char *arg, int set, unsigned long flag) argument
286 for (i=0; groups[i].prefix; ++i) {
287 for (j=0; groups[i].cases[j].name; ++j) {
288 struct testcase_t *testcase = &groups[i].cases[j];
290 groups[i].prefix, testcase->name);
313 usage(struct testgroup_t *groups, int list_groups) argument
322 tinytest_set_flag_(groups, "..", 1, 0);
328 process_test_alias(struct testgroup_t *groups, const char *test) argument
335 r = process_test_option(groups, cfg_aliases[i].tests[j]);
348 process_test_option(struct testgroup_t *groups, const char *test) argument
353 return process_test_alias(groups, test + 1);
360 if (!tinytest_set_flag_(groups, test, 0, TT_OFF_BY_DEFAULT)) {
367 if (!tinytest_set_flag_(groups, test, 1, flag)) {
381 tinytest_main(int c, const char **v, struct testgroup_t *groups) argument
409 usage(groups, 0);
411 usage(groups, 1);
417 int r = process_test_option(groups, v[i]);
424 tinytest_set_flag_(groups, "..", 1, TT_ENABLED_);
431 for (i=0; groups[i].prefix; ++i)
432 for (j=0; groups[i].cases[j].name; ++j)
433 if (groups[i].cases[j].flags & TT_ENABLED_)
434 testcase_run_one(&groups[i],
435 &groups[i].cases[j]);