]> git.droids-corp.org - dpdk.git/blobdiff - app/test/test_cmdline.c
app/test: fix build without librte_cmdline
[dpdk.git] / app / test / test_cmdline.c
index 30366b53225a1d9cde68f3f554e7d0c4602fe62c..3df2d29582177d75ad9cae4554f8b3bd18410839 100644 (file)
 
 #include <stdio.h>
 
-#include <cmdline_parse.h>
-
 #include "test.h"
 #include "test_cmdline.h"
 
 int
 test_cmdline(void)
 {
+#ifdef CONFIG_RTE_LIBRTE_CMDLINE
        printf("Testind parsing ethernet addresses...\n");
        if (test_parse_etheraddr_valid() < 0)
                return -1;
@@ -88,6 +87,9 @@ test_cmdline(void)
        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;
 }