8 int main(int argc
, char *argv
[])
12 INT passed
, failed
, opassed
, ofailed
;
16 printf("DirectDraw tests\n");
19 for (i
= 1; i
< argc
; i
++)
21 for (j
= 0; j
< NumTests(); j
++)
23 if (_stricmp(argv
[i
], TestList
[j
].Test
) == 0)
27 TestList
[j
].Proc(&passed
, &failed
);
30 printf(" tests: %d, passed: %d, failed: %d\n\n", passed
+failed
, passed
, failed
);
37 for (i
= 0; i
< Num
; i
++)
41 printf("Test: %s\n", TestList
[i
].Test
);
42 TestList
[i
].Proc(&passed
, &failed
);
45 printf(" tests: %d, passed: %d, failed: %d\n\n", passed
+failed
, passed
, failed
);
48 printf("\nOverall tests: %d, passed: %d, failed: %d\n", opassed
+ofailed
, opassed
, ofailed
);