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.
pal_all_test_main_mbedOS.cpp
00001 /* 00002 * Copyright (c) 2016 ARM Limited. All rights reserved. 00003 * SPDX-License-Identifier: Apache-2.0 00004 * Licensed under the Apache License, Version 2.0 (the License); you may 00005 * not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an AS IS BASIS, WITHOUT 00012 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 00017 #include "mbed.h" 00018 00019 00020 extern "C" int UnityMain(int argc, const char* argv[], void (*runAllTests)(void)); 00021 00022 extern "C" void TEST_pal_update_GROUP_RUNNER(void); 00023 extern "C" void TEST_pal_rtos_GROUP_RUNNER(void); 00024 extern "C" void TEST_pal_socket_GROUP_RUNNER(void); 00025 00026 void TEST_pal_all_GROUPS_RUNNER(void) 00027 { 00028 TEST_pal_rtos_GROUP_RUNNER(); 00029 TEST_pal_socket_GROUP_RUNNER(); 00030 } 00031 00032 00033 int main(int argc, const char * argv[]) 00034 { 00035 const char * myargv[] = {"app","-v"}; 00036 00037 printf("Start tests\r\n"); 00038 fflush(stdout); 00039 00040 UnityMain(sizeof(myargv)/sizeof(myargv[0]), myargv, TEST_pal_all_GROUPS_RUNNER); 00041 00042 // This is detected by test runner app, so that it can know when to terminate without waiting for timeout. 00043 printf("***END OF TESTS**\n");for(int i=0;i<1000;i++)putchar('x'); 00044 fflush(stdout); 00045 } 00046
Generated on Tue Jul 12 2022 19:07:00 by
1.7.2