Quick Search:

View

Revision:
Expand:  
Changeset: MAIN:plunky:20111108113207

Diff

Diff from 1.15 to:

Annotations

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

Annotated File View

plunky
1.15
1 #       $Id: Makefile,v 1.15 2011/11/08 11:32:07 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 \
faceless
1.10
41                                                 prep999 prep998 \
faceless
1.9
42                                                 scope999        scope998 scope997 scope996 \
43                                                 types999 types998 types997 types996 
faceless
1.1
44
45 test:  
faceless
1.4
46         @echo " Running C99 tests: " 
faceless
1.3
47         @for TARGET in ${REGRESS_TARGETS} ;\
48         do \
49                 printf  "   %-20s \t\t " "$$TARGET" ;\
50                 ${CC} ${CFLAGS} -o $$TARGET.out $$TARGET.c 2>/dev/null && \
51                         ./$$TARGET.out >/dev/null && \
52                         echo "passed" || echo "failed" ;\
53         done 
54         @for TARGET2 in ${REGRESS_TARGETS_FAIL} ;\
55         do \
56                 printf  "   %-20s \t\t " "$$TARGET2" ;\
57                 ${CC} ${CFLAGS} -o $$TARGET2.out $$TARGET2.c 2>/dev/null && \
58                         echo "failed" || echo "passed" ;\
59         done 
faceless
1.12
60         @printf  "   %-20s \t\t " "basic006" ;
61         @${CC} ${CFLAGS} -o basic006.out basic006.c 2>/dev/null && \
62                 ./basic006.out param1 PARAM2 Param3 >/dev/null && \
63                 echo "passed" || echo "failed" ;
faceless
1.13
64         @printf  "   %-20s \t\t " "darray003" ;
plunky
1.14
65         @${CC} ${CFLAGS} -o darray003.out darray003.c darray003_p2.c >/dev/null 2>/dev/null && \
faceless
1.13
66                 ./darray003.out >/dev/null 2>/dev/null&& \
67                 echo "passed" || echo "failed" ;
68         @printf  "   %-20s \t\t " "darray999" ;
plunky
1.14
69         @${CC} ${CFLAGS} -o darray999.out darray999.c darray999_p2.c >/dev/null 2>/dev/null && \
faceless
1.13
70                 echo "failed" || echo "passed" ;
faceless
1.5
71         @printf  "   %-20s \t\t " "inline999" ;
72         @${CC} ${CFLAGS} -c inline999.out inline999.c 2>/dev/null && \
faceless
1.12
73                 echo "failed" || echo "passed" ;
faceless
1.3
74
faceless
1.2
75 page:
faceless
1.4
76         @printf  "<h2> C99 tests </h2> \n" > ${LOG}
77         @printf  "<table width="300"> \n<tr><th>Test</th><th>Result</th></tr> \n" >> ${LOG}
faceless
1.3
78         @for TARGET in ${REGRESS_TARGETS} ;\
79         do \
faceless
1.4
80                 printf  "<tr><td bgcolor=\"#dcdcdc\"> %s </td>" "$$TARGET" >> ${LOG};\
faceless
1.3
81                 ${CC} ${CFLAGS} -o $$TARGET.out $$TARGET.c 2>/dev/null && \
82                         ./$$TARGET.out >/dev/null && \
faceless
1.4
83                         printf "<td align=\"center\" bgcolor=\"green\" > %s </td></tr>\n" "passed" >> ${LOG} || \
84                         printf "<td align=\"center\" bgcolor=\"red\" > %s </td></tr>\n" "failed" >> ${LOG} ;\
faceless
1.3
85         done
86         @for TARGET2 in ${REGRESS_TARGETS_FAIL} ;\
87         do \
faceless
1.4
88                 printf  "<tr><td bgcolor=\"#dcdcdc\"> %s </td>" "$$TARGET2" >> ${LOG};\
faceless
1.3
89                 ${CC} ${CFLAGS} -o $$TARGET2.out $$TARGET2.c 2>/dev/null && \
faceless
1.4
90                         printf "<td align=\"center\" bgcolor=\"red\" > %s </td></tr>\n" "failed" >> ${LOG} || \
91                         printf "<td align=\"center\" bgcolor=\"green\"> %s </td></tr>\n" "passed" >> ${LOG} ;\
faceless
1.3
92         done
faceless
1.12
93         @printf  "<tr><td bgcolor=\"#dcdcdc\"> %s </td>" "basic006" >> ${LOG};
94         @${CC} ${CFLAGS} -o basic006.out basic006.c 2>/dev/null && \
95                 ./basic006.out param1 PARAM2 Param3 >/dev/null && \
96                 printf "<td align=\"center\" bgcolor=\"green\"> %s </td></tr>\n" "passed" >> ${LOG} || \
97                 printf "<td align=\"center\" bgcolor=\"red\" > %s </td></tr>\n" "failed" >> ${LOG} ;
faceless
1.13
98         @printf  "<tr><td bgcolor=\"#dcdcdc\"> %s </td>" "darray003" >> ${LOG};
plunky
1.14
99         @${CC} ${CFLAGS} -o darray003.out darray003.c darray003_p2.c >/dev/null 2>/dev/null && \
faceless
1.13
100                 ./darray003.out >/dev/null  2>/dev/null&& \
101                 printf "<td align=\"center\" bgcolor=\"green\"> %s </td></tr>\n" "passed" >> ${LOG} || \
102                 printf "<td align=\"center\" bgcolor=\"red\" > %s </td></tr>\n" "failed" >> ${LOG} ;
103         @printf  "<tr><td bgcolor=\"#dcdcdc\"> %s </td>" "darray999" >> ${LOG};
plunky
1.14
104         @${CC} ${CFLAGS} -o darray999.out darray999.c darray999_p2.c >/dev/null 2>/dev/null && \
faceless
1.13
105                 printf "<td align=\"center\" bgcolor=\"red\" > %s </td></tr>\n" "failed" >> ${LOG} || \
106                 printf "<td align=\"center\" bgcolor=\"green\"> %s </td></tr>\n" "passed" >> ${LOG} ;
faceless
1.5
107         @printf  "<tr><td bgcolor=\"#dcdcdc\"> %s </td>" "inline999" >> ${LOG};
108         @${CC} ${CFLAGS} -c inline999.out inline999.c 2>/dev/null && \
109                 printf "<td align=\"center\" bgcolor=\"red\" > %s </td></tr>\n" "failed" >> ${LOG} || \
110                 printf "<td align=\"center\" bgcolor=\"green\"> %s </td></tr>\n" "passed" >> ${LOG} ;
faceless
1.4
111         @printf "</table>\n" >> ${LOG}
faceless
1.2
112
faceless
1.1
113 clean:
114         /bin/rm -rf *.out 
115         /bin/rm -rf *.core
faceless
1.4
116         /bin/rm -rf ${LOG}
faceless
1.2
117
faceless
1.1
118
FishEye: Open Source License registered to PCC.
Your maintenance has expired. You can renew your license at http://www.atlassian.com/fisheye/renew
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-07-10 13:54 +0200