mirror of
https://github.com/ennorehling/cutest.git
synced 2024-12-22 07:52:21 +00:00
27 lines
467 B
C
27 lines
467 B
C
#include <stdio.h>
|
|
|
|
#include "CuTest.h"
|
|
|
|
CuSuite* CuGetSuite(void);
|
|
CuSuite* CuStringGetSuite(void);
|
|
|
|
int RunAllTests(void)
|
|
{
|
|
CuString *output = CuStringNew();
|
|
CuSuite* suite = CuSuiteNew();
|
|
|
|
CuSuiteAddSuite(suite, CuGetSuite());
|
|
CuSuiteAddSuite(suite, CuStringGetSuite());
|
|
|
|
CuSuiteRun(suite);
|
|
CuSuiteSummary(suite, output);
|
|
CuSuiteDetails(suite, output);
|
|
printf("%s\n", output->buffer);
|
|
return suite->failCount;
|
|
}
|
|
|
|
int main(void)
|
|
{
|
|
return RunAllTests();
|
|
}
|