-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
69 lines (52 loc) · 1.34 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
VENV3= venv3
PYTHON3= python3
DISTDIRS= *.egg-info build dist
TMPFILES= test-anchors.{ds,dnskey} \
root-anchors.{ds,dnskey}
ROOT_ANCHORS= regress/root-anchors.xml
TEST_ANCHORS= regress/test-anchors.xml
all:
lint:
$(VENV3)/bin/pylint --reports=no *.py
wheel:
python setup.py bdist_wheel
venv: $(VENV3)
$(VENV3):
virtualenv -p $(PYTHON3) $(VENV3)
$(VENV3)/bin/pip install -r requirements.txt
test: $(VENV3)
(. $(VENV3)/bin/activate; $(MAKE) regress3_offline)
pip3:
pip install -r requirements.txt
regress3_offline:
python -m py_compile dnssec_ta_tool.py
python dnssec_ta_tool.py \
--verbose \
--format dnskey \
--anchors $(TEST_ANCHORS) \
--output test-anchors.dnskey
diff -u regress/test-anchors.dnskey test-anchors.dnskey
python dnssec_ta_tool.py \
--verbose \
--format ds \
--anchors $(TEST_ANCHORS) \
--output test-anchors.ds
diff -u regress/test-anchors.ds test-anchors.ds
python dnssec_ta_tool.py \
--verbose \
--format dnskey \
--anchors $(ROOT_ANCHORS) \
--output root-anchors.dnskey
diff -u regress/root-anchors.dnskey root-anchors.dnskey
python dnssec_ta_tool.py \
--verbose \
--format ds \
--anchors $(ROOT_ANCHORS) \
--output root-anchors.ds
diff -u regress/root-anchors.ds root-anchors.ds
clean:
rm -fr $(DISTDIRS)
rm -f $(TMPFILES)
rm -fr __pycache__ *.pyc
realclean: clean
rm -rf $(VENV3)