-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (28 loc) · 938 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
.PHONY : default
default:
@echo "To install run \"./setup.py install\" or \"make install\""
@echo "To test sanity of code run \"make test\""
clean:
rm -f *.pyc */*.pyc
rm -rf */__pycache__/
rm -rf pylint_report.txt
rm -rf coverage.xml
rm -rf dist/ build/
rm -rf htmlcov/
.PHONY : install
install:
./setup.py install
epydoc:
epydoc --html -v -o epydoc --graph all tlsfuzzer
test:
epydoc --check --fail-on-error -v tlsfuzzer
coverage2 run --branch --source tlsfuzzer -m unittest discover -v
coverage3 run --append --branch --source tlsfuzzer -m unittest discover -v
coverage3 report -m
coverage3 xml
coverage3 html
pylint --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" tlsfuzzer > pylint_report.txt || :
diff-quality --violations=pylint --fail-under=90 pylint_report.txt
diff-cover --fail-under=90 coverage.xml
test-scripts:
python tests/scripts_retention.py tests/tlslite-ng.json `which tls.py`