Source

mutated_ocaml / testsuite / makefiles / Makefile.toplevel

Full commit
# $Id: Makefile.toplevel 11965 2011-12-28 08:47:03Z xleroy $

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