Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MAX44000 PWM_Tone_Library nexpaq_mdk
Fork of LED_Demo by
testrunner.cpp
00001 #include "CommandLineTestRunner.h" 00002 #include <stdio.h> 00003 #include "mbed.h" 00004 #include "testrunner.h" 00005 #include "test_env.h" 00006 00007 /** 00008 Object 'mbed_cpputest_console' is used to show prints on console. 00009 It is declared in \cpputest\src\Platforms\armcc\UtestPlatform.cpp 00010 */ 00011 Serial mbed_cpputest_console(STDIO_UART_TX, STDIO_UART_RX); 00012 00013 int main(int ac, char** av) { 00014 MBED_HOSTTEST_TIMEOUT(20); 00015 MBED_HOSTTEST_SELECT(default_auto); 00016 MBED_HOSTTEST_DESCRIPTION(Unit test); 00017 MBED_HOSTTEST_START("UT"); 00018 00019 unsigned failureCount = 0; 00020 { 00021 // Some compilers may not pass ac, av so we need to supply them ourselves 00022 int ac = 2; 00023 char* av[] = {__FILE__, "-v"}; 00024 failureCount = CommandLineTestRunner::RunAllTests(ac, av); 00025 } 00026 00027 MBED_HOSTTEST_RESULT(failureCount == 0); 00028 return failureCount; 00029 }
Generated on Tue Jul 12 2022 12:28:55 by
