Quick Search:

View

Revision:
Expand:  
Changeset: MAIN:plunky:20111110193452

Diff

Diff from 1.4 to:

Annotations

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

Annotated File View

plunky
1.4
1 #       $Id: Makefile,v 1.4 2011/11/10 19:34:52 plunky Exp $
faceless
1.1
2 #
3 # Makefile for pcc regression tests.
4 #
5
6 CC=pcc
7 CFLAGS= 
8 LDFLAGS=
9 LOG=misc.log
faceless
1.2
10 MAKE=make
faceless
1.1
11
plunky
1.4
12 REGRESS_TARGETS = arith001 \
faceless
1.3
13                                                 func001 
faceless
1.1
14
15 REGRESS_TARGETS_FAIL = 
16
17 test:  
18         @echo " Running misc tests: "  
19         @for TARGET in ${REGRESS_TARGETS} ;\
20         do \
21                 printf  "   %-20s \t\t " "$$TARGET" ;\
22                 ${CC} ${CFLAGS} -o $$TARGET.out $$TARGET.c 2>/dev/null && \
23                         ./$$TARGET.out >/dev/null && \
24                         echo "passed" || echo "failed" ;\
25         done 
26         @for TARGET2 in ${REGRESS_TARGETS_FAIL} ;\
27         do \
28                 printf  "   %-20s \t\t " "$$TARGET2" ;\
29                 ${CC} ${CFLAGS} -o $$TARGET2.out $$TARGET2.c 2>/dev/null && \
30                         echo "failed" || echo "passed" ;\
31         done 
faceless
1.2
32         @cd shlib && ${MAKE} clean 
33         @printf  "   %-20s \t\t " "shlib1" ;
34         @cd shlib && ${MAKE} combined_check 2>/dev/null && \
35                         echo "passed" || echo "failed" ;
36         @printf  "   %-20s \t\t " "shlib2" ;
37         @cd shlib && ${MAKE} static_check 2>/dev/null && \
38                         echo "passed" || echo "failed" ;
39         @printf  "   %-20s \t\t " "shlib3" ;
40         @cd shlib && ${MAKE} shared_check 2>/dev/null && \
41                         echo "passed" || echo "failed" ;
42
faceless
1.1
43
44
45 page:
46         @printf  "<h2> misc 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         @cd shlib && ${MAKE} clean 
64         @printf  "<tr><td bgcolor=\"#dcdcdc\"> %s </td>" "shlib1" >> ${LOG} ; 
65         @cd shlib && ${MAKE} combined_check 1>/dev/null 2>/dev/null && \
66                         printf "<td align=\"center\" bgcolor=\"green\" > %s </td></tr>\n" "passed" >> ../${LOG} || \
67                         printf "<td align=\"center\" bgcolor=\"red\" > %s </td></tr>\n" "failed" >> ../${LOG} ;
68         @printf  "<tr><td bgcolor=\"#dcdcdc\"> %s </td>" "shlib2" >> ${LOG} ;
69         @cd shlib && ${MAKE} static_check 1>/dev/null 2>/dev/null && \
70                         printf "<td align=\"center\" bgcolor=\"green\" > %s </td></tr>\n" "passed" >> ../${LOG} || \
71                         printf "<td align=\"center\" bgcolor=\"red\" > %s </td></tr>\n" "failed" >> ../${LOG} ;
72         @printf  "<tr><td bgcolor=\"#dcdcdc\"> %s </td>" "shlib3" >> ${LOG} ;
73         @cd shlib && ${MAKE} shared_check 1>/dev/null 2>/dev/null && \
74                         printf "<td align=\"center\" bgcolor=\"green\" > %s </td></tr>\n" "passed" >> ../${LOG} || \
75                         printf "<td align=\"center\" bgcolor=\"red\" > %s </td></tr>\n" "failed" >> ../${LOG} ;
faceless
1.1
76         @printf "</table>\n" >> ${LOG}
77
78
79
80 clean:
faceless
1.2
81         cd shlib && ${MAKE} clean 
faceless
1.1
82         /bin/rm -rf *.out 
83         /bin/rm -rf *.core
84         /bin/rm -rf ${LOG}
85
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-09-03 09:06 +0200