X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=blobdiff_plain;f=app%2Ftest%2Ftest_lpm.c;h=087d97ae6898d83adb2ced9d4f32ecf8b3f5d4f1;hp=05f0a935810cb0c3531444483e55f1164802d72b;hb=942405f9e2f2c22aa817be374ccfe939a72df2ce;hpb=727909c5923147d0c7c0091a0f791432fa954431 diff --git a/app/test/test_lpm.c b/app/test/test_lpm.c index 05f0a93581..087d97ae68 100644 --- a/app/test/test_lpm.c +++ b/app/test/test_lpm.c @@ -1332,7 +1332,7 @@ perf_test(void) * Do all unit and performance tests. */ -int +static int test_lpm(void) { unsigned i; @@ -1349,13 +1349,9 @@ test_lpm(void) return global_status; } -#else /* RTE_LIBRTE_LPM */ - -int -test_lpm(void) -{ - printf("The LPM library is not included in this build\n"); - return 0; -} - +static struct test_command lpm_cmd = { + .command = "lpm_autotest", + .callback = test_lpm, +}; +REGISTER_TEST_COMMAND(lpm_cmd); #endif /* RTE_LIBRTE_LPM */