Quick Search:

View

Revision:
Expand:  
Changeset: MAIN:ragge:20120923173159

Diff

Diff from 1.2 to:

Annotations

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

Annotated File View

ragge
1.2
1 #       $Id: Makefile,v 1.2 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=
9 LOG=obsd.log
10
11 REGRESS_TARGETS = arith001 const001 darray001 enum001 \
12                                                 init001 init002 init003 init004 \
13                                                 switch001
14
15 REGRESS_TARGETS_FAIL = init999 switch999 switch998 
16
17 test:  
18         @echo " Running OpenBSD tests: "  
19         @for TARGET in ${REGRESS_TARGETS} ;\
20         do \
21                 printf  "   %-20s \t\t " "$$TARGET" ;\
ragge
1.2
22                 ${CC} ${CFLAGS} -o $$TARGET.out $$TARGET.c 2>/dev/null 1>&2 && \
faceless
1.1
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" ;\
ragge
1.2
29                 ${CC} ${CFLAGS} -o $$TARGET2.out $$TARGET2.c 2>/dev/null 1>&2 && \
faceless
1.1
30                         echo "failed" || echo "passed" ;\
31         done 
32
33
34 page:
35         @printf  "<h2> OpenBSD tests </h2> \n" > ${LOG}
36         @printf  "<table width="300"> \n<tr><th>Test</th><th>Result</th></tr> \n" >> ${LOG}
37         @for TARGET in ${REGRESS_TARGETS} ;\
38         do \
39                 printf  "<tr><td bgcolor=\"#dcdcdc\"> %s </td>" " $$TARGET " >> ${LOG} ;\
40                 ${CC} ${CFLAGS} -o $$TARGET.out $$TARGET.c 2>/dev/null && \
41                         ./$$TARGET.out >/dev/null && \
42                         printf "<td align=\"center\" bgcolor=\"green\" > %s </td></tr>\n" "passed" >> ${LOG} || \
43                         printf "<td align=\"center\" bgcolor=\"red\" > %s </td></tr>\n" "failed" >> ${LOG} ;\
44         done
45         @for TARGET2 in ${REGRESS_TARGETS_FAIL} ;\
46         do \
47                 printf  "<tr><td bgcolor=\"#dcdcdc\"> %s </td>" "$$TARGET2" >> ${LOG} ;\
48                 ${CC} ${CFLAGS} -o $$TARGET2.out $$TARGET2.c 2>/dev/null && \
49                         printf "<td align=\"center\" bgcolor=\"red\" > %s </td></tr>\n" "failed" >> ${LOG} || \
50                         printf "<td align=\"center\" bgcolor=\"green\"> %s </td></tr>\n" "passed" >> ${LOG}  ;\
51         done
52         @printf "</table>\n" >> ${LOG}
53
54
55
56 clean:
57         /bin/rm -rf *.out 
58         /bin/rm -rf *.core
59         /bin/rm -rf ${LOG}
60
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-30 14:03 +0100