forked from floodlight/oftest
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrun_oftest.sh
executable file
·58 lines (52 loc) · 1.71 KB
/
run_oftest.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
54
55
56
57
58
#!/bin/bash
# this shell script is useful to change different test cases quickly
HOST_IP=124.219.108.5
# network interfaces
IF_NAME_1=ens16f0
IF_NAME_2=ens16f1
IF_NAME_3=ens17f0
IF_NAME_4=ens17f1
# test case category
TEST_SINGLE_CASE=test_tenants.Getter
TEST_EXCEPTION="test_exception_switch_reboot \
test_exception_link_down_up \
test_exception_disconnect_device \
test_exception_restart_mars"
TEST_ALL_WITHOUT_EXCEPTION="test_account \
test_alert \
test_dhcp_relay \
test_healthy_check \
test_intents \
test_ntp_server \
test_qos \
test_storm_control \
test_span \
test_tenant_logical_router \
test_tenants"
TEST_ALL="test_account \
test_alert \
test_dhcp_relay \
test_healthy_check \
test_intents \
test_ntp_server \
test_qos \
test_storm_control \
test_span \
test_tenant_logical_router \
test_tenants \
test_exception_switch_reboot \
test_exception_link_down_up \
test_exception_disconnect_device \
test_exception_restart_mars"
# main
python oft --host=${HOST_IP} \
-i 1@${IF_NAME_1} \
-i 2@${IF_NAME_2} \
-i 3@${IF_NAME_3} \
-i 4@${IF_NAME_4} \
--of-version=1.3 \
--mars=MARS \
--test-dir=mars \
--disable-ipv6 \
--debug=debug \
${TEST_ALL_WITHOUT_EXCEPTION}