Nous avons procédé ce jeudi matin 08 avril 2021 à une MAJ de sécurité urgente. Nous sommes passé de la version 13.9.3 à la version 13.9.5 les releases notes correspondantes sont ici:

Commit 77276960 authored by POTTIER Francois's avatar POTTIER Francois

Turned into Makefile entries. This allows parallel execution.

parent 391f3d05
......@@ -6,3 +6,5 @@
.PHONY: clean test expected
.PHONY: clean test expected list
# Note that there is potential confusion between src/_stage1/menhir
# and src/_stage2/menhir. Here, we use the latter (built by "make
......@@ -102,3 +102,38 @@ clean:
rm -f *.ml *.mli *.conflicts *.automaton
rm -f *.out failures warnings
# ------------------------------------------------------------------------------
# Testing LRijkstra, that is, menhir --list-errors.
SINGLE = $(shell ls *.mly | egrep -v '.*-([1-9]).mly')
%.log: %.mly
@ echo "Now dealing with: $<" | tee -a $@
@ if (timeout $(TIMEOUT) $(MENHIR) --list-errors -la 2 --lalr $<) >>$@ 2>&1 ; then \
echo "$<: success." | tee -a $@ ; \
else \
echo "$<: TIMEOUT." | tee -a $@ ; \
# Compile Menhir.
# make -C $(SRC) clean
make -C $(SRC) bootstrap
# Remove any leftover output files.
rm -f *.log lr.csv
# Print the header of lr.csv. (This should be kept in sync with
echo "grammar,terminals,nonterminals,size,states,trie,facts,edges,time,heap" > lr.csv
# Try every grammar. (Only the single-file grammars, that is.)
# This can proceed in parallel, for a reasonable number of processes.
# Each process appends one line of data to lr.csv when it finishes.
# Hopefully the final content of lr.csv will be a reasonable interleaving
# of these lines.
@ $(MAKE) $(PARALLEL) $(patsubst %.mly,%.log,$(SINGLE))
# Finished.
@ echo "Number of grammars that could not be handled in $(TIMEOUT) seconds:"
@ grep TIMEOUT *.log | wc -l
@ echo "Number of grammars that were successfully handled:"
@ tail -n +2 lr.csv | wc -l
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment