Quick Search:

View

Revision:
Expand:  
Changeset: MAIN:plunky:20140606115441

Diff

Diff from 1.5 to:

Annotations

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

Annotated File View

plunky
1.5
1 #       $Id: Makefile,v 1.5 2014/06/06 11:54:41 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 \
plunky
1.5
13                                                 ucn001  \
faceless
1.3
14                                                 func001 
faceless
1.1
15
16 REGRESS_TARGETS_FAIL = 
17
18 test:  
19         @echo " Running misc tests: "  
20         @for TARGET in ${REGRESS_TARGETS} ;\
21         do \
22                 printf  "   %-20s \t\t " "$$TARGET" ;\
23                 ${CC} ${CFLAGS} -o $$TARGET.out $$TARGET.c 2>/dev/null && \
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" ;\
30                 ${CC} ${CFLAGS} -o $$TARGET2.out $$TARGET2.c 2>/dev/null && \
31                         echo "failed" || echo "passed" ;\
32         done 
faceless
1.2
33         @cd shlib && ${MAKE} clean 
34         @printf  "   %-20s \t\t " "shlib1" ;
35         @cd shlib && ${MAKE} combined_check 2>/dev/null && \
36                         echo "passed" || echo "failed" ;
37         @printf  "   %-20s \t\t " "shlib2" ;
38         @cd shlib && ${MAKE} static_check 2>/dev/null && \
39                         echo "passed" || echo "failed" ;
40         @printf  "   %-20s \t\t " "shlib3" ;
41         @cd shlib && ${MAKE} shared_check 2>/dev/null && \
42                         echo "passed" || echo "failed" ;
43
faceless
1.1
44
45
46 page:
47         @printf  "<h2> misc tests </h2> \n" > ${LOG}
48         @printf  "<table width="300"> \n<tr><th>Test</th><th>Result</th></tr> \n" >> ${LOG}
49         @for TARGET in ${REGRESS_TARGETS} ;\
50         do \
51                 printf  "<tr><td bgcolor=\"#dcdcdc\"> %s </td>" " $$TARGET " >> ${LOG} ;\
52                 ${CC} ${CFLAGS} -o $$TARGET.out $$TARGET.c 2>/dev/null && \
53                         ./$$TARGET.out >/dev/null && \
54                         printf "<td align=\"center\" bgcolor=\"green\" > %s </td></tr>\n" "passed" >> ${LOG} || \
55                         printf "<td align=\"center\" bgcolor=\"red\" > %s </td></tr>\n" "failed" >> ${LOG} ;\
56         done
57         @for TARGET2 in ${REGRESS_TARGETS_FAIL} ;\
58         do \
59                 printf  "<tr><td bgcolor=\"#dcdcdc\"> %s </td>" "$$TARGET2" >> ${LOG} ;\
60                 ${CC} ${CFLAGS} -o $$TARGET2.out $$TARGET2.c 2>/dev/null && \
61                         printf "<td align=\"center\" bgcolor=\"red\" > %s </td></tr>\n" "failed" >> ${LOG} || \
62                         printf "<td align=\"center\" bgcolor=\"green\"> %s </td></tr>\n" "passed" >> ${LOG}  ;\
63         done
faceless
1.2
64         @cd shlib && ${MAKE} clean 
65         @printf  "<tr><td bgcolor=\"#dcdcdc\"> %s </td>" "shlib1" >> ${LOG} ; 
66         @cd shlib && ${MAKE} combined_check 1>/dev/null 2>/dev/null && \
67                         printf "<td align=\"center\" bgcolor=\"green\" > %s </td></tr>\n" "passed" >> ../${LOG} || \
68                         printf "<td align=\"center\" bgcolor=\"red\" > %s </td></tr>\n" "failed" >> ../${LOG} ;
69         @printf  "<tr><td bgcolor=\"#dcdcdc\"> %s </td>" "shlib2" >> ${LOG} ;
70         @cd shlib && ${MAKE} static_check 1>/dev/null 2>/dev/null && \
71                         printf "<td align=\"center\" bgcolor=\"green\" > %s </td></tr>\n" "passed" >> ../${LOG} || \
72                         printf "<td align=\"center\" bgcolor=\"red\" > %s </td></tr>\n" "failed" >> ../${LOG} ;
73         @printf  "<tr><td bgcolor=\"#dcdcdc\"> %s </td>" "shlib3" >> ${LOG} ;
74         @cd shlib && ${MAKE} shared_check 1>/dev/null 2>/dev/null && \
75                         printf "<td align=\"center\" bgcolor=\"green\" > %s </td></tr>\n" "passed" >> ../${LOG} || \
76                         printf "<td align=\"center\" bgcolor=\"red\" > %s </td></tr>\n" "failed" >> ../${LOG} ;
faceless
1.1
77         @printf "</table>\n" >> ${LOG}
78
79
80
81 clean:
faceless
1.2
82         cd shlib && ${MAKE} clean 
faceless
1.1
83         /bin/rm -rf *.out 
84         /bin/rm -rf *.core
85         /bin/rm -rf ${LOG}
86
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-02 06:23 +0200