lisp: move cp tests to unittest

Type: refactor

Also reformats and fixes some of the tests.

Change-Id: I074c677fd9b28e192f72a2db32f6f2dbda9a314f
Signed-off-by: Florin Coras <fcoras@cisco.com>
This commit is contained in:
Florin Coras
2019-06-24 19:33:40 -07:00
committed by Dave Wallace
parent f910e51608
commit 0bcb931c39
6 changed files with 1433 additions and 1351 deletions

View File

@ -25,6 +25,7 @@ add_vpp_plugin(unittest
fib_test.c
ipsec_test.c
interface_test.c
lisp_cp_test.c
mactime_test.c
mfib_test.c
punt_test.c

File diff suppressed because it is too large Load Diff

View File

@ -1,10 +0,0 @@
Unit test infrastructure for vnet
To run unit tests do the following:
1. build vpp with 'vpp_enable_tests = yes' in build-data/platforms/vpp.mk
2. go to build-root/build-$tag-$arch/vnet
3. run
$ make check

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -4360,7 +4360,7 @@ parse_map_reply (vlib_buffer_t * b)
a->is_rloc_probe = MREP_RLOC_PROBE (mrep_hdr);
if (!vlib_buffer_has_space (b, sizeof (*mrep_hdr)))
{
clib_mem_free (a);
map_records_arg_free (a);
return 0;
}
vlib_buffer_pull (b, sizeof (*mrep_hdr));