source: src/Tests/SynTree/make-rules @ ecb1534

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newstringwith_gc
Last change on this file since ecb1534 was 843054c2, checked in by Peter A. Buhr <pabuhr@…>, 10 years ago

licencing: seventh groups of files

  • Property mode set to 100644
File size: 494 bytes
Line 
1CFA = ../../cfa-cpp
2
3DIFF = diff#/software/gnu/bin/diff
4
5# Basic SynTree printing
6EXPECTED := ${wildcard $(EXPECTDIR)/*.tst}
7TESTS := $(EXPECTED:$(EXPECTDIR)/%=$(OUTPUTDIR)/%)
8TEST_IN := $(TESTS:.tst=.c)
9
10$(OUTPUTDIR)/%.tst:%.c $(CFA)
11        $(CFA) $(CFAOPT) < $< > $@ 2>&1
12
13$(OUTPUTDIR)/report: $(TESTS) $(EXPECTED)
14        rm -f $@
15        @for i in $(TESTS); do \
16          echo "---"`basename $$i`"---" | tee -a $@; \
17          $(DIFF) -B -w $(EXPECTDIR)/`basename $$i` $$i | tee -a $@; \
18        done
19
20clean:
21        rm -rf $(OUTPUTDIR)
Note: See TracBrowser for help on using the repository browser.