Commit d1e79deb authored by POTTIER Francois's avatar POTTIER Francois
Browse files

Improved bench/good/Makefile to allow a set of known failures.

parent ff33b05d
...@@ -54,12 +54,17 @@ test: clean $(RESULTS) ...@@ -54,12 +54,17 @@ test: clean $(RESULTS)
if diff $@ $*.expected >& /dev/null; then \ if diff $@ $*.expected >& /dev/null; then \
if $(MENHIR) $$CMD >& $*.out; then \ if $(MENHIR) $$CMD >& $*.out; then \
echo "[OK] $$FILES"; \ echo "[OK] $$FILES"; \
else ( \ else \
echo "-> [KO] $$FILES:"; \ if ! grep $* 00KNOWN_FAILURES >& /dev/null; then ( \
echo " menhir --only-preprocess succeeded,"; \ echo "-> [KO] $$FILES:"; \
echo " but menhir failed."; \ echo " menhir --only-preprocess succeeded,"; \
echo " cat $*.out"; \ echo " but menhir failed."; \
) | tee -a failures; \ echo " cat $*.out"; \
) | tee -a failures; \
else \
echo "-> [KO] $$FILES:"; \
echo " known failure."; \
fi; \
fi; \ fi; \
else ( \ else ( \
echo "-> [KO] $$FILES:"; \ echo "-> [KO] $$FILES:"; \
......
Supports Markdown
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