Quick Search:

View

Revision:
Expand:  
Changeset: MAIN:ragge:20120922094308

Diff

Diff from 1.7 to:

Annotations

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

Annotated File View

ragge
1.7
1 #       $Id: Makefile,v 1.7 2012/09/22 09:43:08 ragge 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 \
15                         PCC-154 PCC-155 PCC-157 PCC-158 \
16                         PCC-160 PCC-165 PCC-169 PCC-170 PCC-176 \
17                         PCC-376 PCC-377 PCC-378 \
18                         PCC-380 PCC-382 PCC-383 PCC-385
faceless
1.1
19
ragge
1.5
20 REGRESS_TARGETS_FAIL = PCC-161 
faceless
1.1
21
22 test:  
23         @echo " Running tests from jira bug tracker : "  
24         @for TARGET in ${REGRESS_TARGETS} ;\
25         do \
26                 printf  "   %-20s \t\t " "$$TARGET" ;\
ragge
1.7
27                 ${CC} ${CFLAGS} -o $$TARGET.out $$TARGET.c 2>/dev/null 1>&2 && \
faceless
1.1
28                         ./$$TARGET.out >/dev/null && \
29                         echo "passed" || echo "failed" ;\
30         done 
31         @for TARGET2 in ${REGRESS_TARGETS_FAIL} ;\
32         do \
33                 printf  "   %-20s \t\t " "$$TARGET2" ;\
ragge
1.7
34                 ${CC} ${CFLAGS} -o $$TARGET2.out $$TARGET2.c 2>/dev/null 1>&2 && \
faceless
1.1
35                         echo "failed" || echo "passed" ;\
36         done 
faceless
1.2
37         @printf  "   %-20s \t\t " "PCC-70" ;
38         @${CC} ${CFLAGS} -o PCC-70.out -c PCC-70.c 2>/dev/null && \
39                 echo "passed" || echo "failed" ;
40         @printf  "   %-20s \t\t " "PCC-159" ;
faceless
1.3
41         @${CC} ${CFLAGS} -o PCC-159.out -c PCC-159.c 2>/dev/null && \
faceless
1.2
42                 echo "passed" || echo "failed" ;
faceless
1.1
43
44
45 page:
46         @printf  "<h2> jira bug tracker tests </h2> \n" > ${LOG}
47         @printf  "<table width="300"> \n<tr><th>Test</th><th>Result</th></tr> \n" >> ${LOG}
48         @for TARGET in ${REGRESS_TARGETS} ;\
49         do \
50                 printf  "<tr><td bgcolor=\"#dcdcdc\"> %s </td>" " $$TARGET " >> ${LOG} ;\
51                 ${CC} ${CFLAGS} -o $$TARGET.out $$TARGET.c 2>/dev/null && \
52                         ./$$TARGET.out >/dev/null && \
53                         printf "<td align=\"center\" bgcolor=\"green\" > %s </td></tr>\n" "passed" >> ${LOG} || \
54                         printf "<td align=\"center\" bgcolor=\"red\" > %s </td></tr>\n" "failed" >> ${LOG} ;\
55         done
56         @for TARGET2 in ${REGRESS_TARGETS_FAIL} ;\
57         do \
58                 printf  "<tr><td bgcolor=\"#dcdcdc\"> %s </td>" "$$TARGET2" >> ${LOG} ;\
59                 ${CC} ${CFLAGS} -o $$TARGET2.out $$TARGET2.c 2>/dev/null && \
60                         printf "<td align=\"center\" bgcolor=\"red\" > %s </td></tr>\n" "failed" >> ${LOG} || \
61                         printf "<td align=\"center\" bgcolor=\"green\"> %s </td></tr>\n" "passed" >> ${LOG} ;\
62         done
faceless
1.2
63         @printf  "<tr><td bgcolor=\"#dcdcdc\"> %s </td>" " PCC-70 " >> ${LOG} ;
64         @${CC} ${CFLAGS} -o PCC-70.out -c PCC-70.c 2>/dev/null && \
65                 printf "<td align=\"center\" bgcolor=\"green\" > %s </td></tr>\n" "passed" >> ${LOG} || \
66                 printf "<td align=\"center\" bgcolor=\"red\" > %s </td></tr>\n" "failed" >> ${LOG} ;
67         @printf  "<tr><td bgcolor=\"#dcdcdc\"> %s </td>" " PCC-159 " >> ${LOG} ;
68         @${CC} ${CFLAGS} -o PCC-159.out -c PCC-159.c 2>/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} ;
faceless
1.1
71         @printf "</table>\n" >> ${LOG}
72
73
74
75 clean:
76         /bin/rm -rf *.out 
77         /bin/rm -rf *.core
78         /bin/rm -rf ${LOG}
79
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-10-01 10:17 +0200