5879cc6f49
CuTest is a relatively simple unit testing framework for C code. It is distributed under the zlib license; this is an import of the pristine sources. Signed-off-by: Dan Cross <patchdev@fat-dragon.org>
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();
|
|
}
|