| 191 | }; |
| 192 | |
| 193 | int |
| 194 | main(void) |
| 195 | { |
| 196 | const char *result; |
| 197 | int i, nt; |
| 198 | |
| 199 | nt = sizeof(t) / sizeof(*t); |
| 200 | printf("1..%d\n", nt); |
| 201 | for (i = 0; i < nt; ++i) { |
| 202 | if ((result = t[i].func()) != NULL) |
| 203 | printf("not ok %d - %s # %s\n", i + 1, |
| 204 | t[i].name, result); |
| 205 | else |
| 206 | printf("ok %d - %s\n", i + 1, |
| 207 | t[i].name); |
| 208 | } |
| 209 | exit(0); |
| 210 | } |