Quick Search:

Mode

Context

Displaying the whole file. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.8
 
1.9
 
MAIN:plunky:20140606191443
 
Makefile
_>11 #       $Id$
 22 #
 33 # Makefile for pcc regression tests.
 44 #
 55 
 66 CC=pcc
 77 CFLAGS=
 88 LDFLAGS=
 99 LOG=jira.log
 1010 
 1111 REGRESS_TARGETS =       PCC-21 PCC-23 PCC-33 PCC-45 PCC-47 PCC-57 \
 1212                         PCC-62 PCC-63 PCC-65 PCC-68 PCC-69 PCC-70 PCC-77 \
 1313                         PCC-84 PCC-85 PCC-97 PCC-101 PCC-123 PCC-125 \
 1414                         PCC-129 PCC-131 PCC-135 PCC-138 PCC-149 PCC-152 \
 1515                         PCC-154 PCC-155 PCC-157 PCC-158 PCC-159 \
 1616                         PCC-160 PCC-165 PCC-169 PCC-170 PCC-176 PCC-179 \
 1717                         PCC-180 PCC-182 PCC-183 PCC-185 PCC-187 PCC-189 \
<>18 -                        PCC-190 \
  18+                        PCC-190 PCC-191 PCC-192 PCC-193 PCC-195 PCC-196 \
  19+                        PCC-197 PCC-200 \
1920                         PCC-376 PCC-377 PCC-378 \
 2021                         PCC-380 PCC-382 PCC-383 PCC-385
 2122 
<>22 -REGRESS_O2_TARGETS =    PCC-177 PCC-178 PCC-184
  23+REGRESS_O2_TARGETS =    PCC-177 PCC-178 PCC-184 PCC-194
2324 
 2425 REGRESS_PIC_TARGETS =   PCC-186
 2526 
 2627 REGRESS_TARGETS_FAIL =  PCC-161
 2728 
 2829 test: 
 2930         @echo " Running tests from jira bug tracker : " 
 3031         @for TARGET in ${REGRESS_TARGETS} ;\
 3132         do \
 3233                 printf  "   %-20s \t\t " "$$TARGET" ;\
 3334                 ${CC} ${CFLAGS} -o $$TARGET.out $$TARGET.c 2>/dev/null 1>&2 && \
 3435                         ./$$TARGET.out >/dev/null && \
 3536                         echo "passed" || echo "failed" ;\
 3637         done
 3738         @for TARGET in ${REGRESS_O2_TARGETS} ;\
 3839         do \
 3940                 printf  "   %-20s \t\t " "$$TARGET" ;\
 4041                 ${CC} ${CFLAGS} -o $$TARGET.out -O2 $$TARGET.c 2>/dev/null 1>&2 && \
 4142                         ./$$TARGET.out >/dev/null && \
 4243                         echo "passed" || echo "failed" ;\
 4344         done
 4445         @for TARGET in ${REGRESS_PIC_TARGETS} ;\
 4546         do \
 4647                 printf  "   %-20s \t\t " "$$TARGET" ;\
 4748                 ${CC} ${CFLAGS} -o $$TARGET.out -k $$TARGET.c 2>/dev/null 1>&2 && \
 4849                         ./$$TARGET.out >/dev/null && \
 4950                         echo "passed" || echo "failed" ;\
 5051         done
<>51 -        @for TARGET2 in ${REGRESS_TARGETS_FAIL} ;\
  52+        @for TARGET in ${REGRESS_TARGETS_FAIL} ;\
5253         do \
<>53 -                printf  "   %-20s \t\t " "$$TARGET2" ;\
 54 -                ${CC} ${CFLAGS} -o $$TARGET2.out $$TARGET2.c 2>/dev/null 1>&2 && \
  54+                printf  "   %-20s \t\t " "$$TARGET" ;\
  55+                ${CC} ${CFLAGS} -o $$TARGET.out $$TARGET.c 2>/dev/null 1>&2 && \
5556                         echo "failed" || echo "passed" ;\
 5657         done
 5758 
 5859 
 5960 
 6061 page:
 6162         @printf  "<h2> jira bug tracker tests </h2> \n" > ${LOG}
 6263         @printf  "<table width="300"> \n<tr><th>Test</th><th>Result</th></tr> \n" >> ${LOG}
 6364         @for TARGET in ${REGRESS_TARGETS} ;\
 6465         do \
 6566                 printf  "<tr><td bgcolor=\"#dcdcdc\"> %s </td>" " $$TARGET " >> ${LOG} ;\
 6667                 ${CC} ${CFLAGS} -o $$TARGET.out $$TARGET.c 2>/dev/null && \
 6768                         ./$$TARGET.out >/dev/null && \
 6869                         printf "<td align=\"center\" bgcolor=\"green\" > %s </td></tr>\n" "passed" >> ${LOG} || \
 6970                         printf "<td align=\"center\" bgcolor=\"red\" > %s </td></tr>\n" "failed" >> ${LOG} ;\
 7071         done
 7172         @for TARGET in ${REGRESS_O2_TARGETS} ;\
 7273         do \
 7374                 printf  "<tr><td bgcolor=\"#dcdcdc\"> %s </td>" " $$TARGET " >> ${LOG} ;\
 7475                 ${CC} ${CFLAGS} -o $$TARGET.out -O2 $$TARGET.c 2>/dev/null && \
 7576                         ./$$TARGET.out >/dev/null && \
 7677                         printf "<td align=\"center\" bgcolor=\"green\" > %s </td></tr>\n" "passed" >> ${LOG} || \
 7778                         printf "<td align=\"center\" bgcolor=\"red\" > %s </td></tr>\n" "failed" >> ${LOG} ;\
 7879         done
 7980         @for TARGET in ${REGRESS_PIC_TARGETS} ;\
 8081         do \
 8182                 printf  "<tr><td bgcolor=\"#dcdcdc\"> %s </td>" " $$TARGET " >> ${LOG} ;\
 8283                 ${CC} ${CFLAGS} -o $$TARGET.out -k $$TARGET.c 2>/dev/null && \
 8384                         ./$$TARGET.out >/dev/null && \
 8485                         printf "<td align=\"center\" bgcolor=\"green\" > %s </td></tr>\n" "passed" >> ${LOG} || \
 8586                         printf "<td align=\"center\" bgcolor=\"red\" > %s </td></tr>\n" "failed" >> ${LOG} ;\
 8687         done
<>87 -        @for TARGET2 in ${REGRESS_TARGETS_FAIL} ;\
  88+        @for TARGET in ${REGRESS_TARGETS_FAIL} ;\
8889         do \
<>89 -                printf  "<tr><td bgcolor=\"#dcdcdc\"> %s </td>" "$$TARGET2" >> ${LOG} ;\
 90 -                ${CC} ${CFLAGS} -o $$TARGET2.out $$TARGET2.c 2>/dev/null && \
  90+                printf  "<tr><td bgcolor=\"#dcdcdc\"> %s </td>" "$$TARGET" >> ${LOG} ;\
  91+                ${CC} ${CFLAGS} -o $$TARGET.out $$TARGET.c 2>/dev/null && \
<_9192                         printf "<td align=\"center\" bgcolor=\"red\" > %s </td></tr>\n" "failed" >> ${LOG} || \
 9293                         printf "<td align=\"center\" bgcolor=\"green\"> %s </td></tr>\n" "passed" >> ${LOG} ;\
 9394         done
 9495 
 9596 
 9697 
 9798 clean:
 9899         /bin/rm -rf *.out
 99100         /bin/rm -rf *.core
 100101         /bin/rm -rf ${LOG}
 101102 
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-02 08:24 +0200