diff options
author | Filip Tehlar <ftehlar@cisco.com> | 2016-07-07 08:29:25 +0200 |
---|---|---|
committer | Filip Tehlar <ftehlar@cisco.com> | 2016-07-07 12:26:52 +0200 |
commit | 05479d8750d11d46a939c31ca78e99ecc310dc7a (patch) | |
tree | d1acfad937839fad93f52cdff4d0b34a69588e77 /tests/data_plane/vpp_lite_topo/tests | |
parent | 12defda1182a88e98a20d63c32fe897359663ad7 (diff) |
Add script which runs all VPP lite tests
Change-Id: I13c8726ac60647201d40249434f3a81085a8f9ff
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'tests/data_plane/vpp_lite_topo/tests')
20 files changed, 337 insertions, 0 deletions
diff --git a/tests/data_plane/vpp_lite_topo/tests/test_basic_4o4.sh b/tests/data_plane/vpp_lite_topo/tests/test_basic_4o4.sh new file mode 100755 index 0000000..807edcc --- /dev/null +++ b/tests/data_plane/vpp_lite_topo/tests/test_basic_4o4.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +# Test basic LISP functionality (ip4 over ip4) + +VPP_LITE_CONF=`pwd`/../configs/vpp_lite_config/basic/4o4 +ODL_CONFIG_DIR=`pwd`/../configs/odl/basic/4o4 + +source test_driver/basic.sh + +test_basic ping "6.0.2.2" diff --git a/tests/data_plane/vpp_lite_topo/tests/test_basic_4o4_and_6o6.sh b/tests/data_plane/vpp_lite_topo/tests/test_basic_4o4_and_6o6.sh new file mode 100755 index 0000000..9adeaf6 --- /dev/null +++ b/tests/data_plane/vpp_lite_topo/tests/test_basic_4o4_and_6o6.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +# Test basic LISP functionality with two ongoing traffics - 4o4 and 6o6 + +ODL_CONFIG_DIR=`pwd`/../configs/odl/basic/6o6 +VPP_LITE_CONF=`pwd`/../configs/vpp_lite_config/basic/4o4_and_6o6 + +source test_driver/basic_multi_traffic.sh + +test_basic_multi_traffic ping6 "6:0:2::2" ping "6.0.2.2" + diff --git a/tests/data_plane/vpp_lite_topo/tests/test_basic_4o4_no_odl.sh b/tests/data_plane/vpp_lite_topo/tests/test_basic_4o4_no_odl.sh new file mode 100755 index 0000000..0c2d2d0 --- /dev/null +++ b/tests/data_plane/vpp_lite_topo/tests/test_basic_4o4_no_odl.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +# Test basic LISP functionality without odl (ip4 over ip4) + +VPP_LITE_CONF=`pwd`/../configs/vpp_lite_config/basic/4o4_no_odl + +source test_driver/basic_no_odl.sh + +test_basic_no_odl ping "6.0.2.2" diff --git a/tests/data_plane/vpp_lite_topo/tests/test_basic_4o6.sh b/tests/data_plane/vpp_lite_topo/tests/test_basic_4o6.sh new file mode 100755 index 0000000..c9bd8de --- /dev/null +++ b/tests/data_plane/vpp_lite_topo/tests/test_basic_4o6.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +# Test basic LISP functionality (ip4 over ip6) + +VPP_LITE_CONF=`pwd`/../configs/vpp_lite_config/basic/4o6 +ODL_CONFIG_DIR=`pwd`/../configs/odl/basic/4o6 + +source test_driver/basic.sh + +test_basic ping "6.0.2.2" + diff --git a/tests/data_plane/vpp_lite_topo/tests/test_basic_6o4.sh b/tests/data_plane/vpp_lite_topo/tests/test_basic_6o4.sh new file mode 100755 index 0000000..757b7ce --- /dev/null +++ b/tests/data_plane/vpp_lite_topo/tests/test_basic_6o4.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +# Test basic LISP functionality (ip6 over ip4) + +VPP_LITE_CONF=`pwd`/../configs/vpp_lite_config/basic/6o4 +ODL_CONFIG_DIR=`pwd`/../configs/odl/basic/6o4 + +source test_driver/basic.sh + +test_basic ping6 "6:0:2::2" diff --git a/tests/data_plane/vpp_lite_topo/tests/test_basic_6o6.sh b/tests/data_plane/vpp_lite_topo/tests/test_basic_6o6.sh new file mode 100755 index 0000000..3ef68f4 --- /dev/null +++ b/tests/data_plane/vpp_lite_topo/tests/test_basic_6o6.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +# Test basic LISP functionality (ip6 over ip6) + +VPP_LITE_CONF=`pwd`/../configs/vpp_lite_config/basic/6o6 +ODL_CONFIG_DIR=`pwd`/../configs/odl/basic/6o6 + +source test_driver/basic.sh + +test_basic ping6 "6:0:2::2" diff --git a/tests/data_plane/vpp_lite_topo/tests/test_basic_6o6_no_odl.sh b/tests/data_plane/vpp_lite_topo/tests/test_basic_6o6_no_odl.sh new file mode 100755 index 0000000..ce332d4 --- /dev/null +++ b/tests/data_plane/vpp_lite_topo/tests/test_basic_6o6_no_odl.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +# Test basic LISP functionality without odl (ip6 over ip6) + +VPP_LITE_CONF=`pwd`/../configs/vpp_lite_config/basic/6o6_no_odl + +source test_driver/basic_no_odl.sh + +test_basic_no_odl ping6 "6:0:2::2" + diff --git a/tests/data_plane/vpp_lite_topo/tests/test_eid_virtualization_4o4.sh b/tests/data_plane/vpp_lite_topo/tests/test_eid_virtualization_4o4.sh new file mode 100755 index 0000000..2038fd2 --- /dev/null +++ b/tests/data_plane/vpp_lite_topo/tests/test_eid_virtualization_4o4.sh @@ -0,0 +1,22 @@ +#!/usr/bin/env bash + +# Test EID virualization (4over4) +# +# This test configures two LISP XTRs with two customers. Both customers +# have two client nodes (EID) as depict here: +# +# eid1 ______ _______ eid2 +# customer1 -| | | |- customer1 +# | xTR |----| xTR | +# customer2 -|_____| | |_____|- customer2 +# eid3 | eid4 +# ODL +# +# In this scenario both eid1 and eid3 are equal. + +VPP_LITE_CONF=`pwd`"/../configs/vpp_lite_config/eid_virt/4o4" +ODL_CONFIG_DIR=`pwd`"/../configs/odl/eid_virt/4o4" + +source test_driver/two_customers_topo.sh + +test_eid_virtualization ping "6.0.4.4" diff --git a/tests/data_plane/vpp_lite_topo/tests/test_eid_virtualization_4o6.sh b/tests/data_plane/vpp_lite_topo/tests/test_eid_virtualization_4o6.sh new file mode 100755 index 0000000..391da92 --- /dev/null +++ b/tests/data_plane/vpp_lite_topo/tests/test_eid_virtualization_4o6.sh @@ -0,0 +1,22 @@ +#!/usr/bin/env bash + +# Test EID virualization (4over6) +# +# This test configures two LISP XTRs with two customers. Both customers +# have two client nodes (EID) as depict here: +# +# eid1 ______ _______ eid2 +# customer1 -| | | |- customer1 +# | xTR |----| xTR | +# customer2 -|_____| | |_____|- customer2 +# eid3 | eid4 +# ODL +# +# In this scenario both eid1 and eid3 are equal. + +VPP_LITE_CONF=`pwd`"/../configs/vpp_lite_config/eid_virt/4o6" +ODL_CONFIG_DIR=`pwd`"/../configs/odl/eid_virt/4o6" + +source test_driver/two_customers_topo.sh + +test_eid_virtualization ping "6.0.4.4" diff --git a/tests/data_plane/vpp_lite_topo/tests/test_eid_virtualization_6o4.sh b/tests/data_plane/vpp_lite_topo/tests/test_eid_virtualization_6o4.sh new file mode 100755 index 0000000..5d7f975 --- /dev/null +++ b/tests/data_plane/vpp_lite_topo/tests/test_eid_virtualization_6o4.sh @@ -0,0 +1,22 @@ +#!/usr/bin/env bash + +# Test EID virualization (6over4) +# +# This test configures two LISP XTRs with two customers. Both customers +# have two client nodes (EID) as depict here: +# +# eid1 ______ _______ eid2 +# customer1 -| | | |- customer1 +# | xTR |----| xTR | +# customer2 -|_____| | |_____|- customer2 +# eid3 | eid4 +# ODL +# +# In this scenario both eid1 and eid3 are equal. + +VPP_LITE_CONF=`pwd`"/../configs/vpp_lite_config/eid_virt/6o4" +ODL_CONFIG_DIR=`pwd`"/../configs/odl/eid_virt/6o4" + +source test_driver/two_customers_topo.sh + +test_eid_virtualization ping6 "6:0:4::4" diff --git a/tests/data_plane/vpp_lite_topo/tests/test_eid_virtualization_6o6.sh b/tests/data_plane/vpp_lite_topo/tests/test_eid_virtualization_6o6.sh new file mode 100755 index 0000000..2b6d463 --- /dev/null +++ b/tests/data_plane/vpp_lite_topo/tests/test_eid_virtualization_6o6.sh @@ -0,0 +1,22 @@ +#!/usr/bin/env bash + +# Test EID virualization (6over6) +# +# This test configures two LISP XTRs with two customers. Both customers +# have two client nodes (EID) as depict here: +# +# eid1 ______ _______ eid2 +# customer1 -| | | |- customer1 +# | xTR |----| xTR | +# customer2 -|_____| | |_____|- customer2 +# eid3 | eid4 +# ODL +# +# In this scenario both eid1 and eid3 are equal. + +VPP_LITE_CONF=`pwd`"/../configs/vpp_lite_config/eid_virt/6o6" +ODL_CONFIG_DIR=`pwd`"/../configs/odl/eid_virt/6o6" + +source test_driver/two_customers_topo.sh + +test_eid_virtualization ping6 "6:0:4::4" diff --git a/tests/data_plane/vpp_lite_topo/tests/test_rtr_single_iface_4o4.sh b/tests/data_plane/vpp_lite_topo/tests/test_rtr_single_iface_4o4.sh new file mode 100755 index 0000000..465a014 --- /dev/null +++ b/tests/data_plane/vpp_lite_topo/tests/test_rtr_single_iface_4o4.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env bash + +# +# Test for VPP LISP RTR functionality (4over4). +# +# IMPORTANT: This test needs to have ODL running with following config +# line in etc/custom.properties: +# lisp.elpPolicy = replace +# +# This test configures a topology of two XTRs and RTR. An ICMP request is +# sent from host1 behind first TR to the host2 behind the second TR. +# Both host and underlaying networks are IPv4. +# + +VPP_LITE_CONF=`pwd`"/../configs/vpp_lite_config/rtr_single_iface/4o4" +ODL_CONFIG_DIR=`pwd`"/../configs/odl/rtr_single_iface/4o4" + +source test_driver/rtr_single_iface.sh + +test_rtr_single_iface ping "6.0.4.4" diff --git a/tests/data_plane/vpp_lite_topo/tests/test_rtr_single_iface_4o6.sh b/tests/data_plane/vpp_lite_topo/tests/test_rtr_single_iface_4o6.sh new file mode 100755 index 0000000..1bc2474 --- /dev/null +++ b/tests/data_plane/vpp_lite_topo/tests/test_rtr_single_iface_4o6.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env bash + +# +# Test for VPP LISP RTR functionality (4over6). +# +# IMPORTANT: This test needs to have ODL running with following config +# line in etc/custom.properties: +# lisp.elpPolicy = replace +# +# This test configures a topology of two XTRs and RTR. An ICMP request is +# sent from host1 behind first TR to the host2 behind the second TR. +# Hosts resides in IPv4 network, underlying network is IPv6 +# + +VPP_LITE_CONF=`pwd`"/../configs/vpp_lite_config/rtr_single_iface/4o6/" +ODL_CONFIG_DIR=`pwd`"/../configs/odl/rtr_single_iface/4o6" + +source test_driver/rtr_single_iface.sh + +test_rtr_single_iface ping "6.0.4.4" diff --git a/tests/data_plane/vpp_lite_topo/tests/test_rtr_single_iface_6o4.sh b/tests/data_plane/vpp_lite_topo/tests/test_rtr_single_iface_6o4.sh new file mode 100755 index 0000000..ced8729 --- /dev/null +++ b/tests/data_plane/vpp_lite_topo/tests/test_rtr_single_iface_6o4.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env bash + +# +# Test for VPP LISP RTR functionality (6over4). +# +# IMPORTANT: This test needs to have ODL running with following config +# line in etc/custom.properties: +# lisp.elpPolicy = replace +# +# This test configures a topology of two XTRs and RTR. An ICMP request is +# sent from host1 behind first TR to the host2 behind the second TR. +# + +VPP_LITE_CONF=`pwd`"/../configs/vpp_lite_config/rtr_single_iface/6o4/" +ODL_CONFIG_DIR=`pwd`"/../configs/odl/rtr_single_iface/6o4" + +source test_driver/rtr_single_iface.sh + +test_rtr_single_iface ping6 "6:0:4::4" diff --git a/tests/data_plane/vpp_lite_topo/tests/test_rtr_single_iface_6o6.sh b/tests/data_plane/vpp_lite_topo/tests/test_rtr_single_iface_6o6.sh new file mode 100755 index 0000000..184c4ac --- /dev/null +++ b/tests/data_plane/vpp_lite_topo/tests/test_rtr_single_iface_6o6.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env bash + +# +# Test for VPP LISP RTR functionality (6over6). +# +# IMPORTANT: This test needs to have ODL running with following config +# line in etc/custom.properties: +# lisp.elpPolicy = replace +# +# This test configures a topology of two XTRs and RTR. An ICMP request is +# sent from host1 behind first TR to the host2 behind the second TR. +# Both underlying and overlying networks are IPv6 +# + +VPP_LITE_CONF=`pwd`"/../configs/vpp_lite_config/rtr_single_iface/6o6/" +ODL_CONFIG_DIR=`pwd`"/../configs/odl/rtr_single_iface/6o6" + +source test_driver/rtr_single_iface.sh + +test_rtr_single_iface ping6 "6:0:4::4" diff --git a/tests/data_plane/vpp_lite_topo/tests/test_rtr_two_iface_4o4.sh b/tests/data_plane/vpp_lite_topo/tests/test_rtr_two_iface_4o4.sh new file mode 100755 index 0000000..c45bb3f --- /dev/null +++ b/tests/data_plane/vpp_lite_topo/tests/test_rtr_two_iface_4o4.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env bash + +# +# Test for VPP LISP RTR functionality (4over4). +# +# IMPORTANT: This test needs to have ODL running with following config +# line in etc/custom.properties: +# lisp.elpPolicy = replace +# +# This test configures a topology of two XTRs and RTR. An ICMP request is +# sent from host1 behind first TR to the host2 behind the second TR. +# Both host and underlaying networks are IPv4. +# + +VPP_LITE_CONF=`pwd`"/../configs/vpp_lite_config/rtr_two_iface/4o4" +ODL_CONFIG_DIR=`pwd`"/../configs/odl/rtr_two_iface/4o4/" + +source test_driver/rtr_two_iface.sh + +test_rtr_two_iface "6.0.4.4" diff --git a/tests/data_plane/vpp_lite_topo/tests/test_rtr_two_iface_4o6.sh b/tests/data_plane/vpp_lite_topo/tests/test_rtr_two_iface_4o6.sh new file mode 100755 index 0000000..0d7015b --- /dev/null +++ b/tests/data_plane/vpp_lite_topo/tests/test_rtr_two_iface_4o6.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env bash + +# +# Test for VPP LISP RTR functionality (4over4). +# +# IMPORTANT: This test needs to have ODL running with following config +# line in etc/custom.properties: +# lisp.elpPolicy = replace +# +# This test configures a topology of two XTRs and RTR. An ICMP request is +# sent from host1 behind first TR to the host2 behind the second TR. +# Both host and underlaying networks are IPv4. +# + +VPP_LITE_CONF=`pwd`"/../configs/vpp_lite_config/rtr_two_iface/4o6" +ODL_CONFIG_DIR=`pwd`"/../configs/odl/rtr_two_iface/4o6/" + +source test_driver/rtr_two_iface.sh + +test_rtr_two_iface "6.0.4.4" diff --git a/tests/data_plane/vpp_lite_topo/tests/test_rtr_two_iface_6o46.sh b/tests/data_plane/vpp_lite_topo/tests/test_rtr_two_iface_6o46.sh new file mode 100755 index 0000000..1df6678 --- /dev/null +++ b/tests/data_plane/vpp_lite_topo/tests/test_rtr_two_iface_6o46.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env bash + +# +# Test for VPP LISP RTR functionality (6over46). +# +# IMPORTANT: This test needs to have ODL running with following config +# line in etc/custom.properties: +# lisp.elpPolicy = replace +# +# This test configures a topology of two XTRs and RTR. An ICMP request is +# sent from host1 behind first TR to the host2 behind the second TR. +# + +VPP_LITE_CONF=`pwd`"/../configs/vpp_lite_config/rtr_two_iface/6o46" +ODL_CONFIG_DIR=`pwd`"/../configs/odl/rtr_two_iface/6o46" + +source test_driver/rtr_two_iface.sh + +test_rtr_two_iface "6:0:4::4" diff --git a/tests/data_plane/vpp_lite_topo/tests/test_rtr_two_iface_two_customers_6o46.sh b/tests/data_plane/vpp_lite_topo/tests/test_rtr_two_iface_two_customers_6o46.sh new file mode 100755 index 0000000..eac2a7c --- /dev/null +++ b/tests/data_plane/vpp_lite_topo/tests/test_rtr_two_iface_two_customers_6o46.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env bash + +# +# Test for VPP LISP RTR functionality with EID virualization. +# +# IMPORTANT: This test needs to have ODL running with following config +# line in etc/custom.properties: +# lisp.elpPolicy = replace +# +# This test configures a topology of two XTRs and RTR. An ICMP request is +# sent from host1 behind first TR to the host2 behind the second TR. +# +# + +VPP_LITE_CONF=`pwd`"/../configs/vpp_lite_config/rtr_two_iface_two_customers/6o46" +ODL_CONFIG_DIR=`pwd`"/../configs/odl/rtr_two_iface_two_customers/6o46" + +source test_driver/rtr_two_iface_two_customers.sh + +test_rtr_two_iface_two_customers ping6 "6:0:4::4" diff --git a/tests/data_plane/vpp_lite_topo/tests/test_smr_rtr_disjoint.sh b/tests/data_plane/vpp_lite_topo/tests/test_smr_rtr_disjoint.sh new file mode 100755 index 0000000..0c49698 --- /dev/null +++ b/tests/data_plane/vpp_lite_topo/tests/test_smr_rtr_disjoint.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env bash + +# +# Test for VPP LISP RTR functionality (4over4). +# +# IMPORTANT: This test needs to have ODL running with following config +# line in etc/custom.properties: +# lisp.elpPolicy = replace +# +# This test configures a topology of two XTRs and RTR. An ICMP request is +# sent from host1 behind first TR to the host2 behind the second TR. +# Both host and underlaying networks are IPv4. +# + +VPP_LITE_CONF=`pwd`"/../configs/vpp_lite_config/smr_rtr_disjoint/" +ODL_CONFIG_DIR=`pwd`"/../configs/odl/smr_rtr_disjoint/" + +source test_driver/smr_rtr_disjoint.sh + +test_smr_rtr_disjoint "6:0:4::4" |