• R/O
  • SSH

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Castle: The best Real-Time/Embedded/HighTech language EVER. Attempt 2


Commit MetaInfo

修订版2f53352c7de08618fc61a0fbfc6dbe42939b825d (tree)
时间2023-01-14 23:28:13
作者Albert Mietus < albert AT mietus DOT nl >
CommiterAlbert Mietus < albert AT mietus DOT nl >

Log Message

cleaned Makefile

更改概述

差异

diff -r a0ce8ea28d10 -r 2f53352c7de0 Makefile
--- a/Makefile Sat Jan 14 14:24:19 2023 +0100
+++ b/Makefile Sat Jan 14 15:28:13 2023 +0100
@@ -9,13 +9,14 @@
99 coverage run --branch -m pytest ${PYTEST_OPTONS} pytst/
1010 coverage report --skip-covered
1111 coverage html
12-pytest-only:
12+pytest-only: # No coverage reports
1313 pytest ${PYTEST_OPTONS} pytst
14-pytest-s test-s:
14+pytest-s: # -s : No capure (so, show stdout/stderr)
1515 pytest ${PYTEST_OPTONS} -s pytst
16-test-ds test-sd test-d:
16+pytest-d pytest-ds pytest-sd: # with debuging
1717 pytest ${PYTEST_OPTONS} --log-cli-level=DEBUG -s pytst/
18-mutmut:
18+
19+mutmut: # Mutation testing (takes a long run) https://en.wikipedia.org/wiki/Mutation_testing
1920 -mutmut run --tests-dir pytst --paths-to-mutate castle
2021 mutmut html ; mv html mutmut-report
2122 mutmut results
@@ -33,8 +34,8 @@
3334
3435 LANGUAGEd=castle/readers/parser/grammar/
3536 missing_visitor: ${LANGUAGEd}language.py
36- @for R in $(shell grep '^ *def ' $< | awk '{print $$2}' | sed 's/()://') ; do \
37- if ! grep -q -E "^ *((def)|(# *NO_VISITOR_NEEDED:)) *visit_$$R" ${LANGUAGEd}visitor.py > /dev/null ; then\
37+ @for R in $(shell grep '^ *def ' $< | awk '{print $$2}' | sed 's/()://') ; do \
38+ if ! grep -q -E "^ *((def)|(# *NO_VISITOR_NEEDED:)) *visit_$$R" ${LANGUAGEd}visitor.py > /dev/null ; then\
3839 echo "Warning: $${R} has no visitor (nor is marked as to need none)" ;\
3940 fi ;\
4041 done
@@ -42,7 +43,7 @@
4243 ASTd=castle/ast/
4344 missing_serialization: ${ASTd}grammar.py
4445 @for R in ${shell grep '^ *class ' $< | sed 's/class //g' | sed 's/[:( ].*$$//g' } ; do \
45- if ! grep -q -E "^ *((def)|(# *NO_VISITOR_NEEDED:)) $${R}2xml" ${ASTd}serialization/ast2xml/*.py > /dev/null ; then\
46+ if ! grep -q -E "^ *((def)|(# *NO_VISITOR_NEEDED:)) $${R}2xml" ${ASTd}serialization/ast2xml/*.py > /dev/null ; then\
4647 echo "Warning: $${R} has no xml-serializer (nor is marked as to need none)" ;\
4748 fi ;\
4849 done