X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest%2Ftest_ivshmem.c;h=2996a860771ed9e589214ea50d4b199b3892ddb2;hb=9aaccf1abdb2894ec23870e1d2199a657f85850e;hp=1404ada0b8c284f43c78d50d8a82d60fe9a5e500;hpb=6f41fe75e2dd8dd38f7bea7b9501edd4f9b72fa5;p=dpdk.git diff --git a/app/test/test_ivshmem.c b/app/test/test_ivshmem.c index 1404ada0b8..2996a86077 100644 --- a/app/test/test_ivshmem.c +++ b/app/test/test_ivshmem.c @@ -43,8 +43,6 @@ #include "test.h" -#ifdef RTE_LIBRTE_IVSHMEM - #include #include #include @@ -431,12 +429,9 @@ test_ivshmem(void) return -1; } -#else /* RTE_LIBRTE_IVSHMEM */ -int -test_ivshmem(void) -{ - printf("This binary was not compiled with IVSHMEM support!\n"); - return 0; -} -#endif /* RTE_LIBRTE_IVSHMEM */ +static struct test_command ivshmem_cmd = { + .command = "ivshmem_autotest", + .callback = test_ivshmem, +}; +REGISTER_TEST_COMMAND(ivshmem_cmd);