| /xsrc/external/mit/xedit/dist/lisp/test/ |
| math.lsp | 30 ;; $XFree86: xc/programs/xedit/lisp/test/math.lsp,v 1.4 2002/11/30 23:13:14 paulo Exp $ 34 ;; This is far from a good regression test, but in the current stage of 36 ;; broken. But note that this does not test all cases where there is 43 (defun test (expect function &rest arguments &aux result (error t)) function 71 (defun div-test (quotient remainder function &rest arguments 111 (defun bool-test (expect function &rest arguments &aux result (error t)) 126 (defun error-test (function &rest arguments &aux result (error t)) 137 (test 0 #'+) 138 (test 5 #'+ 5) 139 (test -2 #'+ -2 [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/tests/ |
| unit_test.h | 34 struct test { struct 40 unsigned run_tests(struct test tests[]);
|
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/r300/compiler/tests/ |
| unit_test.h | 34 struct test { struct 40 unsigned run_tests(struct test tests[]);
|
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/ |
| lp_bld_alpha.c | 59 LLVMValueRef test; local 87 test = lp_build_cmp(&bld, func, alpha, ref); 89 lp_build_name(test, "alpha_mask"); 91 lp_build_mask_update(mask, test);
|
| lp_test_format.c | 165 const struct util_format_test_case *test = &util_format_test_cases[l]; local 167 if (test->format == desc->format) { 177 memcpy(packed, test->packed, sizeof packed); 188 if (util_double_inf_sign(test->unpacked[i][j][k]) != util_inf_sign(unpacked[k])) { 192 if (util_is_double_nan(test->unpacked[i][j][k]) != util_is_nan(unpacked[k])) { 196 if (!util_is_double_inf_or_nan(test->unpacked[i][j][k]) && 197 fabs((float)test->unpacked[i][j][k] - unpacked[k]) > FLT_EPSILON) { 210 test->packed[0], test->packed[1], test->packed[2], test->packed[3]) 266 const struct util_format_test_case *test = &util_format_test_cases[l]; local [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/llvmpipe/ |
| lp_bld_alpha.c | 59 LLVMValueRef test; local 87 test = lp_build_cmp(&bld, func, alpha, ref); 89 lp_build_name(test, "alpha_mask"); 91 lp_build_mask_update(mask, test);
|
| lp_test_format.c | 165 const struct util_format_test_case *test = &util_format_test_cases[l]; local 167 if (test->format == desc->format) { 177 memcpy(packed, test->packed, sizeof packed); 188 if (util_double_inf_sign(test->unpacked[i][j][k]) != util_inf_sign(unpacked[k])) { 192 if (util_is_double_nan(test->unpacked[i][j][k]) != util_is_nan(unpacked[k])) { 196 if (!util_is_double_inf_or_nan(test->unpacked[i][j][k]) && 197 fabs((float)test->unpacked[i][j][k] - unpacked[k]) > FLT_EPSILON) { 210 test->packed[0], test->packed[1], test->packed[2], test->packed[3]) 266 const struct util_format_test_case *test = &util_format_test_cases[l]; local [all...] |
| /xsrc/external/mit/MesaLib/dist/src/util/tests/vector/ |
| vector_test.cpp | 27 static void test(uint32_t size_in_elements, uint32_t elements_to_walk, uint32_t start) function 35 // Override the head and tail so we can quickly test rollover 85 TEST(Vector, Grow0) { test(4, 0, 0); } 87 TEST(Vector, Grow1) { test(4, 1, 0); } 89 TEST(Vector, Grow2) { test(4, 2, 0); } 91 TEST(Vector, Grow3) { test(4, 3, 0); [all...] |
| /xsrc/external/mit/fontconfig/dist/test/ |
| test-family-matching.c | 2 * fontconfig/test/test-family-matching.c 43 TestMatchPattern (const char *test, FcPattern *p) 73 concat = FcStrPlus (xml_pre, (const FcChar8 *) test); 132 TestShouldMatchPattern(const char* test, FcPattern *pat, int negate) 134 switch (TestMatchPattern (test, pat)) { 141 printf ("Following test unexpectedly matched:\n%s", test); 149 printf ("Following test should have matched:\n%s", test); 180 const char *test; local [all...] |
| test-name-parse.c | 5 test (const FcChar8 *query, const FcPattern *expect) function 34 if ((ret = test ((const FcChar8 *)"sans\\-serif", expect)) != 0) 40 if ((ret = test ((const FcChar8 *)"Foo-10", expect)) != 0) 47 if ((ret = test ((const FcChar8 *)"Foo,Bar-10", expect)) != 0) 53 if ((ret = test ((const FcChar8 *)"Foo:weight=medium", expect)) != 0) 59 if ((ret = test ((const FcChar8 *)"Foo:weight_medium", expect)) != 0) 64 if ((ret = test ((const FcChar8 *)":medium", expect)) != 0) 69 if ((ret = test ((const FcChar8 *)":weight=normal", expect)) != 0) 74 if ((ret = test ((const FcChar8 *)":width=normal", expect)) != 0) 81 if ((ret = test ((const FcChar8 *)":weight=[medium bold]", expect)) != 0 [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/tests/unit/ |
| u_half_test.c | 10 test(void) function 40 test(); 42 /* Test non-f16c. */ 45 test();
|
| /xsrc/external/mit/xf86-video-intel/dist/test/ |
| basic-copyarea-size.c | 7 #include "test.h" 47 struct test test; local 51 test_init(&test, argc, argv); 55 target_init(&test.out, &out, size); 56 target_init(&test.ref, &ref, size); 70 XCopyArea(test.out.dpy, 78 XCopyArea(test.ref.dpy, 88 test_compare(&test, 93 test_compare(&test, [all...] |
| render-copyarea-size.c | 7 #include "test.h" 55 struct test test; local 59 test_init(&test, argc, argv); 63 target_init(&test.out, &out, size); 64 target_init(&test.ref, &ref, size); 81 XRenderComposite(test.out.dpy, PictOpSrc, 90 XRenderComposite(test.ref.dpy, PictOpSrc, 101 test_compare(&test, 106 test_compare(&test, [all...] |
| basic-stress.c | 8 #include "test.h" 107 static void rect_tests(struct test *test, int iterations, enum target target) 121 test_target_create_render(&test->out, target, &out); 122 test_target_create_render(&test->ref, target, &ref); 130 test_compare(test, 138 test_target_destroy_render(&test->out, &out); 139 test_target_destroy_render(&test->ref, &ref); 144 struct test test; local [all...] |
| /xsrc/external/mit/xf86-video-intel-2014/dist/test/ |
| basic-copyarea-size.c | 7 #include "test.h" 47 struct test test; local 51 test_init(&test, argc, argv); 55 target_init(&test.out, &out, size); 56 target_init(&test.ref, &ref, size); 70 XCopyArea(test.out.dpy, 78 XCopyArea(test.ref.dpy, 88 test_compare(&test, 93 test_compare(&test, [all...] |
| render-copyarea-size.c | 7 #include "test.h" 55 struct test test; local 59 test_init(&test, argc, argv); 63 target_init(&test.out, &out, size); 64 target_init(&test.ref, &ref, size); 81 XRenderComposite(test.out.dpy, PictOpSrc, 90 XRenderComposite(test.ref.dpy, PictOpSrc, 101 test_compare(&test, 106 test_compare(&test, [all...] |
| present-test.c | 343 struct test_crtc *test = closure; local 347 test->msc = check_msc(dpy, test->win, test->queue, test->msc); 349 if (test->flags & SYNC) 350 xshmfence_reset(test->fence.addr); 352 pixmap = XCreatePixmap(dpy, test->win, width, height, test->depth); 354 test->win, pixmap 398 struct test_crtc test; local [all...] |
| basic-stress.c | 8 #include "test.h" 107 static void rect_tests(struct test *test, int iterations, enum target target) 121 test_target_create_render(&test->out, target, &out); 122 test_target_create_render(&test->ref, target, &ref); 130 test_compare(test, 138 test_target_destroy_render(&test->out, &out); 139 test_target_destroy_render(&test->ref, &ref); 144 struct test test; local [all...] |
| /xsrc/external/mit/MesaLib/dist/src/util/tests/format/ |
| u_format_test.c | 206 const struct util_format_test_case *test) 217 fetch_rgba(unpacked[i][j], test->packed, j, i); 219 if (!compare_float(test->unpacked[i][j][k], unpacked[i][j][k])) { 233 print_unpacked_rgba_doubl(format_desc, " ", test->unpacked, " expected\n"); 242 const struct util_format_test_case *test) 249 test->packed, 0, 256 if (!compare_float(test->unpacked[i][j][k], unpacked[i][j][k])) { 270 print_unpacked_rgba_doubl(format_desc, " ", test->unpacked, " expected\n"); 279 const struct util_format_test_case *test) 288 if (test->format == PIPE_FORMAT_DXT1_RGBA) 752 const struct util_format_test_case *test = &util_format_test_cases[i]; local [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/tests/unit/ |
| u_format_test.c | 205 const struct util_format_test_case *test) 214 format_desc->fetch_rgba_float(unpacked[i][j], test->packed, j, i); 216 if (!compare_float(test->unpacked[i][j][k], unpacked[i][j][k])) { 230 print_unpacked_rgba_doubl(format_desc, " ", test->unpacked, " expected\n"); 239 const struct util_format_test_case *test) 246 test->packed, 0, 253 if (!compare_float(test->unpacked[i][j][k], unpacked[i][j][k])) { 267 print_unpacked_rgba_doubl(format_desc, " ", test->unpacked, " expected\n"); 276 const struct util_format_test_case *test) 283 if (test->format == PIPE_FORMAT_DXT1_RGBA) 730 const struct util_format_test_case *test = &util_format_test_cases[i]; local [all...] |
| /xsrc/external/mit/mesa-demos/dist/src/tests/ |
| jkrahntest.c | 2 /* This is a good test for glXSwapBuffers on non-current windows, 44 int test; local 62 test = atoi(argv[1]); 88 XStoreName(dpy, win1, "Test [L]"); 109 XStoreName(dpy, win1, "Test [R]"); 144 if (test == 1 || test == 3 || test == 5) 147 if (test == 5) 150 if (test == 3 || test == 4) [all...] |
| /xsrc/external/mit/MesaLib/dist/src/freedreno/ir3/tests/ |
| disasm.c | 25 /* Unit test for disassembly of instructions. 27 * The goal is to take instructions we've seen the blob produce, and test that 50 static const struct test { struct 240 /* Custom test */ 352 /* Custom test since we've never seen the blob emit these. */ 389 const struct test *test = &tests[i]; local 390 printf("Testing a%d %s: \"%s\"...\n", test->gpu_id, test->instr, 391 test->expected) [all...] |
| /xsrc/external/mit/MesaLib/dist/src/util/ |
| process_test.c | 42 expect_equal_str(const char *expected, const char *actual, const char *test) 45 fprintf (stderr, "Error: Test '%s' failed:\n\t" 47 test, expected, actual); 65 /* This test gets the real path from Meson (BUILD_FULL_PATH env var),
|
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r600/sfn/ |
| sfn_shader_tcs.cpp | 47 if (m_sv_values.test(es_primitive_id)) { 54 if (m_sv_values.test(es_invocation_id)) { 61 if (m_sv_values.test(es_rel_patch_id)) { 68 if (m_sv_values.test(es_tess_factor_base)) {
|
| /xsrc/external/mit/MesaLib/dist/src/intel/compiler/ |
| test_fs_copy_propagation.cpp | 31 class copy_propagation_test : public ::testing::Test { 165 } test[] = { local 188 for (unsigned i = 0; i < sizeof(test) / sizeof(test[0]); i++) { 190 fs_inst *sel = set_condmod(test[i].conditional_mod, 192 brw_imm_f(test[i].immediate))); 201 EXPECT_EQ(test[i].expected_result, copy_propagation(v)); 211 EXPECT_EQ(test[i].conditional_mod, sel->conditional_mod); 212 EXPECT_EQ(test[i].expected_result, sel->saturate); 214 if (test[i].expected_result) [all...] |