Exemplo n.º 1
0
int __cdecl main(void) {
  test_parse_port_string();
  test_mg_strcasestr();
  test_alloc_vprintf();
  test_base64_encode();
  test_match_prefix();
  test_remove_double_dots();
  test_should_keep_alive();
  test_parse_http_message();
  test_mg_download();
  test_mg_get_var();
  test_set_throttle();
  test_next_option();
  test_mg_stat();
  test_skip_quoted();
  test_mg_upload();
  test_request_replies();
  test_api_calls();
  test_url_decode();
  test_mg_get_cookie();
  test_strtoll();
#ifdef USE_LUA
  test_lua();
#endif

  printf("TOTAL TESTS: %d, FAILED: %d\n", s_total_tests, s_failed_tests);

  return s_failed_tests == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
Exemplo n.º 2
0
int __cdecl main(void) {
  test_mg_strcasestr();
  test_alloc_vprintf();
  test_base64_encode();
  test_match_prefix();
  test_remove_double_dots();
  test_should_keep_alive();
  test_parse_http_message();
  test_mg_download();
  test_mg_get_var();
  test_set_throttle();
  test_next_option();
  test_mg_stat();
  test_skip_quoted();
  test_mg_upload();
  test_request_replies();
  test_api_calls();
  test_url_decode();
  test_mg_get_cookie();
#ifdef USE_LUA
  test_lua();
#endif

  printf("%s\n", "PASSED");
  return 0;
}
Exemplo n.º 3
0
int main(void) {
  test_base64_encode();
  test_match_prefix();
  test_remove_double_dots();
  test_should_keep_alive();
  test_parse_http_request();
  test_mg_fetch();
  test_mg_get_var();
  test_set_throttle();
  test_next_option();
#ifdef USE_LUA
  test_lua();
#endif
  return 0;
}
Exemplo n.º 4
0
int __cdecl main(void) {
  test_base64_encode();
  test_match_prefix();
  test_remove_double_dots();
  test_should_keep_alive();
  test_parse_http_message();
  test_mg_download();
  test_mg_get_var();
  test_set_throttle();
  test_next_option();
  test_user_data();
  test_mg_stat();
  test_mg_upload();
#ifdef USE_LUA
  test_lua();
#endif
  test_skip_quoted();
  printf("%s\n", "PASSED");
  return 0;
}