git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
app/test: convert all tests to register system
[dpdk.git]
/
app
/
test
/
test_ivshmem.c
diff --git
a/app/test/test_ivshmem.c
b/app/test/test_ivshmem.c
index
1404ada
..
e759939
100644
(file)
--- a/
app/test/test_ivshmem.c
+++ b/
app/test/test_ivshmem.c
@@
-431,12
+431,10
@@
test_ivshmem(void)
return -1;
}
return -1;
}
-#else /* RTE_LIBRTE_IVSHMEM */
-int
-test_ivshmem(void)
-{
- printf("This binary was not compiled with IVSHMEM support!\n");
- return 0;
-}
+static struct test_command ivshmem_cmd = {
+ .command = "ivshmem_autotest",
+ .callback = test_ivshmem,
+};
+REGISTER_TEST_COMMAND(ivshmem_cmd);
#endif /* RTE_LIBRTE_IVSHMEM */
#endif /* RTE_LIBRTE_IVSHMEM */