2012-10-17 13:09:16 -07:00
|
|
|
#########################################################################
|
|
|
|
# #
|
|
|
|
# OCaml #
|
|
|
|
# #
|
|
|
|
# Xavier Clerc, SED, INRIA Rocquencourt #
|
|
|
|
# #
|
|
|
|
# Copyright 2010 Institut National de Recherche en Informatique et #
|
|
|
|
# en Automatique. All rights reserved. This file is distributed #
|
|
|
|
# under the terms of the Q Public License version 1.0. #
|
|
|
|
# #
|
|
|
|
#########################################################################
|
|
|
|
|
2010-01-25 05:47:28 -08:00
|
|
|
default:
|
|
|
|
@for file in *.ml; do \
|
2014-12-21 00:26:20 -08:00
|
|
|
TERM=dumb $(OCAML) $(TOPFLAGS) <$$file 2>&1 \
|
2013-05-03 08:52:56 -07:00
|
|
|
| grep -v '^ OCaml version' > $$file.result; \
|
2010-01-25 05:47:28 -08:00
|
|
|
if [ -f $$file.principal.reference ]; then \
|
2014-12-21 00:26:20 -08:00
|
|
|
TERM=dumb $(OCAML) $(TOPFLAGS) -principal <$$file 2>&1 \
|
2013-05-03 08:52:56 -07:00
|
|
|
| grep -v '^ OCaml version' > $$file.principal.result; \
|
2010-01-25 05:47:28 -08:00
|
|
|
fi; \
|
|
|
|
done
|
|
|
|
@for file in *.reference; do \
|
2010-03-17 02:11:27 -07:00
|
|
|
printf " ... testing '$$file':"; \
|
2013-05-03 08:52:56 -07:00
|
|
|
$(DIFF) $$file `basename $$file reference`result >/dev/null \
|
|
|
|
&& echo " => passed" || echo " => failed"; \
|
2010-01-25 05:47:28 -08:00
|
|
|
done
|
|
|
|
|
2011-06-15 05:14:14 -07:00
|
|
|
promote: defaultpromote
|
|
|
|
|
2010-01-25 05:47:28 -08:00
|
|
|
clean: defaultclean
|
2010-04-07 03:15:30 -07:00
|
|
|
@rm -f *.result
|