vppinfra: widen the scope of test_vector_funcs

Location changed and binary renamed to test_infra
Also it is built by default.

Type: improvement
Change-Id: I27cd97f274501ceb7a01213e2bc9676cea00f39c
Signed-off-by: Damjan Marion <damarion@cisco.com>
This commit is contained in:
Damjan Marion
2023-03-15 11:42:06 +00:00
committed by Florin Coras
parent adeaf16960
commit c3542e17b5
12 changed files with 23 additions and 23 deletions

View File

@@ -273,29 +273,29 @@ if(VPP_BUILD_VPPINFRA_TESTS)
LINK_LIBRARIES vppinfra Threads::Threads
)
endforeach()
endif(VPP_BUILD_VPPINFRA_TESTS)
set(test_files
vector/test/array_mask.c
vector/test/compress.c
vector/test/count_equal.c
vector/test/index_to_ptr.c
vector/test/ip_csum.c
vector/test/mask_compare.c
vector/test/memcpy_x86_64.c
vector/test/sha2.c
vector/test/toeplitz.c
test/array_mask.c
test/compress.c
test/count_equal.c
test/index_to_ptr.c
test/ip_csum.c
test/mask_compare.c
test/memcpy_x86_64.c
test/sha2.c
test/toeplitz.c
)
add_vpp_executable(test_vector_funcs
add_vpp_executable(test_infra
SOURCES
vector/test/test.c
test/test.c
${test_files}
LINK_LIBRARIES vppinfra
)
vpp_library_set_multiarch_sources(test_vector_funcs
vpp_library_set_multiarch_sources(test_infra
SOURCES
${test_files}
)
endif(VPP_BUILD_VPPINFRA_TESTS)

View File

@@ -3,7 +3,7 @@
*/
#include <vppinfra/format.h>
#include <vppinfra/vector/test/test.h>
#include <vppinfra/test/test.h>
#include <vppinfra/vector/array_mask.h>
__test_funct_fn void

View File

@@ -3,7 +3,7 @@
*/
#include <vppinfra/format.h>
#include <vppinfra/vector/test/test.h>
#include <vppinfra/test/test.h>
#include <vppinfra/vector/compress.h>
__test_funct_fn u32

View File

@@ -3,7 +3,7 @@
*/
#include <vppinfra/format.h>
#include <vppinfra/vector/test/test.h>
#include <vppinfra/test/test.h>
#include <vppinfra/vector/count_equal.h>
#define foreach_clib_count_equal(type) \

View File

@@ -3,7 +3,7 @@
*/
#include <vppinfra/format.h>
#include <vppinfra/vector/test/test.h>
#include <vppinfra/test/test.h>
#include <vppinfra/vector/index_to_ptr.h>
typedef void (wrapper_fn) (u32 *indices, void *base, u8 shift, void **ptrs,

View File

@@ -3,7 +3,7 @@
*/
#include <vppinfra/format.h>
#include <vppinfra/vector/test/test.h>
#include <vppinfra/test/test.h>
#include <vppinfra/vector/ip_csum.h>
typedef struct

View File

@@ -3,7 +3,7 @@
*/
#include <vppinfra/format.h>
#include <vppinfra/vector/test/test.h>
#include <vppinfra/test/test.h>
#include <vppinfra/vector/mask_compare.h>
__test_funct_fn void

View File

@@ -5,7 +5,7 @@
#ifdef __x86_64__
#include <vppinfra/format.h>
#include <vppinfra/vector/test/test.h>
#include <vppinfra/test/test.h>
#include <vppinfra/vector/mask_compare.h>
__test_funct_fn void

View File

@@ -3,7 +3,7 @@
*/
#include <vppinfra/format.h>
#include <vppinfra/vector/test/test.h>
#include <vppinfra/test/test.h>
#include <vppinfra/sha2.h>
typedef struct

View File

@@ -3,7 +3,7 @@
*/
#include <vppinfra/format.h>
#include <vppinfra/vector/test/test.h>
#include <vppinfra/test/test.h>
#include <vppinfra/error.h>
test_main_t test_main;

View File

@@ -3,7 +3,7 @@
*/
#include <vppinfra/format.h>
#include <vppinfra/vector/test/test.h>
#include <vppinfra/test/test.h>
#include <vppinfra/vector/toeplitz.h>
/* secret key and test cases taken from: