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
committed by
Dave Wallace
parent
f910e51608
commit
0bcb931c39
@ -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
|
||||
|
1431
src/plugins/unittest/lisp_cp_test.c
Normal file
1431
src/plugins/unittest/lisp_cp_test.c
Normal file
File diff suppressed because it is too large
Load Diff
@ -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
@ -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));
|
||||
|
Reference in New Issue
Block a user