]>
git.gir.st - tmk_keyboard.git/blob - tmk_core/tool/mbed/mbed-sdk/libraries/tests/utest/testrunner/testrunner.cpp
1 #include "CommandLineTestRunner.h"
4 #include "testrunner.h"
8 Object 'mbed_cpputest_console' is used to show prints on console.
9 It is declared in \cpputest\src\Platforms\armcc\UtestPlatform.cpp
11 Serial
mbed_cpputest_console(STDIO_UART_TX
, STDIO_UART_RX
);
13 int main(int ac
, char** av
) {
14 MBED_HOSTTEST_TIMEOUT(20);
15 MBED_HOSTTEST_SELECT(default_auto
);
16 MBED_HOSTTEST_DESCRIPTION(Unit test
);
17 MBED_HOSTTEST_START("UT");
19 unsigned failureCount
= 0;
21 // Some compilers may not pass ac, av so we need to supply them ourselves
23 char* av
[] = {__FILE__
, "-v"};
24 failureCount
= CommandLineTestRunner::RunAllTests(ac
, av
);
27 MBED_HOSTTEST_RESULT(failureCount
== 0);