2 #include <cairo/cairo.h>
3 #include <cairo/cairo-script-interpreter.h>
5 #include "cairo-test.h"
10 static void startup(void);
11 static void cleanup(void);
13 void (*tet_startup)(void) = startup;
14 void (*tet_cleanup)(void) = cleanup;
16 static void utc_cairo_linear_uniform1(void);
18 struct tet_testlist tet_testlist[] = {
19 { utc_cairo_linear_uniform1, 1 },
23 static void startup(void)
28 static void cleanup(void)
33 static void utc_cairo_linear_uniform1(void)
37 sprintf(buf, "cd %s && ./cairo-test-suite linear-uniform", getenv("CAIRO_TC_ROOT_PATH"));
43 if (waitpid(pid,&status,0) != pid) {
44 fprintf(stderr, "Failed to wait!!!");
47 if(WIFEXITED(status)) {
49 if(WEXITSTATUS(ret) == CAIRO_TEST_SUCCESS)
50 dts_pass("utc_cairo_linear_uniform1");
52 dts_fail("utc_cairo_linear_uniform1");
56 char *env[]={"CAIRO_TEST_TARGET=image", (char *)0};
58 char parse1[1024]={0,};
62 sscanf(buf,"%s %s %s %s %s", parse0, parse1, parse2, parse3, parse4 );
64 execle(parse3, parse3, parse4, NULL, env);
67 fprintf(stderr, "Failed to fork!!!");