diff options
author | 2021-07-13 21:12:41 +0200 | |
---|---|---|
committer | 2021-07-13 20:06:19 +0000 | |
commit | d154a17989b1da7abbfdb87b98b90cc5f4d3295f (patch) | |
tree | 9353de897ec10d0afd3005dd2cf26e0b7ac512ef /src/vppinfra/test_vector_funcs.c | |
parent | b7e4d4487c0fa02f3869d24799c6573452276396 (diff) |
vppinfra: put each vector function into own file
Type: refactor
Change-Id: I2dd9a18497992ac7e2686c14f5d17eccccda0cda
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vppinfra/test_vector_funcs.c')
-rw-r--r-- | src/vppinfra/test_vector_funcs.c | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/src/vppinfra/test_vector_funcs.c b/src/vppinfra/test_vector_funcs.c deleted file mode 100644 index 85f159a17c6..00000000000 --- a/src/vppinfra/test_vector_funcs.c +++ /dev/null @@ -1,42 +0,0 @@ -/* SPDX-License-Identifier: Apache-2.0 - * Copyright(c) 2021 Cisco Systems, Inc. - */ - -#include <vppinfra/format.h> -#include <vppinfra/test_vector_funcs.h> - -test_registration_t *test_registrations[CLIB_MARCH_TYPE_N_VARIANTS] = {}; - -int -main (int argc, char *argv[]) -{ - clib_mem_init (0, 64ULL << 20); - - for (int i = 0; i < CLIB_MARCH_TYPE_N_VARIANTS; i++) - { - test_registration_t *r = test_registrations[i]; - - if (r == 0) - continue; - - fformat (stdout, "\nMultiarch Variant: %U\n", format_march_variant, i); - fformat (stdout, - "-------------------------------------------------------\n"); - while (r) - { - clib_error_t *err; - err = (r->fn) (0); - fformat (stdout, "%-50s %s\n", r->name, err ? "FAIL" : "PASS"); - if (err) - { - clib_error_report (err); - fformat (stdout, "\n"); - } - - r = r->next; - } - } - - fformat (stdout, "\n"); - return 0; -} |