Quick Search:

View

Revision:
Expand:  
Changeset: MAIN:plunky:20140606191443

Diff

Diff from 1.9 to:

Annotations

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

Annotated File View

plunky
1.9
1 #       $Id: Makefile,v 1.9 2014/06/06 19:14:43 plunky Exp $
faceless
1.1
2 #
3 # Makefile for pcc regression tests.
4 #
5
6 CC=pcc
7 CFLAGS= 
8 LDFLAGS=
9 LOG=jira.log
10
plunky
1.6
11 REGRESS_TARGETS =       PCC-21 PCC-23 PCC-33 PCC-45 PCC-47 PCC-57 \
12                         PCC-62 PCC-63 PCC-65 PCC-68 PCC-69 PCC-70 PCC-77 \
13                         PCC-84 PCC-85 PCC-97 PCC-101 PCC-123 PCC-125 \
14                         PCC-129 PCC-131 PCC-135 PCC-138 PCC-149 PCC-152 \
plunky
1.8
15                         PCC-154 PCC-155 PCC-157 PCC-158 PCC-159 \
16                         PCC-160 PCC-165 PCC-169 PCC-170 PCC-176 PCC-179 \
17                         PCC-180 PCC-182 PCC-183 PCC-185 PCC-187 PCC-189 \
plunky
1.9
18                         PCC-190 PCC-191 PCC-192 PCC-193 PCC-195 PCC-196 \
19                         PCC-197 PCC-200 \
plunky
1.6
20                         PCC-376 PCC-377 PCC-378 \
21                         PCC-380 PCC-382 PCC-383 PCC-385
faceless
1.1
22
plunky
1.9
23 REGRESS_O2_TARGETS =    PCC-177 PCC-178 PCC-184 PCC-194
plunky
1.8
24
25 REGRESS_PIC_TARGETS =   PCC-186
26
27 REGRESS_TARGETS_FAIL =  PCC-161 
faceless
1.1
28
29 test:  
30         @echo " Running tests from jira bug tracker : "  
31         @for TARGET in ${REGRESS_TARGETS} ;\
32         do \
33                 printf  "   %-20s \t\t " "$$TARGET" ;\
ragge
1.7
34                 ${CC} ${CFLAGS} -o $$TARGET.out $$TARGET.c 2>/dev/null 1>&2 && \
faceless
1.1
35                         ./$$TARGET.out >/dev/null && \
36                         echo "passed" || echo "failed" ;\
37         done 
plunky
1.8
38         @for TARGET in ${REGRESS_O2_TARGETS} ;\
39         do \
40                 printf  "   %-20s \t\t " "$$TARGET" ;\
41                 ${CC} ${CFLAGS} -o $$TARGET.out -O2 $$TARGET.c 2>/dev/null 1>&2 && \
42                         ./$$TARGET.out >/dev/null && \
43                         echo "passed" || echo "failed" ;\
44         done 
45         @for TARGET in ${REGRESS_PIC_TARGETS} ;\
46         do \
47                 printf  "   %-20s \t\t " "$$TARGET" ;\
48                 ${CC} ${CFLAGS} -o $$TARGET.out -k $$TARGET.c 2>/dev/null 1>&2 && \
49                         ./$$TARGET.out >/dev/null && \
50                         echo "passed" || echo "failed" ;\
51         done 
plunky
1.9
52         @for TARGET in ${REGRESS_TARGETS_FAIL} ;\
faceless
1.1
53         do \
plunky
1.9
54                 printf  "   %-20s \t\t " "$$TARGET" ;\
55                 ${CC} ${CFLAGS} -o $$TARGET.out $$TARGET.c 2>/dev/null 1>&2 && \
faceless
1.1
56                         echo "failed" || echo "passed" ;\
57         done 
plunky
1.8
58
faceless
1.1
59
60
61 page:
62         @printf  "<h2> jira bug tracker tests </h2> \n" > ${LOG}
63         @printf  "<table width="300"> \n<tr><th>Test</th><th>Result</th></tr> \n" >> ${LOG}
64         @for TARGET in ${REGRESS_TARGETS} ;\
65         do \
66                 printf  "<tr><td bgcolor=\"#dcdcdc\"> %s </td>" " $$TARGET " >> ${LOG} ;\
67                 ${CC} ${CFLAGS} -o $$TARGET.out $$TARGET.c 2>/dev/null && \
68                         ./$$TARGET.out >/dev/null && \
69                         printf "<td align=\"center\" bgcolor=\"green\" > %s </td></tr>\n" "passed" >> ${LOG} || \
70                         printf "<td align=\"center\" bgcolor=\"red\" > %s </td></tr>\n" "failed" >> ${LOG} ;\
71         done
plunky
1.8
72         @for TARGET in ${REGRESS_O2_TARGETS} ;\
73         do \
74                 printf  "<tr><td bgcolor=\"#dcdcdc\"> %s </td>" " $$TARGET " >> ${LOG} ;\
75                 ${CC} ${CFLAGS} -o $$TARGET.out -O2 $$TARGET.c 2>/dev/null && \
76                         ./$$TARGET.out >/dev/null && \
77                         printf "<td align=\"center\" bgcolor=\"green\" > %s </td></tr>\n" "passed" >> ${LOG} || \
78                         printf "<td align=\"center\" bgcolor=\"red\" > %s </td></tr>\n" "failed" >> ${LOG} ;\
79         done
80         @for TARGET in ${REGRESS_PIC_TARGETS} ;\
81         do \
82                 printf  "<tr><td bgcolor=\"#dcdcdc\"> %s </td>" " $$TARGET " >> ${LOG} ;\
83                 ${CC} ${CFLAGS} -o $$TARGET.out -k $$TARGET.c 2>/dev/null && \
84                         ./$$TARGET.out >/dev/null && \
85                         printf "<td align=\"center\" bgcolor=\"green\" > %s </td></tr>\n" "passed" >> ${LOG} || \
86                         printf "<td align=\"center\" bgcolor=\"red\" > %s </td></tr>\n" "failed" >> ${LOG} ;\
87         done
plunky
1.9
88         @for TARGET in ${REGRESS_TARGETS_FAIL} ;\
faceless
1.1
89         do \
plunky
1.9
90                 printf  "<tr><td bgcolor=\"#dcdcdc\"> %s </td>" "$$TARGET" >> ${LOG} ;\
91                 ${CC} ${CFLAGS} -o $$TARGET.out $$TARGET.c 2>/dev/null && \
faceless
1.1
92                         printf "<td align=\"center\" bgcolor=\"red\" > %s </td></tr>\n" "failed" >> ${LOG} || \
93                         printf "<td align=\"center\" bgcolor=\"green\"> %s </td></tr>\n" "passed" >> ${LOG} ;\
94         done
95
96
97
98 clean:
99         /bin/rm -rf *.out 
100         /bin/rm -rf *.core
101         /bin/rm -rf ${LOG}
102
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-18 03:36 +0100