Lines Matching defs:flavor
864 * This is done by looking at executable name. If it contains "-flavor"
870 * some/path/to/test_progs[-flavor], where -flavor part is optional.
871 * First cut out "test_progs[-flavor]" part, then extract "flavor"
874 const char *flavor = strrchr(exec_name, '/');
876 if (!flavor)
877 flavor = exec_name;
879 flavor++;
881 flavor = strrchr(flavor, '-');
882 if (!flavor)
884 flavor++;
886 fprintf(stdout, "Switching to flavor '%s' subdirectory...\n", flavor);
888 return chdir(flavor);