Castle: The best Real-Time/Embedded/HighTech language EVER. Attempt 2
Revision | 2f53352c7de08618fc61a0fbfc6dbe42939b825d (tree) |
---|---|
Time | 2023-01-14 23:28:13 |
Author | Albert Mietus < albert AT mietus DOT nl > |
Commiter | Albert Mietus < albert AT mietus DOT nl > |
cleaned Makefile
@@ -9,13 +9,14 @@ | ||
9 | 9 | coverage run --branch -m pytest ${PYTEST_OPTONS} pytst/ |
10 | 10 | coverage report --skip-covered |
11 | 11 | coverage html |
12 | -pytest-only: | |
12 | +pytest-only: # No coverage reports | |
13 | 13 | pytest ${PYTEST_OPTONS} pytst |
14 | -pytest-s test-s: | |
14 | +pytest-s: # -s : No capure (so, show stdout/stderr) | |
15 | 15 | pytest ${PYTEST_OPTONS} -s pytst |
16 | -test-ds test-sd test-d: | |
16 | +pytest-d pytest-ds pytest-sd: # with debuging | |
17 | 17 | 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 | |
19 | 20 | -mutmut run --tests-dir pytst --paths-to-mutate castle |
20 | 21 | mutmut html ; mv html mutmut-report |
21 | 22 | mutmut results |
@@ -33,8 +34,8 @@ | ||
33 | 34 | |
34 | 35 | LANGUAGEd=castle/readers/parser/grammar/ |
35 | 36 | 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\ | |
38 | 39 | echo "Warning: $${R} has no visitor (nor is marked as to need none)" ;\ |
39 | 40 | fi ;\ |
40 | 41 | done |
@@ -42,7 +43,7 @@ | ||
42 | 43 | ASTd=castle/ast/ |
43 | 44 | missing_serialization: ${ASTd}grammar.py |
44 | 45 | @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\ | |
46 | 47 | echo "Warning: $${R} has no xml-serializer (nor is marked as to need none)" ;\ |
47 | 48 | fi ;\ |
48 | 49 | done |