示例#1
0
int
main (int argc, char **argv)
{
    if (argc < 2)
        usage ();

    if (!strcmp (argv[1], "testpat"))
        make_testpat ();
    else if (!strcmp (argv[1], "gradient"))
        test_gradient ();
    else if (!strcmp (argv[1], "dist"))
        test_dist ();
    else if (!strcmp (argv[1], "dash"))
        test_dash ();
    else if (!strcmp (argv[1], "intersect"))
        test_intersect ();
    else if (!strcmp (argv[1], "intersect1"))
        test_intersection();
    else
        usage ();
    return 0;
}
示例#2
0
DEF_TEST(ShaderOpacity, reporter) {
    test_gradient(reporter);
    test_color(reporter);
    test_bitmap(reporter);
}