X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest%2Ftest_lpm6.c;h=1f88d7ad46994b4d16b504867166bf27e8046191;hb=edef7d1f4d93de5cff595a0ce26e4b02f8a9f7cc;hp=982930b008e1a6991c5364cdf083c3bf98833124;hpb=3031749c2df04a63cdcef186dcce3781e61436e8;p=dpdk.git diff --git a/app/test/test_lpm6.c b/app/test/test_lpm6.c index 982930b008..1f88d7ad46 100644 --- a/app/test/test_lpm6.c +++ b/app/test/test_lpm6.c @@ -41,8 +41,6 @@ #include "test.h" -#ifdef RTE_LIBRTE_LPM - #include #include #include @@ -1902,7 +1900,7 @@ perf_test(void) /* * Do all unit and performance tests. */ -int +static int test_lpm6(void) { unsigned i; @@ -1920,13 +1918,8 @@ test_lpm6(void) return global_status; } -#else /* RTE_LIBRTE_LPM */ - -int -test_lpm6(void) -{ - printf("The LPM library is not included in this build\n"); - return 0; -} - -#endif /* RTE_LIBRTE_LPM */ +static struct test_command lpm6_cmd = { + .command = "lpm6_autotest", + .callback = test_lpm6, +}; +REGISTER_TEST_COMMAND(lpm6_cmd);