enum piglit_result piglit_display(void) { GLboolean pass = GL_TRUE; piglit_ortho_projection(piglit_width, piglit_height, GL_FALSE); if (piglit_automatic) { int bias1, bias2; for(bias1 = -MaxTextureLodBias; bias1 <= MaxTextureLodBias; bias1++) { for(bias2 = -MaxTextureLodBias; bias2 <= MaxTextureLodBias; bias2++) { pass = pass && test_simple(bias1, bias2); pass = pass && test_multitex(bias1, bias2); } } } else { if (CurrentTest == 0) { pass = test_simple(CurrentBias, CurrentBias2); } else { pass = test_multitex(CurrentBias, CurrentBias2); } } return pass ? PIGLIT_PASS : PIGLIT_FAIL; }
static void test_strdup(void) { int test[3], ctrl[3]; char *dst, src[]="test string"; print_test_name("------------STRDUP------------"); printf("\n\n"); test_simple(); printf("s: "); printf(STRING); printf("\n"); printf("Original: "); printf("%s", strdup(STRING)); printf("\n"); printf("Homemade: "); printf("%s", ft_strdup(STRING)); ok(); init(ctrl, 3, 0); init(test, 3, 1); dst = ft_strdup(src); test[0] = cmp(src, dst); if (!dst[strlen(src)]) test[1] = 0; free(dst); dst = ft_strdup(""); if (dst && !(*dst)) test[2] = 0; free(dst); test_hard(); print_test_results(test, ctrl, 3, NULL); printf("\n"); }
enum piglit_result piglit_display(void) { GLenum formats[] = { GL_RGBA, GL_RGB, GL_ALPHA }; int w, h, d, fmt; bool pass = true; piglit_ortho_projection(piglit_width, piglit_height, GL_FALSE); for(fmt = 0; fmt < sizeof(formats)/sizeof(formats[0]); ++fmt) { for(w = 3; w <= 15; w++) { if (w != 4 && w != 8) { for(h = 3; h <= 15; h++) { if (h != 4 && h != 8) { for(d = 3; d <= 15; d++) { if (d != 4 && d != 8) { pass = test_simple(w, h, d, formats[fmt]); if (!pass) goto end; } } } } } } } end: return pass ? PIGLIT_PASS : PIGLIT_FAIL; }
int main() { multipartparser_callbacks_init(&g_callbacks); g_callbacks.on_body_begin = &on_body_begin; g_callbacks.on_part_begin = &on_part_begin; g_callbacks.on_header_field = &on_header_field; g_callbacks.on_header_value = &on_header_value; g_callbacks.on_headers_complete = &on_headers_complete; g_callbacks.on_data = &on_data; g_callbacks.on_part_end = &on_part_end; g_callbacks.on_body_end = &on_body_end; test_simple(); test_simple_with_preamble(); test_simple_with_epilogue(); test_headers(); test_with_empty_headers(); test_with_header_field_parsed_in_two_times(); test_with_header_field_parsed_in_two_times_1(); test_with_header_field_parsed_in_two_times_2(); test_with_header_value_parsed_in_two_times(); test_with_header_value_parsed_in_two_times_1(); test_with_header_value_parsed_in_two_times_2(); return 0; }
int main(void) { test_no_op(); test_simple(); test_percentile(); test_merge(); return 0; }
int main(void) { test_simple(); test_mulitples(); test_runonce(); assert(R_Type_BytesAllocated == 0); printf("Pass\n"); }
int main() { test_simple(); test_different(); test_structs(); test_same(); test_empty(); return 0; }
int main(int argc, char **argv) { plan_tests(4); test_simple(); return exit_status(); }
int main (void) { setup_test_environment(); test_simple (); test_leak (); return 0 ; }
int test_parameters( int, char*[] ) { test_simple(); test_braces(); test_conditionals(); test_escapes(); test_exceptions(); cout << failures << " test(s) failed\n"; return failures ? 1 : 0; }
int main(void) { test_simple(); test_contention(); test_lock_cancellation(); test_trylock(); test_cond_wait(); test_cond_timedwait(); test_cond_wait_cancellation(); return 0; }
int main(int argc, char **argv) { test_simple(); test_error(); test_record(); test_no_ascii(); test_copy(); test_encode_char(); printf("DONE.\n"); return 0; }
int main(int argc, char **argv) { test_construct(); test_simple(); test_update(); test_multiple_keys(); test_function_update(); test_free_null(); test_negative_size(); test_clear(); return 0; }
int main(void) { g_type_init (); test_old_school1 (); test_simple (); test_tricky1 (); test_tricky2 (); test_tricky3 (); test_tricky4 (); return 0; }
int main(void) { test_simple(); test_constructor(); test_destructor(); test_copier(); test_full(); test_bad_constructor(); assert(R_Type_BytesAllocated == 0); printf("Pass\n"); return 0; }
bool test_TD_COAP_OBS_01(smcp_t smcp, const char* url, test_data_s *test_data) { return test_simple( smcp, test_data, url, "obs", COAP_METHOD_GET, COAP_TRANS_TYPE_CONFIRMABLE, COAP_RESULT_205_CONTENT, EXT_OBS_01 ); }
bool test_TD_COAP_BLOCK_05(smcp_t smcp, const char* url, test_data_s *test_data) { return test_simple( smcp, test_data, url, "large-post", COAP_METHOD_POST, COAP_TRANS_TYPE_CONFIRMABLE, COAP_RESULT_204_CHANGED, EXT_BLOCK_01 ); }
bool test_TD_COAP_BLOCK_04(smcp_t smcp, const char* url, test_data_s *test_data) { return test_simple( smcp, test_data, url, "large-create", COAP_METHOD_POST, COAP_TRANS_TYPE_CONFIRMABLE, COAP_RESULT_201_CREATED, EXT_BLOCK_01 ); }
bool test_TD_COAP_BLOCK_01(smcp_t smcp, const char* url, test_data_s *test_data) { return test_simple( smcp, test_data, url, "large", COAP_METHOD_GET, COAP_TRANS_TYPE_CONFIRMABLE, COAP_RESULT_205_CONTENT, EXT_BLOCK_02 ) && test_data->has_block2_option; }
bool test_TD_COAP_LINK_01(smcp_t smcp, const char* url, test_data_s *test_data) { return test_simple( smcp, test_data, url, ".well-known/core", COAP_METHOD_GET, COAP_TRANS_TYPE_CONFIRMABLE, COAP_RESULT_205_CONTENT, EXT_NONE ); }
bool test_TD_COAP_CORE_31(smcp_t smcp, const char* url, test_data_s *test_data) { return test_simple( smcp, test_data, url, NULL, COAP_CODE_EMPTY, COAP_TRANS_TYPE_CONFIRMABLE, COAP_CODE_EMPTY, EXT_NONE ); }
void test_putstr(void) { print_test_name("------------PUTSTR------------"); printf("\n\n"); test_simple(); printf("s: "); printf(STRING); printf("\n"); printf("Homemade: "); fflush(stdout); ft_putstr(STRING); ok(); printf("\n"); }
bool test_TD_COAP_CORE_14(smcp_t smcp, const char* url, test_data_s *test_data) { return test_simple( smcp, test_data, url, "query?first=1&second=2&third=3", COAP_METHOD_GET, COAP_TRANS_TYPE_CONFIRMABLE, COAP_RESULT_205_CONTENT, EXT_NONE ); }
bool test_TD_COAP_CORE_08(smcp_t smcp, const char* url, test_data_s *test_data) { return test_simple( smcp, test_data, url, "test", COAP_METHOD_DELETE, COAP_TRANS_TYPE_NONCONFIRMABLE, COAP_RESULT_202_DELETED, EXT_NONE ); }
bool test_TD_COAP_CORE_03(smcp_t smcp, const char* url, test_data_s *test_data) { return test_simple( smcp, test_data, url, "test", COAP_METHOD_PUT, COAP_TRANS_TYPE_CONFIRMABLE, COAP_RESULT_204_CHANGED, EXT_NONE ); }
bool test_TD_COAP_CORE_17(smcp_t smcp, const char* url, test_data_s *test_data) { return test_simple( smcp, test_data, url, "separate", COAP_METHOD_GET, COAP_TRANS_TYPE_NONCONFIRMABLE, COAP_RESULT_205_CONTENT, EXT_NONE ); }
int main (int argc, char ** argv) { printf (" PLUGINS TESTS\n"); printf ("====================\n\n"); init (argc, argv); test_process (); test_simple (); test_name (); printf ("\ntest_plugin RESULTS: %d test(s) done. %d error(s).\n", nbTest, nbError); return nbError; }
int main(int argc, char** argv) { printf(" BACKEND TESTS\n"); printf("====================\n\n"); init (argc, argv); test_simple(); test_default(); test_backref(); printf("\ntest_backend RESULTS: %d test(s) done. %d error(s).\n", nbTest, nbError); return nbError; }
int main(void) { int nerrors=0; nerrors += test_simple()<0 ?1:0; nerrors += test_data()<0 ?1:0; nerrors += test_generate()<0 ?1:0; if (nerrors) goto error; printf("All image tests passed.\n"); return 0; error: printf("***** %d IMAGE TEST%s FAILED! *****\n",nerrors, 1 == nerrors ? "" : "S"); return 1; }
void test_putchar(void) { print_test_name("------------PUTCHAR------------"); printf("\n\n"); test_simple(); printf("c: "); printf("a"); printf("\n"); printf("Original: "); putchar('a'); printf("\n"); printf("Homemade: "); fflush(stdout); ft_putchar('a'); ok(); printf("\n"); }