I have a C library compiled with MinGW, Eclipse C project. Library consists of many modules, each module can be tested.
What is the best way (using MACROS or something) how to write tests for this library, compile it a run it in Eclipse/CDT IDE?
EDIT: I've seen that some people use
#ifdef TEST
int main(void)
{
...TEST LOGIC...
}
#endif
but don't know how to plug it into Eclipse.
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)