summaryrefslogtreecommitdiffstats
path: root/testsuite/makefiles/Makefile.toplevel
blob: 532763f431c9449f58fa2e74ec85d42657893e3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# $Id$

default:
	@for file in *.ml; do \
	  $(OCAML) < $$file 2>&1 | grep -v '^        OCaml version' > $$file.result; \
	  if [ -f $$file.principal.reference ]; then \
	    $(OCAML) -principal < $$file 2>&1 | grep -v '^        OCaml version' > $$file.principal.result; \
	  fi; \
	done
	@for file in *.reference; do \
	  printf " ... testing '$$file':"; \
	  $(DIFF) $$file `basename $$file reference`result || (echo " => failed" && exit 1) && echo " => passed"; \
	done

promote: defaultpromote

clean: defaultclean
	@rm -f *.result