Skip to content
Snippets Groups Projects
Commit 6430037e authored by Erwan Jahier's avatar Erwan Jahier
Browse files

update the release to take into account the new places for test files.

parent 9ba1deca
No related branches found
No related tags found
No related merge requests found
...@@ -22,7 +22,7 @@ LIBS = str unix ...@@ -22,7 +22,7 @@ LIBS = str unix
OCAMLC=ocamlc OCAMLC=ocamlc
OCAMLOPT=ocamlopt OCAMLOPT=ocamlopt
ifeq ($(HOSTTYPE),cross-win32) ifeq ($(HOSTTYPE),win32)
OCAMLC=/usr/i586-mingw32msvc/bin/ocamlc OCAMLC=/usr/i586-mingw32msvc/bin/ocamlc
OCAMLOPT=/usr/i586-mingw32msvc/bin/ocamlopt OCAMLOPT=/usr/i586-mingw32msvc/bin/ocamlopt
OCAMLDEP=/usr/i586-mingw32msvc/bin/ocamldep OCAMLDEP=/usr/i586-mingw32msvc/bin/ocamldep
......
OBJDIR=./obj$(HOSTTYPE)
LIC2CDIR=~/lic2loc LIC2CDIR=~/lic2loc
LUS2LICDIR=~/lus2lic LUS2LICDIR=~/lus2lic
LUS2LIC=$(LUS2LICDIR)/src/lus2lic LUS2LIC=$(LUS2LICDIR)/$(OBJDIR)/lus2lic
WWW_DIR=/import/www/DIST-TOOLS/SYNCHRONE/lustre-v6 WWW_DIR=/import/www/DIST-TOOLS/SYNCHRONE/lustre-v6
ifeq ($(HOSTTYPE),cygwin) ifeq ($(HOSTTYPE),cygwin)
WWW_DIR=//ARPONT/www-verimag/DIST-TOOLS/SYNCHRONE/lustre-v6 WWW_DIR=//ARPONT/www-verimag/DIST-TOOLS/SYNCHRONE/lustre-v6
endif endif
VERSION=R0.$(shell $(LUS2LIC) -version | cut -d "." -f 2) VERSION=R0.$(shell $(LUS2LIC) -version | cut -d " " -f 1 | cut -d "." -f 2)
RELNAME_PREFIX=lv6-alpha-$(VERSION) RELNAME_PREFIX=lv6-alpha-$(VERSION)
...@@ -35,7 +37,7 @@ doc: ...@@ -35,7 +37,7 @@ doc:
cp $(LUS2LICDIR)/utils/lustre.el $(RELNAME)/utils cp $(LUS2LICDIR)/utils/lustre.el $(RELNAME)/utils
lus2lic: lus2lic:
cd $(LUS2LICDIR)/src ; make nc cd $(LUS2LICDIR)/ ; make nc
cp $(LUS2LIC) $(RELNAME)/bin/ cp $(LUS2LIC) $(RELNAME)/bin/
lus2licbc: lus2licbc:
...@@ -47,6 +49,27 @@ lic2c: ...@@ -47,6 +49,27 @@ lic2c:
cp $(LIC2CDIR)/src/lic2c $(RELNAME)/bin/ cp $(LIC2CDIR)/src/lic2c $(RELNAME)/bin/
test_files: test_files:
cp -rf $(LUS2LICDIR)/test/should_work $(RELNAME)/test/
cp -rf $(LUS2LICDIR)/test/should_fail $(RELNAME)/test/
cp -rf $(LUS2LICDIR)/test/lus2lic.tests $(RELNAME)/test/
cp -rf $(LUS2LICDIR)/test/Makefile.dist $(RELNAME)/test/Makefile
cp -rf $(LUS2LICDIR)/test/site.exp $(RELNAME)/test/
cp -rf $(LUS2LICDIR)/test/config $(RELNAME)/test/
rm -f $(RELNAME)/test/*/normal.lus
rm -f $(RELNAME)/test/*/*/normal.lus
rm -f $(RELNAME)/test/*/ELMU.lus
rm -f $(RELNAME)/test/*/*/ELMU.lus
rm -f $(RELNAME)/test/*/onlyroll*.lus
rm -f $(RELNAME)/test/*/*/onlyroll*.lus
rm -f $(RELNAME)/test/*/pilote-1.0.lus
rm -f $(RELNAME)/test/*/*/pilote-1.0.lus
rm -f $(RELNAME)/test/*/car*.lus
rm -f $(RELNAME)/test/*/*/car*.lus
rm -f $(RELNAME)/test/*/Gyro*.lus
rm -f $(RELNAME)/test/*/*/Gyro*.lus
for f in $(shell find $(LUS2LICDIR)/src/test/should_work -name \*.lus); do \ for f in $(shell find $(LUS2LICDIR)/src/test/should_work -name \*.lus); do \
($(RELNAME)/bin/lus2lic $$f -o /tmp/xx.lus || (echo "*** lus2lic $$f failed" ; exit 1)) && \ ($(RELNAME)/bin/lus2lic $$f -o /tmp/xx.lus || (echo "*** lus2lic $$f failed" ; exit 1)) && \
echo "cp $$f $(RELNAME)/test/" && \ echo "cp $$f $(RELNAME)/test/" && \
......
The current Lustre V6 compiler is actually named luc2lic. lic is a
The current Lustre V6 compiler is actually named luc2lic. lic is a kind of extended ec. Unfortunately, the backend (lic2c) part is not
kind of extended ec. unfortunately, the lic2c compiler is not
finished. finished.
But, still, you can use 'lus2lic -ec', which generates V4 ec. And But, still, you can use 'lus2lic -ec', which generates V4 ec. And
...@@ -18,7 +17,6 @@ un-maintainble (a Phd work) whereas I do correct bug found in lus2lic. ...@@ -18,7 +17,6 @@ un-maintainble (a Phd work) whereas I do correct bug found in lus2lic.
Hence, for the time being, the only thing to know is that, for the Hence, for the time being, the only thing to know is that, for the
time being, only the -ec option is useful. time being, only the -ec option is useful.
To test this distribution, one can try to launch 'make' in the test To test this distribution, one can try to launch 'make' in the test
directory. directory (you need install dejagnu/runtest before).
test: ec
# T(ry to t)ranslate all lustre files into lic
lic:
for f in $(shell ls *.lus); do \
cmd="../bin/lus2lic $$f -o lic/$$f"; \
echo $$cmd;\
$$cmd;\
done
# Ditto with loc
loc:
for f in $(shell ls *.lus); do \
basename=`basename $$f .lus`; \
echo "../bin/lic2c --out-format loc lic/$$f > loc/$$basename.loc"; \
../bin/lic2c --out-format loc lic/$$f > loc/$$basename.loc; \
done
# Ditto with c
c:
cd c ; \
for f in $(shell ls *.lus); do \
cmd="../../bin/lic2c ../lic/$$f"; \
echo $$cmd;\
$$cmd;\
done
# Ditto with the Lustre V4 syntax
lv4:
for f in $(shell ls *.lus); do \
basename=`basename $$f .lus`; \
cmd="mkdir -p lv4/$$basename" ;\
echo "$$cmd" ; \
$$cmd ;\
cmd="../bin/lus2lic --lustre-v4 $$f -o lv4/$$basename/$$f"; \
echo "$$cmd" ; \
$$cmd ;\
nodename="$$basename"__"$$basename";\
cmd="lus2ec lv4/$$basename/$$f $$nodename -o lv4/ec/$$basename.ec"; \
echo "$$cmd" ; \
$$cmd ;\
done
# Ditto with ec
ec:
for f in $(shell ls *.lus); do \
cmd="../bin/lus2lic -ec $$f -o ec/$$f"; \
echo $$cmd;\
$$cmd;\
done
all:test
.PHONY: lv4 c loc lic test ec
...@@ -77,7 +77,9 @@ http://www.di.ens.fr/~pouzet/bib/lctes12.pdf ...@@ -77,7 +77,9 @@ http://www.di.ens.fr/~pouzet/bib/lctes12.pdf
** TODO le with devrait opérer sur une val_exp, pas sur un ident. ** TODO le with devrait opérer sur une val_exp, pas sur un ident.
- State "TODO" from "" [2013-02-12 Tue 18:31] - State "TODO" from "" [2013-02-12 Tue 18:31]
** TODO l2lCheckOutputs.ml Unbound value VarMap.bindings
en mode cross-win32 car pas defini en 3.11
- State "TODO" from "" [2013-02-22 Fri 08:27]
* Pas clair * Pas clair
** WAITING Regarder si on pourrait se passer du PREDEF_CALL (et de passer par le CALL normal) ** WAITING Regarder si on pourrait se passer du PREDEF_CALL (et de passer par le CALL normal)
- State "WAITING" from "STARTED" [2013-02-06 Wed 17:14] - State "WAITING" from "STARTED" [2013-02-06 Wed 17:14]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment