-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.sh
executable file
·53 lines (53 loc) · 1.18 KB
/
test.sh
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
#!/usr/bin/env bash
# run using "sudo test.sh"
# make sure to build router first
export RUST_BACKTRACE=1
case $1 in
-c) #clean up
mn -c
fuser -k 6633/tcp
;;
-v) #version
python --version
mn --version
;;
tw_ex) #try the taiwanese example
python -E python/luxing/research_ipv6_example.py
;;
1112)
python -m python.luxing.test_1112
;;
11211)
python -m python.luxing.test_11211
;;
11212)
python -m python.luxing.test_11212
;;
1211)
python -m python.luxing.test_1211
;;
1212)
python -m python.luxing.test_1212
;;
1214)
python -m python.luxing.test_1214
;;
1215)
python -m python.luxing.test_1215
;;
1216)
python -m python.luxing.test_1216
;;
1217)
python -m python.luxing.test_1217
;;
web)
python -m python.luxing.test_web_server
;;
ex) #example test of ipv6 wrapper
python -m python.luxing.test_example
;;
*) #if in doubt, run the playground test
python -m python.luxing.test_playground
;;
esac