add cmake configuration
This commit is contained in:
parent
c4e7ef9755
commit
d00bb596fa
|
@ -0,0 +1 @@
|
|||
*~
|
|
@ -5,7 +5,7 @@
|
|||
CuSuite* CuGetSuite();
|
||||
CuSuite* CuStringGetSuite();
|
||||
|
||||
void RunAllTests(void)
|
||||
int RunAllTests(void)
|
||||
{
|
||||
CuString *output = CuStringNew();
|
||||
CuSuite* suite = CuSuiteNew();
|
||||
|
@ -17,9 +17,10 @@ void RunAllTests(void)
|
|||
CuSuiteSummary(suite, output);
|
||||
CuSuiteDetails(suite, output);
|
||||
printf("%s\n", output->buffer);
|
||||
return suite->failCount;
|
||||
}
|
||||
|
||||
int main(void)
|
||||
{
|
||||
RunAllTests();
|
||||
return RunAllTests();
|
||||
}
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
project (cutest C)
|
||||
|
||||
enable_testing()
|
||||
|
||||
add_library (cutest CuTest.c)
|
||||
|
||||
add_executable (AllTests AllTests.c CuTestTest.c)
|
||||
target_link_libraries (AllTests cutest)
|
||||
|
||||
add_test (cutest AllTests)
|
Loading…
Reference in New Issue