-
-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (19 loc) · 739 Bytes
/
Makefile
File metadata and controls
25 lines (19 loc) · 739 Bytes
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
dep:
pip3 install flask
dummy-iface:
# Allow UDP ping. For more information, see https://github.com/go-ping/ping#linux
sudo sysctl -w net.ipv4.ping_group_range="0 2147483647"
sudo ip link add dev dummy0 type dummy
sudo ip addr add dev dummy0 192.0.2.1/24
sudo ip addr add dev dummy0 2001:db8::1/64
sudo ip link set dev dummy0 up
peeringdb-test-harness:
nohup python3 tests/peeringdb/peeringdb-test-api.py &
test-setup: dummy-iface peeringdb-test-harness
test:
export PATHVECTOR_TEST=1 && go test -v -race -coverprofile=coverage.txt -covermode=atomic ./pkg/... ./cmd/...
test-teardown:
pkill -f tests/peeringdb/peeringdb-test-api.py
sudo ip link del dev dummy0
rm -f nohup.out
test-sequence: test-setup test test-teardown