8 DIR *dp = opendir("t");
14 while ((ep = readdir(dp))) {
15 char *name = ep->d_name;
16 if (strchr(name, '.') || !strcmp(name, "test"))
19 snprintf(command, 1024, "./t/%s >t/%s.got 2>&1", name, name);
21 snprintf(command, 1024, "diff -up t/%s.expected t/%s.got", name, name);
22 int retval = system(command);
23 ok(!(retval >> 8), name);