version 1.4, 2000/07/27 21:16:49
|
version 1.5, 2000/09/16 19:45:06
|
Line 50 static const char *types[] = {
|
Line 50 static const char *types[] = {
|
}; |
}; |
|
|
static int verbose = 0; |
static int verbose = 0; |
static int push = 0; |
|
static int repeat = 0; |
|
static int memory = 0; |
|
static int htmlout = 0; |
|
|
|
static int wfWarning = 0; |
static int wfWarning = 0; |
static int wfError = 0; |
static int wfError = 0; |
Line 372 int analyzeCases(xmlDocPtr doc, xmlNodeP
|
Line 368 int analyzeCases(xmlDocPtr doc, xmlNodeP
|
child = cases->children; |
child = cases->children; |
while (child != NULL) { |
while (child != NULL) { |
if ((child->type == XML_ELEMENT_NODE) && |
if ((child->type == XML_ELEMENT_NODE) && |
(!strcmp(child->name, "TEST"))) { |
(!xmlStrcmp(child->name, (const xmlChar *)"TEST"))) { |
nbtests += analyzeTest(doc, child); |
nbtests += analyzeTest(doc, child); |
} |
} |
child = child->next; |
child = child->next; |
Line 393 int analyzeSuite(xmlDocPtr doc, xmlNodeP
|
Line 389 int analyzeSuite(xmlDocPtr doc, xmlNodeP
|
int nbtests = 0; |
int nbtests = 0; |
xmlNodePtr child; |
xmlNodePtr child; |
|
|
if ((suite == NULL) || strcmp(suite->name, "TESTSUITE")) { |
if ((suite == NULL) || xmlStrcmp(suite->name, (const xmlChar *)"TESTSUITE")) { |
fprintf(stderr, "No TESTSUITE root\n"); |
fprintf(stderr, "No TESTSUITE root\n"); |
return(-1); |
return(-1); |
} |
} |
Line 408 int analyzeSuite(xmlDocPtr doc, xmlNodeP
|
Line 404 int analyzeSuite(xmlDocPtr doc, xmlNodeP
|
child = suite->children; |
child = suite->children; |
while (child != NULL) { |
while (child != NULL) { |
if ((child->type == XML_ELEMENT_NODE) && |
if ((child->type == XML_ELEMENT_NODE) && |
(!strcmp(child->name, "TESTCASES"))) { |
(!xmlStrcmp(child->name, (const xmlChar *)"TESTCASES"))) { |
nbtests += analyzeCases(doc, child); |
nbtests += analyzeCases(doc, child); |
} |
} |
child = child->next; |
child = child->next; |