X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest%2Ftest_lpm6.c;h=61134f70034450730372fb87ccc0dd3b6f281664;hb=dd0eedb1cfcf0cb7423d859177c5bc6f931eaf8a;hp=458a10bfdc2b673a50f1fa84bf2b369aebfbfaa1;hpb=837b33a4c09ec1897e41d95fce0389e79b122278;p=dpdk.git diff --git a/app/test/test_lpm6.c b/app/test/test_lpm6.c index 458a10bfdc..61134f7003 100644 --- a/app/test/test_lpm6.c +++ b/app/test/test_lpm6.c @@ -40,7 +40,7 @@ #include #include "test.h" -#include "test_lpm6_routes.h" +#include "test_lpm6_data.h" #define TEST_LPM_ASSERT(cond) do { \ if (!(cond)) { \ @@ -1597,6 +1597,9 @@ test25(void) TEST_LPM_ASSERT(status == 0); } + /* generate large IPS table and expected next_hops */ + generate_large_ips_table(1); + for (i = 0; i < 100000; i++) { memcpy(ip, large_ips_table[i].ip, 16); next_hop_expected = large_ips_table[i].next_hop; @@ -1764,8 +1767,4 @@ test_lpm6(void) return global_status; } -static struct test_command lpm6_cmd = { - .command = "lpm6_autotest", - .callback = test_lpm6, -}; -REGISTER_TEST_COMMAND(lpm6_cmd); +REGISTER_TEST_COMMAND(lpm6_autotest, test_lpm6);