ADT
aaron-thesis
arm-eh
ast-experimental
cleanup-dtors
deferred_resn
demangler
enum
forall-pointer-decay
jacob/cs343-translation
jenkins-sandbox
new-ast
new-ast-unique-expr
new-env
no_list
persistent-indexer
pthread-emulation
qualifiedEnum
resolv-new
with_gc
Last change
on this file since df7a162 was ca26509, checked in by Peter A. Buhr <pabuhr@…>, 9 years ago |
relocate and delete example programs under Test directory to test/examples directories
|
-
Property mode
set to
100644
|
File size:
1007 bytes
|
Line | |
---|
1 | CFA ?= ../driver/cfa-cpp
|
---|
2 | CFAOPT ?= -a
|
---|
3 | OUTPUT ?= Output
|
---|
4 | EXPECT ?= Expect
|
---|
5 | OUTPUTDIR ?= ${OUTPUT}${CFAOPT}
|
---|
6 | EXPECTDIR ?= ${EXPECT}${CFAOPT}
|
---|
7 | EXAMPLES = ${wildcard *.c}
|
---|
8 | OUTPUTS = ${addprefix ${OUTPUTDIR}/,${EXAMPLES:.c=.txt}}
|
---|
9 |
|
---|
10 | #.SILENT :
|
---|
11 |
|
---|
12 | all :
|
---|
13 | +for opt in -a -e -f -r -s -v ; do \
|
---|
14 | make test CFAOPT=$${opt} ; \
|
---|
15 | done ; \
|
---|
16 | rm -f core
|
---|
17 |
|
---|
18 | test : ${OUTPUTS} ${OUTPUTDIR}/report
|
---|
19 |
|
---|
20 | ${OUTPUTDIR}/%.txt : %.c ${CFA} Makefile
|
---|
21 | -${CFA} -n ${CFAOPT} $< > $@ 2>&1
|
---|
22 |
|
---|
23 | ${OUTPUTDIR}/report : ${OUTPUTS} ${EXPECTDIR}
|
---|
24 | rm -f $@
|
---|
25 | echo "===== regression test using cfa-cpp flag ${CFAOPT} ====="
|
---|
26 | @for i in ${OUTPUTS} ; do \
|
---|
27 | echo "---"`basename $$i`"---" | tee -a $@; \
|
---|
28 | diff -B -w ${EXPECTDIR}/`basename $$i` $$i | tee -a $@; \
|
---|
29 | done
|
---|
30 |
|
---|
31 | ${OUTPUTS} : | ${OUTPUTDIR} # order only prerequisite
|
---|
32 |
|
---|
33 | ${OUTPUTDIR} :
|
---|
34 | mkdir -p $@
|
---|
35 |
|
---|
36 | # remove the expected results directories to generate new ones from the current output
|
---|
37 |
|
---|
38 | ${EXPECTDIR} : | ${OUTPUTS} # new Expected results ?
|
---|
39 | cp -pr ${OUTPUTDIR} $@
|
---|
40 |
|
---|
41 | clean :
|
---|
42 | rm -rf ${OUTPUT}-* core
|
---|
Note:
See
TracBrowser
for help on using the repository browser.