| 480 | } |
| 481 | |
| 482 | static int |
| 483 | xmlconfTestSuite(xmlDocPtr doc, xmlNodePtr cur) { |
| 484 | xmlChar *profile; |
| 485 | int ret = 0; |
| 486 | |
| 487 | profile = xmlGetProp(cur, BAD_CAST "PROFILE"); |
| 488 | if (profile != NULL) { |
| 489 | printf("Test suite: %s\n", (char *) profile); |
| 490 | xmlFree(profile); |
| 491 | } else |
| 492 | printf("Test suite\n"); |
| 493 | cur = cur->children; |
| 494 | while (cur != NULL) { |
| 495 | /* look only at elements we ignore everything else */ |
| 496 | if (cur->type == XML_ELEMENT_NODE) { |
| 497 | if (xmlStrEqual(cur->name, BAD_CAST "TESTCASES")) { |
| 498 | ret += xmlconfTestCases(doc, cur, 1); |
| 499 | } else { |
| 500 | fprintf(stderr, "Unhandled element %s\n", (char *)cur->name); |
| 501 | } |
| 502 | } |
| 503 | cur = cur->next; |
| 504 | } |
| 505 | return(ret); |
| 506 | } |
| 507 | |
| 508 | static void |
| 509 | xmlconfInfo(void) { |
no test coverage detected