Lines Matching defs:flavor
602 * This is done by looking at executable name. If it contains "-flavor"
608 * some/path/to/test_progs[-flavor], where -flavor part is optional.
609 * First cut out "test_progs[-flavor]" part, then extract "flavor"
612 const char *flavor = strrchr(exec_name, '/');
614 if (!flavor)
616 flavor++;
617 flavor = strrchr(flavor, '-');
618 if (!flavor)
620 flavor++;
622 fprintf(stdout, "Switching to flavor '%s' subdirectory...\n", flavor);
624 return chdir(flavor);