Upload tizen 2.0 beta source
[framework/graphics/freetype.git] / TC / testcase / utc_ft_view.c
1 #include <tet_api.h>
2
3 static void startup(void);
4 static void cleanup(void);
5
6 void (*tet_startup)(void) = startup;
7 void (*tet_cleanup)(void) = cleanup;
8
9 static void utc_ft_view(void);
10
11 struct tet_testlist tet_testlist[] = {
12         { utc_ft_view, 1 },
13         { NULL, 0 },
14 };
15
16 static void startup(void)
17 {
18         /* start of TC */
19 }
20
21 static void cleanup(void)
22 {
23         /* end of TC */
24 }
25
26 static void utc_ft_view(void)
27 {
28         char buf[128];
29         int ret;
30         sprintf(buf, "cd %s && ./ftview 10pt /usr/share/fonts/HelveticaNeueRegular.ttf ", getenv("FT2_TC_ROOT_PATH"));
31         ret = system(buf);
32         if(WEXITSTATUS(ret) == 0)
33                 dts_pass("utc_ft_view");
34         else
35                 dts_fail("utc_ft_view");
36 }