Lines Matching defs:dir
503 #define for_each_shell_test(dir, base, ent) \
504 while ((ent = readdir(dir)) != NULL) \
531 DIR *dir;
540 dir = opendir(path);
541 if (!dir)
544 for_each_shell_test(dir, path, ent) {
556 closedir(dir);
561 const char *dir;
571 path__join(script, sizeof(script), st->dir, st->file);
582 DIR *dir;
586 .dir = shell_tests__dir(path_dir, sizeof(path_dir)),
589 if (st.dir == NULL)
592 dir = opendir(st.dir);
593 if (!dir) {
595 st.dir);
599 for_each_shell_test(dir, st.dir, ent) {
603 .desc = shell_test__description(desc, sizeof(desc), st.dir, ent->d_name),
616 closedir(dir);
715 DIR *dir;
723 dir = opendir(path);
724 if (!dir)
727 for_each_shell_test(dir, path, ent) {
740 closedir(dir);