int main(void)
{
   TestRunner_start();
   TestRunner_runTest(TwoWirePlus_BaseTest_RunTests());
   TestRunner_end();
   return 0;
}
void ShutdownHook(StatusType error)
{
    switch(GetCoreID())
    {
    case OS_CORE_ID_MASTER :
        TestRunner_end();
        break;
    default :
        while(1); /* Slave cores wait here */
        break;
    }
}
Exemple #3
0
int main (int argc, const char* argv[])
{
	TestRunner_start();
		TestRunner_runTest(assertTest_tests());
		TestRunner_runTest(stdImplTest_tests());
		TestRunner_runTest(TestCaseTest_tests());
		TestRunner_runTest(TestCallerTest_tests());
		TestRunner_runTest(TestResultTest_tests());
		TestRunner_runTest(RepeatedTestTest_tests());
	TestRunner_end();
	return 0;
}
Exemple #4
0
void ShutdownHook(StatusType error)
{ 
	TestRunner_end();
}
Exemple #5
0
void ShutdownHook(StatusType error)
{ 
	TestRunner_runTest(HookTest_seq1_shutdown_instance());
	TestRunner_end();
}
static int jemMalloc_test_cmd(struct cli_def *cli, char *command, char *argv[], int argc)
{
    unsigned int state=0;

    if (argc > 0)
    {
        state = 1;
        if (!strncmp(argv[0], "list", 4)) state = 2;
        if (!strncmp(argv[0], "all", 3)) state = 0;
        if (!strncmp(argv[0], "t1", 2)) state = 3;
        if (!strncmp(argv[0], "t2", 2)) state = 4;
        if (!strncmp(argv[0], "t3", 2)) state = 5;
        if (!strncmp(argv[0], "t4", 2)) state = 6;
        if (!strncmp(argv[0], "t5", 2)) state = 7;
        if (!strncmp(argv[0], "t6", 2)) state = 8;
        if (!strncmp(argv[0], "t7", 2)) state = 9;
    }

    switch (state) 
    {
        case 0:
          TestRunner_start();
          TestRunner_runTest((TestRef)&MallocAllTest);
          TestRunner_end();
          cli_print(cli, "\r\n");
          break;
        case 1:
          cli_print(cli, "Invalid argument, try 'malloc list'\r\n");
          break;
        case 2:
          cli_print(cli, "malloc takes one of the following arguments:\r\n");
          cli_print(cli, "  list - display this text\r\n");
          cli_print(cli, "  all  - run all tests\r\n");
          cli_print(cli, "  t1   - run %s\r\n", MallocTest1.name);
          cli_print(cli, "  t2   - run %s\r\n", MallocTest2.name);
          cli_print(cli, "  t3   - run %s\r\n", MallocTest3.name);
          cli_print(cli, "  t4   - run %s\r\n", MallocTest4.name);
          cli_print(cli, "  t5   - run %s\r\n", MallocTest5.name);
          cli_print(cli, "  t6   - run %s\r\n", MallocTest6.name);
          cli_print(cli, "  t7   - run %s\r\n", MallocTest7.name);
          break;
        case 3:
          TestRunner_start();
          TestRunner_runTest((TestRef)&MallocTest1);
          TestRunner_end();
          cli_print(cli, "\r\n");
          break;
        case 4:
          TestRunner_start();
          TestRunner_runTest((TestRef)&MallocTest2);
          TestRunner_end();
          cli_print(cli, "\r\n");
          break;
        case 5:
          TestRunner_start();
          TestRunner_runTest((TestRef)&MallocTest3);
          TestRunner_end();
          cli_print(cli, "\r\n");
          break;
        case 6:
          TestRunner_start();
          TestRunner_runTest((TestRef)&MallocTest4);
          TestRunner_end();
          cli_print(cli, "\r\n");
          break;
        case 7:
          TestRunner_start();
          TestRunner_runTest((TestRef)&MallocTest5);
          TestRunner_end();
          cli_print(cli, "\r\n");
          break;
        case 8:
          TestRunner_start();
          TestRunner_runTest((TestRef)&MallocTest6);
          TestRunner_end();
          cli_print(cli, "\r\n");
          break;
        case 9:
          TestRunner_start();
          TestRunner_runTest((TestRef)&MallocTest7);
          TestRunner_end();
          cli_print(cli, "\r\n");
          break;
    }

    return CLI_OK;
}