-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtest.sh
More file actions
executable file
·56 lines (41 loc) · 739 Bytes
/
Copy pathtest.sh
File metadata and controls
executable file
·56 lines (41 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
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
#!/bin/bash
check() {
code=$?
if [ $code -eq 0 ]; then
echo "OK"
else
echo "Error"
exit 1
fi
}
# device
go test -v ./pkg/device/ -run Test2
check
go test -v ./pkg/device/ -run TestEther
check
go test -v ./pkg/device/ -run TestNull
check
go test -v ./pkg/device/ -run TestLoopback
check
# ip
go test -v ./pkg/ip/ -run Test2
check
go test -v ./pkg/ip/ -run TestIP
check
# arp
go test -v ./pkg/arp/ -run Test2
check
# icmp
go test -v ./pkg/icmp/ -run Test2
check
# udp
go test -v ./pkg/udp/ -run Test2
check
# tcp
go test -v ./pkg/tcp/ -run Test2
check
# utils
go test -v ./pkg/utils/
check
# test icmp,udp,tcp in manually for now
# TODO: how to test icmp,udp,tcp automatically