Quick Search:

View

Revision:
Expand:  
Changeset: MAIN:plunky:20111110193452

Diff

Diff from 1.16 to:

Annotations

Annotate by Age | Author | Mixed | None
/fisheye/browse/pcc/pcc-tests/regress/c99/Makefile

Annotated File View

plunky
1.16
1 #       $Id: Makefile,v 1.16 2011/11/10 19:34:52 plunky Exp $
faceless
1.1
2 #
3 # Makefile for pcc regression tests.
4 #
5
6 CC=pcc
faceless
1.4
7 CFLAGS= -lm
faceless
1.1
8 LDFLAGS=
faceless
1.4
9 LOG=c99.log
faceless
1.1
10
faceless
1.4
11 REGRESS_TARGETS = arith001 arith002 \
faceless
1.6
12                                                 basic001 basic002 basic003 basic004 basic005 \
faceless
1.12
13                                                 basic007 \
faceless
1.1
14                                                 comments001 \
15                                                 conversions001 \
faceless
1.13
16                                                 darray001 darray002 darray004 darray005 \
faceless
1.4
17                                                 digraph001 \
18                                                 enum001 \
faceless
1.13
19                                                 func001 func002 func003 func004 func005 \
faceless
1.1
20                                                 init001 init002 init003 init004 init005 init006 \
21                                                 init007 init008 init009 init010 init011 init012 \
faceless
1.11
22                                                 init013 init014 init015 init016 init017 init018 \
faceless
1.1
23                                                 inline001  \
faceless
1.9
24                                                 oper001 oper002 oper003 oper004 \
faceless
1.1
25                                                 prep001 prep002 prep003 prep004 prep005 prep006 \
faceless
1.10
26                                                 prep007 prep008 \
faceless
1.1
27                                                 scope001 scope002 scope003 scope004 \
faceless
1.4
28                                                 trigraph001 \
faceless
1.7
29                                                 types001 types002 types003 types004 types005 \
faceless
1.13
30                                                 types006 types007 types008 types009 \
faceless
1.8
31                                                 limits001 limits002 limits003 \
32                                                 sizeof001 sizeof002 
faceless
1.4
33
faceless
1.1
34
35 REGRESS_TARGETS_FAIL = arith999 \
faceless
1.4
36                                                 comments999 comments998 \
faceless
1.6
37                                                 const999 const998 const997 \
faceless
1.10
38                                                 func999 func998 func997 func996 func995 \
39                                                 init999 init998 \
faceless
1.1
40                                                 oper999 \
plunky
1.16
41                                                 parse999 \
42                                                 prep999 prep998 prep997 \
43                                                 scope999 scope998 scope997 scope996 \
faceless
1.9
44                                                 types999 types998 types997 types996 
faceless
1.1
45
46 test:  
faceless
1.4
47         @echo " Running C99 tests: " 
faceless
1.3
48         @for TARGET in ${REGRESS_TARGETS} ;\
49         do \
50                 printf  "   %-20s \t\t " "$$TARGET" ;\
51                 ${CC} ${CFLAGS} -o $$TARGET.out $$TARGET.c 2>/dev/null && \
52                         ./$$TARGET.out >/dev/null && \
53                         echo "passed" || echo "failed" ;\
54         done 
55         @for TARGET2 in ${REGRESS_TARGETS_FAIL} ;\
56         do \
57                 printf  "   %-20s \t\t " "$$TARGET2" ;\
58                 ${CC} ${CFLAGS} -o $$TARGET2.out $$TARGET2.c 2>/dev/null && \
59                         echo "failed" || echo "passed" ;\
60         done 
faceless
1.12
61         @printf  "   %-20s \t\t " "basic006" ;
62         @${CC} ${CFLAGS} -o basic006.out basic006.c 2>/dev/null && \
63                 ./basic006.out param1 PARAM2 Param3 >/dev/null && \
64                 echo "passed" || echo "failed" ;
faceless
1.13
65         @printf  "   %-20s \t\t " "darray003" ;
plunky
1.14
66         @${CC} ${CFLAGS} -o darray003.out darray003.c darray003_p2.c >/dev/null 2>/dev/null && \
faceless
1.13
67                 ./darray003.out >/dev/null 2>/dev/null&& \
68                 echo "passed" || echo "failed" ;
69         @printf  "   %-20s \t\t " "darray999" ;
plunky
1.14
70         @${CC} ${CFLAGS} -o darray999.out darray999.c darray999_p2.c >/dev/null 2>/dev/null && \
faceless
1.13
71                 echo "failed" || echo "passed" ;
faceless
1.5
72         @printf  "   %-20s \t\t " "inline999" ;
73         @${CC} ${CFLAGS} -c inline999.out inline999.c 2>/dev/null && \
faceless
1.12
74                 echo "failed" || echo "passed" ;
faceless
1.3
75
faceless
1.2
76 page:
faceless
1.4
77         @printf  "<h2> C99 tests </h2> \n" > ${LOG}
78         @printf  "<table width="300"> \n<tr><th>Test</th><th>Result</th></tr> \n" >> ${LOG}
faceless
1.3
79         @for TARGET in ${REGRESS_TARGETS} ;\
80         do \
faceless
1.4
81                 printf  "<tr><td bgcolor=\"#dcdcdc\"> %s </td>" "$$TARGET" >> ${LOG};\
faceless
1.3
82                 ${CC} ${CFLAGS} -o $$TARGET.out $$TARGET.c 2>/dev/null && \
83                         ./$$TARGET.out >/dev/null && \
faceless
1.4
84                         printf "<td align=\"center\" bgcolor=\"green\" > %s </td></tr>\n" "passed" >> ${LOG} || \
85                         printf "<td align=\"center\" bgcolor=\"red\" > %s </td></tr>\n" "failed" >> ${LOG} ;\
faceless
1.3
86         done
87         @for TARGET2 in ${REGRESS_TARGETS_FAIL} ;\
88         do \
faceless
1.4
89                 printf  "<tr><td bgcolor=\"#dcdcdc\"> %s </td>" "$$TARGET2" >> ${LOG};\
faceless
1.3
90                 ${CC} ${CFLAGS} -o $$TARGET2.out $$TARGET2.c 2>/dev/null && \
faceless
1.4
91                         printf "<td align=\"center\" bgcolor=\"red\" > %s </td></tr>\n" "failed" >> ${LOG} || \
92                         printf "<td align=\"center\" bgcolor=\"green\"> %s </td></tr>\n" "passed" >> ${LOG} ;\
faceless
1.3
93         done
faceless
1.12
94         @printf  "<tr><td bgcolor=\"#dcdcdc\"> %s </td>" "basic006" >> ${LOG};
95         @${CC} ${CFLAGS} -o basic006.out basic006.c 2>/dev/null && \
96                 ./basic006.out param1 PARAM2 Param3 >/dev/null && \
97                 printf "<td align=\"center\" bgcolor=\"green\"> %s </td></tr>\n" "passed" >> ${LOG} || \
98                 printf "<td align=\"center\" bgcolor=\"red\" > %s </td></tr>\n" "failed" >> ${LOG} ;
faceless
1.13
99         @printf  "<tr><td bgcolor=\"#dcdcdc\"> %s </td>" "darray003" >> ${LOG};
plunky
1.14
100         @${CC} ${CFLAGS} -o darray003.out darray003.c darray003_p2.c >/dev/null 2>/dev/null && \
faceless
1.13
101                 ./darray003.out >/dev/null  2>/dev/null&& \
102                 printf "<td align=\"center\" bgcolor=\"green\"> %s </td></tr>\n" "passed" >> ${LOG} || \
103                 printf "<td align=\"center\" bgcolor=\"red\" > %s </td></tr>\n" "failed" >> ${LOG} ;
104         @printf  "<tr><td bgcolor=\"#dcdcdc\"> %s </td>" "darray999" >> ${LOG};
plunky
1.14
105         @${CC} ${CFLAGS} -o darray999.out darray999.c darray999_p2.c >/dev/null 2>/dev/null && \
faceless
1.13
106                 printf "<td align=\"center\" bgcolor=\"red\" > %s </td></tr>\n" "failed" >> ${LOG} || \
107                 printf "<td align=\"center\" bgcolor=\"green\"> %s </td></tr>\n" "passed" >> ${LOG} ;
faceless
1.5
108         @printf  "<tr><td bgcolor=\"#dcdcdc\"> %s </td>" "inline999" >> ${LOG};
109         @${CC} ${CFLAGS} -c inline999.out inline999.c 2>/dev/null && \
110                 printf "<td align=\"center\" bgcolor=\"red\" > %s </td></tr>\n" "failed" >> ${LOG} || \
111                 printf "<td align=\"center\" bgcolor=\"green\"> %s </td></tr>\n" "passed" >> ${LOG} ;
faceless
1.4
112         @printf "</table>\n" >> ${LOG}
faceless
1.2
113
faceless
1.1
114 clean:
115         /bin/rm -rf *.out 
116         /bin/rm -rf *.core
faceless
1.4
117         /bin/rm -rf ${LOG}
faceless
1.2
118
faceless
1.1
119
FishEye: Open Source License registered to PCC.
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-12-23 03:16 +0100