26 lines
427 B
C
26 lines
427 B
C
#include <stdio.h>
|
|
|
|
#include "CuTest.h"
|
|
|
|
CuSuite* CuGetSuite();
|
|
CuSuite* CuStringGetSuite();
|
|
|
|
void 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);
|
|
}
|
|
|
|
int main(void)
|
|
{
|
|
RunAllTests();
|
|
}
|