From e6e159f8517901c74296214fe804340b73f99578 Mon Sep 17 00:00:00 2001 From: Thiery Ouattara Date: Tue, 8 Dec 2020 17:47:35 +0000 Subject: [PATCH] test jenkins Signed-off-by: Thiery Ouattara --- tests/vtep/tests.c | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/tests/vtep/tests.c b/tests/vtep/tests.c index 19d8854c..e62d96fd 100644 --- a/tests/vtep/tests.c +++ b/tests/vtep/tests.c @@ -813,14 +813,34 @@ static void test_vtep_vnis(int flag) continue; } + + if (j == ((i - 1) % NB_VNIS)) { + g_assert(tmp_mask == 0x0000ff); + } else if (j == i % NB_VNIS){ + g_assert(tmp_mask == 0x00ff00); + } else if (j == ((i + 1) % NB_VNIS)) { + // printf("==== NB_VNIS-tmp_mask == % " PRIx64 "\n", tmp_mask); + printf("==== NB_VNIS-i == % " PRId32 "\n", i); + printf("==== NB_VNIS-j == % " PRId32 "\n", j); + printf("==== NB_VNIS-okht == %lx " PRIx64 "\n", tmp_mask); + g_assert(tmp_mask == 0xff0000); + } else { + g_assert(!tmp_mask); + } + /* if (j == ((i - 1) % NB_VNIS)) g_assert(tmp_mask == 0x0000ff); else if (j == i % NB_VNIS) g_assert(tmp_mask == 0x00ff00); else if (j == ((i + 1) % NB_VNIS)) - g_assert(tmp_mask == 0xff0000); + printf("==== NB_VNIS-i == % " PRId32 "\n", i); + printf("==== NB_VNIS-j == % " PRId32 "\n", j); + printf("==== NB_VNIS-okht == %lx " PRIx64 "\n", tmp_mask); + + g_assert(tmp_mask == 0xff0000); else g_assert(!tmp_mask); + */ } if (!(flag & PG_VTEP_NO_COPY)) {