X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;ds=sidebyside;f=app%2Ftest%2Ftest_pmd_ring.c;h=7490112ca3d42b0ae405a1ad4a688ad52953436f;hb=9b7e0dbb6c547e256146b0679f0e918b15d10541;hp=19ad0e9d32768a64484064f26206845f05b0f41c;hpb=572eb3cd834c5e21d7fa946432b89c1c9d63fe61;p=dpdk.git diff --git a/app/test/test_pmd_ring.c b/app/test/test_pmd_ring.c index 19ad0e9d32..7490112ca3 100644 --- a/app/test/test_pmd_ring.c +++ b/app/test/test_pmd_ring.c @@ -32,8 +32,6 @@ */ #include "test.h" -#ifdef RTE_LIBRTE_PMD_RING - #include #include @@ -405,7 +403,7 @@ test_pmd_ring_pair_create_attach(void) return 0; } -int +static int test_pmd_ring(void) { mp = rte_mempool_create("mbuf_pool", NB_MBUF, @@ -445,13 +443,8 @@ test_pmd_ring(void) return 0; } -#else - -int -test_pmd_ring(void) -{ - return 0; -} - -#endif - +static struct test_command ring_pmd_cmd = { + .command = "ring_pmd_autotest", + .callback = test_pmd_ring, +}; +REGISTER_TEST_COMMAND(ring_pmd_cmd);