diff options
author | Filip Tehlar <ftehlar@cisco.com> | 2017-02-02 13:24:32 +0100 |
---|---|---|
committer | Filip Tehlar <ftehlar@cisco.com> | 2017-02-02 13:24:32 +0100 |
commit | a4039775e53bc4754034fee11a7091502bc1bfb9 (patch) | |
tree | 8353523cd5f5c5ba93d77716d5494a2e71a5f2e4 /tests/data_plane/vpp_lite_topo | |
parent | a4aa73a99534b9a02472a3ec9df5dc04cc6471e7 (diff) |
Add negative mapping test
Change-Id: Ica2a26210003e8ef07e0a57fa55ea144c942700c
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'tests/data_plane/vpp_lite_topo')
-rw-r--r-- | tests/data_plane/vpp_lite_topo/test_driver/basic_no_odl.sh | 21 | ||||
-rwxr-xr-x | tests/data_plane/vpp_lite_topo/tests/test_negative_mapping_4o4.sh | 9 |
2 files changed, 30 insertions, 0 deletions
diff --git a/tests/data_plane/vpp_lite_topo/test_driver/basic_no_odl.sh b/tests/data_plane/vpp_lite_topo/test_driver/basic_no_odl.sh index aab2adb..8a1ac51 100644 --- a/tests/data_plane/vpp_lite_topo/test_driver/basic_no_odl.sh +++ b/tests/data_plane/vpp_lite_topo/test_driver/basic_no_odl.sh @@ -63,3 +63,24 @@ function test_basic_no_odl exit $test_result } +function test_negative_mapping +{ + 2_node_topo_setup no_odl + maybe_pause + + test_result=1 + + ip netns exec vppns1 "${1}" -w 15 -c 1 "${2}" + rc=$? + + # test done + 2_node_topo_clean no_odl + if [ $rc -eq 0 ] ; then + echo "Test failed!" + else + echo "Test passed." + test_result=0 + fi + + exit $test_result +} diff --git a/tests/data_plane/vpp_lite_topo/tests/test_negative_mapping_4o4.sh b/tests/data_plane/vpp_lite_topo/tests/test_negative_mapping_4o4.sh new file mode 100755 index 0000000..5d5c90a --- /dev/null +++ b/tests/data_plane/vpp_lite_topo/tests/test_negative_mapping_4o4.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +# Test negative mapping + +VPP_LITE_CONF=`pwd`/../configs/vpp_lite_config/basic/4o4_neg_mapping + +source test_driver/basic_no_odl.sh + +test_negative_mapping ping "6.0.2.2" |