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
mbuf: remove rte_ctrlmbuf
[dpdk.git]
/
app
/
test
/
test_cmdline.c
diff --git
a/app/test/test_cmdline.c
b/app/test/test_cmdline.c
index
77475c4
..
2b5840f
100644
(file)
--- a/
app/test/test_cmdline.c
+++ b/
app/test/test_cmdline.c
@@
-36,10
+36,9
@@
#include "test.h"
#include "test_cmdline.h"
#include "test.h"
#include "test_cmdline.h"
-int
+
static
int
test_cmdline(void)
{
test_cmdline(void)
{
-#ifdef CONFIG_RTE_LIBRTE_CMDLINE
printf("Testind parsing ethernet addresses...\n");
if (test_parse_etheraddr_valid() < 0)
return -1;
printf("Testind parsing ethernet addresses...\n");
if (test_parse_etheraddr_valid() < 0)
return -1;
@@
-87,9
+86,11
@@
test_cmdline(void)
printf("Testing library functions...\n");
if (test_cmdline_lib() < 0)
return -1;
printf("Testing library functions...\n");
if (test_cmdline_lib() < 0)
return -1;
-#else
- printf("The cmdline library is not included in this build\n");
-#endif
return 0;
}
return 0;
}
+static struct test_command cmdline_cmd = {
+ .command = "cmdline_autotest",
+ .callback = test_cmdline,
+};
+REGISTER_TEST_COMMAND(cmdline_cmd);