| 309 | }; |
| 310 | |
| 311 | int |
| 312 | main(void) |
| 313 | { |
| 314 | const char *result; |
| 315 | int i, nt; |
| 316 | |
| 317 | nt = sizeof(t) / sizeof(*t); |
| 318 | printf("1..%d\n", nt); |
| 319 | for (i = 0; i < nt; ++i) { |
| 320 | if ((result = t[i].func()) != NULL) |
| 321 | printf("not ok %d - %s # %s\n", i + 1, |
| 322 | t[i].name, result); |
| 323 | else |
| 324 | printf("ok %d - %s\n", i + 1, |
| 325 | t[i].name); |
| 326 | } |
| 327 | exit(0); |
| 328 | } |