Quick Search:

View

Revision:
Expand:  
Changeset: MAIN:plunky:20140606115525

Diff

Diff from 1.8 to:

Annotations

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

Annotated File View

plunky
1.8
1 #       $Id: Makefile,v 1.8 2014/06/06 11:55:25 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 \
18                         PCC-190 \
plunky
1.6
19                         PCC-376 PCC-377 PCC-378 \
20                         PCC-380 PCC-382 PCC-383 PCC-385
faceless
1.1
21
plunky
1.8
22 REGRESS_O2_TARGETS =    PCC-177 PCC-178 PCC-184
23
24 REGRESS_PIC_TARGETS =   PCC-186
25
26 REGRESS_TARGETS_FAIL =  PCC-161 
faceless
1.1
27
28 test:  
29         @echo " Running tests from jira bug tracker : "  
30         @for TARGET in ${REGRESS_TARGETS} ;\
31         do \
32                 printf  "   %-20s \t\t " "$$TARGET" ;\
ragge
1.7
33                 ${CC} ${CFLAGS} -o $$TARGET.out $$TARGET.c 2>/dev/null 1>&2 && \
faceless
1.1
34                         ./$$TARGET.out >/dev/null && \
35                         echo "passed" || echo "failed" ;\
36         done 
plunky
1.8
37         @for TARGET in ${REGRESS_O2_TARGETS} ;\
38         do \
39                 printf  "   %-20s \t\t " "$$TARGET" ;\
40                 ${CC} ${CFLAGS} -o $$TARGET.out -O2 $$TARGET.c 2>/dev/null 1>&2 && \
41                         ./$$TARGET.out >/dev/null && \
42                         echo "passed" || echo "failed" ;\
43         done 
44         @for TARGET in ${REGRESS_PIC_TARGETS} ;\
45         do \
46                 printf  "   %-20s \t\t " "$$TARGET" ;\
47                 ${CC} ${CFLAGS} -o $$TARGET.out -k $$TARGET.c 2>/dev/null 1>&2 && \
48                         ./$$TARGET.out >/dev/null && \
49                         echo "passed" || echo "failed" ;\
50         done 
faceless
1.1
51         @for TARGET2 in ${REGRESS_TARGETS_FAIL} ;\
52         do \
53                 printf  "   %-20s \t\t " "$$TARGET2" ;\
ragge
1.7
54                 ${CC} ${CFLAGS} -o $$TARGET2.out $$TARGET2.c 2>/dev/null 1>&2 && \
faceless
1.1
55                         echo "failed" || echo "passed" ;\
56         done 
plunky
1.8
57
faceless
1.1
58
59
60 page:
61         @printf  "<h2> jira bug tracker tests </h2> \n" > ${LOG}
62         @printf  "<table width="300"> \n<tr><th>Test</th><th>Result</th></tr> \n" >> ${LOG}
63         @for TARGET in ${REGRESS_TARGETS} ;\
64         do \
65                 printf  "<tr><td bgcolor=\"#dcdcdc\"> %s </td>" " $$TARGET " >> ${LOG} ;\
66                 ${CC} ${CFLAGS} -o $$TARGET.out $$TARGET.c 2>/dev/null && \
67                         ./$$TARGET.out >/dev/null && \
68                         printf "<td align=\"center\" bgcolor=\"green\" > %s </td></tr>\n" "passed" >> ${LOG} || \
69                         printf "<td align=\"center\" bgcolor=\"red\" > %s </td></tr>\n" "failed" >> ${LOG} ;\
70         done
plunky
1.8
71         @for TARGET in ${REGRESS_O2_TARGETS} ;\
72         do \
73                 printf  "<tr><td bgcolor=\"#dcdcdc\"> %s </td>" " $$TARGET " >> ${LOG} ;\
74                 ${CC} ${CFLAGS} -o $$TARGET.out -O2 $$TARGET.c 2>/dev/null && \
75                         ./$$TARGET.out >/dev/null && \
76                         printf "<td align=\"center\" bgcolor=\"green\" > %s </td></tr>\n" "passed" >> ${LOG} || \
77                         printf "<td align=\"center\" bgcolor=\"red\" > %s </td></tr>\n" "failed" >> ${LOG} ;\
78         done
79         @for TARGET in ${REGRESS_PIC_TARGETS} ;\
80         do \
81                 printf  "<tr><td bgcolor=\"#dcdcdc\"> %s </td>" " $$TARGET " >> ${LOG} ;\
82                 ${CC} ${CFLAGS} -o $$TARGET.out -k $$TARGET.c 2>/dev/null && \
83                         ./$$TARGET.out >/dev/null && \
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} ;\
86         done
faceless
1.1
87         @for TARGET2 in ${REGRESS_TARGETS_FAIL} ;\
88         do \
89                 printf  "<tr><td bgcolor=\"#dcdcdc\"> %s </td>" "$$TARGET2" >> ${LOG} ;\
90                 ${CC} ${CFLAGS} -o $$TARGET2.out $$TARGET2.c 2>/dev/null && \
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} ;\
93         done
94
95
96
97 clean:
98         /bin/rm -rf *.out 
99         /bin/rm -rf *.core
100         /bin/rm -rf ${LOG}
101
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-11-01 07:16 +0100