Quick Search:

View

Revision:
Expand:  
Changeset: MAIN:ragge:20120923173159

Diff

Diff from 1.6 to:

Annotations

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

Annotated File View

ragge
1.6
1 #       $Id: Makefile,v 1.6 2012/09/23 17:31:59 ragge Exp $
faceless
1.1
2 #
3 # Makefile for pcc regression tests.
4 #
5
6 CC=pcc
7 CFLAGS= 
8 LDFLAGS=
faceless
1.4
9 LOG=gcccompat.log
faceless
1.1
10
faceless
1.4
11 REGRESS_TARGETS = attribute001 attribute002 \
faceless
1.5
12                                                 extension001 extension002 extension003 extension004 \
13                                                 extension005 extension006 extension007 extension008 \
14                                                 types001 types002 types003 
faceless
1.1
15
16 REGRESS_TARGETS_FAIL = 
17
18 test:  
faceless
1.3
19         @echo " Running gcc compatibility tests: "  
20         @for TARGET in ${REGRESS_TARGETS} ;\
21         do \
22                 printf  "   %-20s \t\t " "$$TARGET" ;\
ragge
1.6
23                 ${CC} ${CFLAGS} -o $$TARGET.out $$TARGET.c 2>/dev/null 1>&2 && \
faceless
1.3
24                         ./$$TARGET.out >/dev/null && \
25                         echo "passed" || echo "failed" ;\
26         done 
27         @for TARGET2 in ${REGRESS_TARGETS_FAIL} ;\
28         do \
29                 printf  "   %-20s \t\t " "$$TARGET2" ;\
ragge
1.6
30                 ${CC} ${CFLAGS} -o $$TARGET2.out $$TARGET2.c 2>/dev/null 1>&2 && \
faceless
1.3
31                         echo "failed" || echo "passed" ;\
32         done 
33
faceless
1.1
34
faceless
1.2
35 page:
faceless
1.4
36         @printf  "<h2> gcc compatibility tests </h2> \n" > ${LOG}
37         @printf  "<table width="300"> \n<tr><th>Test</th><th>Result</th></tr> \n" >> ${LOG}
faceless
1.3
38         @for TARGET in ${REGRESS_TARGETS} ;\
39         do \
faceless
1.4
40                 printf  "<tr><td bgcolor=\"#dcdcdc\"> %s </td>" " $$TARGET " >> ${LOG} ;\
faceless
1.3
41                 ${CC} ${CFLAGS} -o $$TARGET.out $$TARGET.c 2>/dev/null && \
42                         ./$$TARGET.out >/dev/null && \
faceless
1.4
43                         printf "<td align=\"center\" bgcolor=\"green\" > %s </td></tr>\n" "passed" >> ${LOG} || \
44                         printf "<td align=\"center\" bgcolor=\"red\" > %s </td></tr>\n" "failed" >> ${LOG} ;\
faceless
1.3
45         done
46         @for TARGET2 in ${REGRESS_TARGETS_FAIL} ;\
47         do \
faceless
1.4
48                 printf  "<tr><td bgcolor=\"#dcdcdc\"> %s </td>" "$$TARGET2" >> ${LOG} ;\
faceless
1.3
49                 ${CC} ${CFLAGS} -o $$TARGET2.out $$TARGET2.c 2>/dev/null && \
faceless
1.4
50                         printf "<td align=\"center\" bgcolor=\"red\" > %s </td></tr>\n" "failed" >> ${LOG} || \
51                         printf "<td align=\"center\" bgcolor=\"green\"> %s </td></tr>\n" "passed" >> ${LOG}  ;\
faceless
1.3
52         done
faceless
1.4
53         @printf "</table>\n" >> ${LOG}
faceless
1.2
54
55
56
faceless
1.1
57 clean:
58         /bin/rm -rf *.out 
59         /bin/rm -rf *.core
faceless
1.4
60         /bin/rm -rf ${LOG}
faceless
1.1
61
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 02:24 +0200