void test_run_all(void) { tprintf("ROOT_TASK_TESTS | Running unit tests.\n"); test_title = "ROOT_TASK_TESTS"; test_kalloc(); test_cvector(); test_cqueue(); test_chash(); test_cpool(); test_cbpool(); test_pid(); test_pd(); test_vspace(0); test_vspace_mapping(); test_vspace(1); test_thread(); test_window_list(); test_window_associations(); test_ram_dspace_list(); test_ram_dspace_read_write(); test_proc_client_watch(); test_ram_dspace_content_init(); test_nameserv_lib(); test_print_log(); }
int main(){ int monte = 1; printf("%d/%d valid messages in test_gps\n",test_gps(monte),monte); printf("%d/%d valid messages in test_control\n",test_control(monte),monte); printf("%d/%d valid messages in test_command\n",test_command(monte),monte); printf("%d/%d valid messages in test_pid\n",test_pid(monte),monte); // weirdness uint8_t msg[] = {0x7F,0x53,0x01,0xC0,0xAE,0x93,0xC6,0xC0,0x3D,0x40,0x12,0xEC,0x51,0x20,0x41,0x87}; int32_t lon=0,lat=0; float t=0; if (esp_unpack_gps(msg,&lon,&lat,&t) > 0){ printf("Hardcoded msg: lon = %ld, lat = %ld, t=%f\n",lon,lat,t); } printf("%ld\n",0xC0); printf("%ld\n",0xAE<<8); printf("%ld\n",0x93<<16); printf("%ld\n",0xC6<<24); printf("%ld",(0xC0) + (0xAE << 8) + (0x93<<16) + (0xC6 << 24)); return 0; }
rtems_task Init( rtems_task_argument argument ) { TEST_BEGIN(); test_gid(); puts( "" ); test_uid(); puts( "" ); test_pid(); puts( "" ); test_getlogin(); TEST_END(); rtems_test_exit(0); }