-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
44 lines (36 loc) · 1.36 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
# TODO generate final testing report
test-unittest:
@ echo '***************************'
@ echo '* Unittests *'
@ echo '***************************'
@ coverage -e
@ coverage -x tests/test_sitemap_parser.py
@ coverage -rm pywsinfo.py
test-all:
make test-unittest
todo:
@ echo
@ echo "*** TODO list ***"
@ echo
@ awk '/# TODO/ { gsub(/^ /, ""); print }' sitemap.py
@ echo
graph:
@ dot -T png docs/sitemap-parser.gv -o docs/sitemap-parser.png && eog docs/sitemap-parser.png
test-server-start:
@ python tests/test_server.py start
test-server-restart:
@ python tests/test_server.py restart
test-server-stop:
@ python tests/test_server.py stop
test-env:
@echo "* Create if not exists directory tests/"
@if ! [ -d tests/log ];then mkdir tests/log; fi
@echo "* Create if not exists directory tests/log/"
@if ! [ -d tests/log ];then mkdir tests/log; fi
@echo "* Create if not exists directory tests/run/"
@if ! [ -d tests/run ];then mkdir tests/run; fi
@echo "* Create if not exists directory tests/packages/"
@if ! [ -d tests/packages ];then mkdir tests/packages; fi
@echo "* Update packages for testing"
@ wget "https://raw.github.com/defnull/bottle/master/bottle.py" --no-check-certificate -O tests/packages/bottle.py
@ wget "https://raw.github.com/ownport/pyservice/master/pyservice.py" --no-check-certificate -O tests/packages/pyservice.py