/**@brief Application main function. */ int main(void) { uint32_t err_code; bool erase_bonds; uint8_t start_string[] = START_STRING; // Initialize. APP_TIMER_INIT(APP_TIMER_PRESCALER, APP_TIMER_OP_QUEUE_SIZE, false); uart_init(); buttons_leds_init(&erase_bonds); ble_stack_init(); gap_params_init(); services_init(); advertising_init(); conn_params_init(); printf("%s",start_string); UnityMain(0, NULL, RunAllTests); err_code = ble_advertising_start(BLE_ADV_MODE_FAST); APP_ERROR_CHECK(err_code); // Enter main loop. for (;;) { power_manage(); } }
/**************************************************************************** * Name: unity_pwrbtn_main * * Description: * Application entry point * * Input Parameters: * argc - number of arguments * argv - arguments themselves * * Returned Value: * exit status * * Assumptions/Limitations: * None * ****************************************************************************/ int unity_usrsock_main(int argc, const char* argv[]) { int ret; struct mallinfo mem_before, mem_after; get_mallinfo(&mem_before); ret = UnityMain(argc, argv, runAllTests); get_mallinfo(&mem_after); print_mallinfo(&mem_before, "HEAP BEFORE TESTS"); print_mallinfo(&mem_after, "HEAP AFTER TESTS"); return ret; }
int main(int argc, const char * argv[]) { return UnityMain(argc, argv, RunAllTests); }
int main(int argc, char** argv) { return UnityMain(argc, argv, run_all_tests); }
int main(int argc, char* argv[]) { return UnityMain(argc, argv, runTreeTests); }
int main(int argc, char* argv[]) { return UnityMain(argc, (char **) argv, RunAllTests); }
TEST(UnityCommandOptions, GroupOrNameFilterWithoutStringFails) { TEST_ASSERT_EQUAL(1, UnityGetCommandLineOptions(3, unknownCommand)); TEST_ASSERT_EQUAL(1, UnityGetCommandLineOptions(5, unknownCommand)); TEST_ASSERT_EQUAL(1, UnityMain(3, unknownCommand, NULL)); }
/**************************************************************************** * Name: unity_pwrbtn_main * * Description: * Application entry point * * Input Parameters: * argc - number of arguments * argv - arguments themselves * * Returned Value: * exit status * * Assumptions/Limitations: * None * ****************************************************************************/ int unity_pwrbtn_main(int argc, const char* argv[]) { return UnityMain(argc, argv, runAllTests); }
int main(int argc, const char* argv[]) { return UnityMain(argc, argv, run_all_tests); }